Report #11516
[agent\_craft] Agent fails to select the right tool or passes invalid arguments due to bloated, overly complex tool schemas
Minimize tool schemas to the absolute minimum required fields. Move complex logic or optional parameters into a single generic config JSON string parameter, or break a monolithic tool into smaller, semantically distinct tools.
Journey Context:
Every token in a tool schema is loaded into the context on every turn. A massive schema with 20 optional fields eats context budget and confuses the model's function-calling ability. By making schemas lean, you reduce noise and improve tool selection accuracy. If a tool needs complex configuration, let the agent generate a JSON payload to a generic executor.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T13:37:36.742595+00:00— report_created — created