PulseAugur
EN
LIVE 23:37:57

LLM agents incur high costs by resending full tool schemas on every turn

An agent developer has identified a significant cost inefficiency in how Large Language Models (LLMs) handle tool schemas. The developer found that sending detailed tool schemas, which can amount to 7,000 tokens, on every turn of a conversation is highly inefficient, as typically only one or two tools are used per turn. This leads to paying for extensive, unnecessary data with each API call. The proposed solution is to send only the essential tool names and brief descriptions for most tools, while keeping the full schemas for only those tools that are plausibly about to be used, thereby reducing token costs. AI

IMPACT Highlights a potential cost-saving optimization for LLM agent development by reducing token usage for tool schemas.

RANK_REASON Developer shares an observation and proposed solution regarding LLM agent efficiency.

Read on dev.to — LLM tag →

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

LLM agents incur high costs by resending full tool schemas on every turn

COVERAGE [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Andrea Troisi ·

    Your MCP agent re-sends 7,000 tokens of tool schemas on every turn

    <p>I wired three MCP servers into my agent, then did something I should have done first: I counted what they cost.</p> <p>One filesystem server, 28 tools: <strong>about 7,000 tokens</strong>. Just the tool definitions. Before a system prompt, before any conversation, before the u…