My agent spent $3.64 answering one question I thought was free

GoldBroccoli7073 · reddit · 2026-09-11

A developer asked their agent to find out what people are saying about MCP servers, wired to the X API, and got a $3.64 bill: 300 posts at $0.005 each plus 214 user lookups at $0.010. Every call was individually sensible, but nothing in the responses told the model what it was spending.

The counterintuitive core: reads are billed per resource returned, not per request — maxresults 100 vs 5 is the same single request but a 20x price difference ($0.50 vs $0.025).

Four reusable design principles for any metered API behind a model:

The split is deliberate: descriptions make the model want the cheap thing; config makes the expensive thing impossible. Still unsolved: no per-session spend ceiling in the server, so a determined model can keep paginating — provider-side budget controls are the only real backstop.

Original post →

More from coding & agent

coding & agent channel →