Wrong Tool Name Call

I have been having this strange issue with my agents recently where my agent tries to call a tool in the agent with the wrong id. for example I have a tool whose id is defined as "create-scenario" but the AI is trying to call a tool with the name "createscenario" or "CreatescenarioScenarios" instead and this obviously leads to failuere: export const createScenario = createTool({ id: 'create-scenario', description: 'Create a new scenario', inputSchema: z.object({ scenarios: z.array(z.object({ title: z.string().describe('Title of the scenario'), description: z.string().describe('A detailed description of the scenario mentioning the end goal') })), url: z.string().describe('Base URL of the platform to explore'), }), outputSchema: z.object({ success: z.boolean(), }), execute: async ({ context, runtimeContext }) => { /// execute method } catch (error) { console.log(error) return { success: false, message: "Failed to add scenarios: " + error } } } });
2 Replies
Mastra Triager
GitHub
[DISCORD:1434799023469891677] Wrong Tool Name Call · Issue #9641 ...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1434799023469891677 I have been having this strange issue with my agents recently where my agent tries to ...
_roamin_
_roamin_2w ago
Hey @omoalfa ! Which model are you using?

Did you find this page helpful?