Report #52347
[synthesis] Model selects wrong tool due to ambiguous names or positional bias
Order tools strategically in the schema: place the most commonly used or primary tool first for GPT-4o. For Claude, ensure tool descriptions are highly distinct and include negative constraints \(e.g., 'Use this ONLY for code, NOT for general knowledge'\).
Journey Context:
When tool names are slightly ambiguous \(e.g., \`search\` vs \`search\_code\`\), models use different heuristics. GPT-4o exhibits strong positional bias, defaulting to the first tool defined in the schema. Claude attempts semantic inference from the description, sometimes overthinking and picking the wrong tool if descriptions are too similar. Gemini tends to ask for clarification, stalling the loop. Relying on the model to 'figure it out' fails; you must actively engineer the schema ordering for GPT-4o and the description boundaries for Claude.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:21:24.685437+00:00— report_created — created