35 tools at once was breaking their research agent — on-demand tool loading cut malformed calls sharply
for-entire-phonly · reddit · 2026-12-04
A team's research agent kept calling wrong endpoints with nonexistent parameters. The culprit found in traces: 35 tool definitions loaded into every conversation when most requests needed 2-3, plus overlapping descriptions.
Fix
- Start with a small command set; the agent searches for the endpoint it needs, reads its schema, then calls
- Cache already-looked-up schemas to avoid refetching
Result: notably fewer malformed calls and lower input token usage. The author asks how many tools others expose at startup.
More from coding & agent
- AI agent pins the sha256 of the Python interpreter itself in generated script — moyix · 2026-12-04
- "A chief scientist plus a swarm of research engineers": driving Neon via codex exec — natanielruizg · 2026-12-04
- Deleting prompt words gives the same kick as deleting lines of code, says dev — tobowers · 2026-12-04
- Developers warned: try 5-10 minutes solo before asking AI — Future_Childhood8229 · 2026-12-04
- bettercap reaches full cross-platform parity; OpenSnitch rewritten in Rust from scratch — evilsocket · 2026-12-04
- AI doesn't eliminate technical debt — it amplifies it at every stage — craigmullins · 2026-12-04