Skip to content

Firsthand.today

#tool calling

  1. How Claude Code's Code Mode works

    X · Arindam_1729

    Claude writes one JavaScript script that makes the tool calls itself, so a search, edit and test run in a single trip. In a side-by-side run, requests fell from 5 to 4 and each request read about 35k tokens instead of 53k, with cost roughly unchanged.

  2. I think we were giving our agent way too many tools to choose from

    r/LLMDevs · for-entire-phonly · 18 comments

    Tool schemas are re-sent every turn: a few heavy MCP servers add 15-20K tokens per request, so a 20-turn run carries 300K of input for the tool list alone. Keep the discovered block at the tail so the prefix stays cached.

    — MichelleZhao91
  3. How do you make AI agents reliable when they use multiple tools?

    r/AI_Agents · Aware-Resource9831 · 37 comments

    Save real tool-call inputs and outputs as a replay set and rerun the agent against them after any prompt or tool change, so regressions surface before production; pin the model version too, since silent updates change tool calls.

    — nmohoni
  4. Support copilot keeps repeating dead SQL tool calls

    r/AI_Agents · Lanky-Passenger-5777 · 15 comments

    A missing-column error is deterministic, so retrying with tweaked SQL can't fix it; cap identical failures at two, then return the real column list for that tenant and end the turn.

    — Aware_Risk7076, r0b3rtb, Wezabis2
  5. The Filter Was in the Question: Grounding Agent Queries Before the First SQL

    shyanming.substack.com · Shown, Not Claimed

    On DevRev's Enterprise-Bench v2, agents counted prospects as customers because nothing mapped the word "customer" to the accounts table's type column. A grounding tool called before the first query, plus an answer contract, raised a held-out 19-task score from 71.9% to 89.5%.