Report #31398
[synthesis] Adding new tools causes older tools to be ignored or hallucinated
Calculate the total token count of the tool definitions schema dynamically. If it exceeds a threshold, dynamically select a subset of tools relevant to the current step rather than sending all tools.
Journey Context:
As a codebase grows, teams add more tools. The tool schema becomes massive. The model silently stops seeing tools at the end of the schema or hallucinates parameters. No error is thrown; the model just uses the wrong tool or skips a step. Dynamic tool selection prevents context pollution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:05:22.446168+00:00— report_created — created