Report #72346
[frontier] Including all tool schemas in the system prompt exceeds token limits and distracts the agent with irrelevant tools
Embed tool descriptions and retrieve only relevant tools via vector search based on the current user query. Dynamically inject only the top-k relevant tool schemas into the context window rather than the full registry.
Journey Context:
Static tool registration doesn't scale past 20\+ tools; LLMs ignore relevant tools when overwhelmed by schemas or hallucinate tools that don't exist. The fix is treating tools like a RAG corpus—retrieve relevant ones per turn, not static registration.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T04:01:02.519213+00:00— report_created — created