MastraM
Mastraโ€ข3mo agoโ€ข
3 replies
sheerazz

Tool Calling Errors with Groq

Every tool I attempt to call with groq model seem to not be included in the request?

Snippet from agent declaration:

memory,
  tools: {
    listFilesTool,
    readFileTool,
    createTextDocumentTool,
    updateTextDocumentTool,
    applyAIPatchTool,
  },
  agents: {
    codingAgent,
    contentWritingAgent,
  },


Error

[@mono/express-backend]: ERROR [2025-11-03 20:03:52.502 -0500] (WorkflowMastra): Error in agent stream
[@mono/express-backend]: runId: "9b97ece4-5147-41eb-b908-86bf4fc0fe38"
[@mono/express-backend]: error: {
[@mono/express-backend]: "message": "Tool call validation failed: tool call validation failed: attempted to call tool 'listFiles' which was not in request.tools",
[@mono/express-backend]: "name": "Error",
[@mono/express-backend]: "type": "invalid_request_error"
[@mono/express-backend]: }

This happens for all the tools defined in the agent. the only one that seems to work is updateWorkingMemory
Was this page helpful?