PulseAugur
EN
LIVE 06:00:02

LLM agents incur hidden costs from tool schemas and system context

Two developers highlight significant, often overlooked costs associated with using Large Language Models (LLMs) and their associated tools. One author discovered that their agent's actual token usage was vastly higher than the prompt's token count, primarily due to system scaffolding and context assembly, which was not visible by default. The other developer identified that the extensive JSON schema definitions for tools in an MCP agent consumed a disproportionate amount of tokens, leading to high costs. Both authors propose solutions, including modifying API calls to output detailed usage data and implementing schema pruning or compression techniques to reduce token overhead. AI

IMPACT Developers can reduce LLM operational costs by optimizing prompt engineering and tool schema management, leading to more efficient AI agent deployment.

RANK_REASON The articles discuss practical cost-saving strategies and technical details for optimizing LLM usage, rather than a new release or major industry event.

Read on dev.to — LLM tag →

AI-generated summary · Google Gemini · from 2 sources. How we write summaries →

LLM agents incur hidden costs from tool schemas and system context

How we ranked this

Signal score
0 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Commentary
The articles discuss practical cost-saving strategies and technical details for optimizing LLM usage, rather than a new release or major industry event.
Source corroboration
2 independent sources
Multiple independent publishers reporting the same story raises confidence that it's real and newsworthy.
Topics
infra, product
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
13 days old
Aged out of breaking-news scoring windows; ranking reflects the durable signal from the full source set.

Full methodology in our editorial standards.

COVERAGE [2]

  1. dev.to — LLM tag TIER_1 English(EN) · Enjoy Kumawat ·

    A 2-Token Prompt and a 39,966-Token Bill: Measuring What My Agent Actually Costs

    <p>There is a small cluster of posts going around right now about auditing your LLM invoice, and about how cost calculators get the numbers wrong. I went to check mine and hit a problem before I got to the arithmetic: my pipeline doesn't produce an invoice, and the plumbing I bui…

  2. dev.to — LLM tag TIER_1 English(EN) · MrClaw207 ·

    The MCP Token Tax: How I Cut My Agent's Schema Overhead by 87%

    <p>I was watching my MCP agent run through a 40-step workflow last month when I noticed something strange in the token counter. Each step was burning 12,000–15,000 tokens — but the actual task was trivial: look up a price, compare two dates, return a boolean.</p> <p>The bottlenec…