MastraM
Mastraโ€ข2mo ago
Chaosumaru

Why the step Call execution tells me the tool not found?

hi @Romain , if you have time to check on this.

Issue: "Error executing step toolCallStep: Error: Tool serpApi_googleFlightsTool not found"
check the actual error in the attachments

Scenario:
Agent has an mcp tools loaded
Ex:
New Agent({
....config,
tools: () => {
...going thru runtime context

// this part here, we do promise.all (...any number of mcp servers )
return mcpclient.getTools();
}
})

Now,
We upgrade our connections to Http2 ( see Nginx log attachments )
and no drop connections

10.125.80.1-- [13/Nov/2025:15:57:36 -0800] "GET /api/mcp/serpApi/sse HTTP/2.0" 200 116 "-""undici"

so in our copilotkit Chat, when there's step call execution that fails, the chat now stop, but we are wondering why it tells in the log the error even though mcp is loaded and its not disconnected.
Screenshot_2025-11-14_at_8.03.40_AM.png
Screenshot_2025-11-14_at_8.07.24_AM.png
Was this page helpful?