[{"data":1,"prerenderedAt":21},["ShallowReactive",2],{"blog-post-en-mcp-call-cost-tokens":3},{"slug":4,"lang":5,"title":6,"description":7,"heading":8,"translationKey":9,"date":10,"keywords":11,"readingMinutes":17,"html":18,"alternates":19},"mcp-call-cost-tokens","en","The Real Cost of an MCP Call: Tokens per Agent Task","Where the tokens of one AI agent task go via official MCP servers, a direct REST API and Vordix: tool lists, model calls and result sizes, and how we measure them.","The real cost of an MCP call","mcp-cost-eval","2026-10-10",[12,13,14,15,16],"MCP token cost","MCP server cost","AI agent cost per task","MCP tool definitions tokens","lazy tool loading",5,"\u003Cp>An AI agent that works through the Model Context Protocol (MCP) does not pay per tool call. It pays\nper token, and the tokens of one task are spent in places that are easy to overlook: the tool\ndefinitions the client sends with every model call, the conversation that grows with each step,\nand the size of what each tool returns. Two setups that solve the same task with the same number\nof calls can therefore differ considerably in cost.\u003C\u002Fp>\n\u003Cp>This article explains where those tokens go and how we compare the same agent on the same tasks\nthrough the official MCP servers of the tools, through one Vordix connection, and, as a modelled\nthird route, directly on the tools&#39; REST APIs. It also covers a client setting that changes the\npicture. We are currently redoing the measurement as a new study, so this article carries no\nfigures; the \u003Ca href=\"\u002Fresults\">results page\u003C\u002Fa> publishes them with method and limits once the study is\ncomplete.\u003C\u002Fp>\n\u003Ch2>Where the tokens of an agent task go\u003C\u002Fh2>\n\u003Cp>An agent task is a loop of model calls. In each call the client sends the system prompt, the\ndefinitions of every tool the agent may use, and the whole conversation so far, including every\ntool result. The model answers with a tool call or with text, the client executes the call, and\nthe next model call carries the result. A task with eight tool calls therefore sends the tool\ndefinitions about eight times and every earlier result several times.\u003C\u002Fp>\n\u003Cp>Prompt caching makes the repetition cheaper but not free. Cached input is billed at roughly a\ntenth of the normal input price, and writing a new result into the cache costs more than normal\ninput. Three factors therefore drive the cost of a task: how large the tool list is, how many\nmodel calls the agent needs, and how large the tool results are.\u003C\u002Fp>\n\u003Ch2>What we compare\u003C\u002Fh2>\n\u003Cp>The comparison uses two kinds of test: a workflow test (implement a ticket, update a wiki page,\nmove the ticket, post in a chat channel) and a test with vague, destructive-sounding prompts on\nsingle tools. Both sides use the same agent client, model and prompts. Cost and tokens come from\nthe client&#39;s usage report per run, at API list prices. We look at the cost per run, the input\ntokens including cached input, the context of the first model call, and the number of tools\noffered to the agent.\u003C\u002Fp>\n\u003Cp>The first model call already shows the main mechanism. With the official servers for several\ntools the agent receives a long tool list, and the first call carries all of those definitions.\nA Vordix workspace for the same task offers only the tools of that use case. Since every later\ncall repeats the tool list, the gap adds up over the run.\u003C\u002Fp>\n\u003Cp>The prompt matters as well. A vague prompt makes the agent search more and take detours, which\nraises the cost wherever the tool results are large. A workspace that leaves little to search for\nlimits that effect.\u003C\u002Fp>\n\u003Ch2>Lazy tool loading narrows the gap\u003C\u002Fh2>\n\u003Cp>The mechanism above assumes that the client loads all tool definitions up front. Some agent\nclients can instead load definitions lazily. The agent then sees only a search tool at first and\nloads the definitions it needs when it needs them. This shrinks the cost of a long tool list, and\ntherefore the advantage of a short one.\u003C\u002Fp>\n\u003Cp>With only a handful of tools, lazy loading can even cost more than sending the short list up\nfront: the extra search step and the cache writes for the loaded definitions add model calls and\ntokens. A client setting can therefore matter as much as the choice of server, and a fair\ncomparison has to name it. For that reason the new study measures both settings.\u003C\u002Fp>\n\u003Ch2>The third route: agents on the REST API\u003C\u002Fh2>\n\u003Cp>Some teams skip MCP and give the agent an API token and a generic HTTP tool. There is no tool list\nto send, but also no filtering of responses. We do not run this as an agent on purpose: a raw\ntoken carries the account&#39;s full rights, including delete, and nothing would stand between the\nagent and the real system. Instead we measure the response sizes read-only and calculate the\ncost with a model that is checked against the measured ticket runs.\u003C\u002Fp>\n\u003Cp>The response sizes explain much of the result. A REST API that returns default fields sends far\nmore text for one ticket or one search than a request that lists only the needed fields, and the\nofficial servers and Vordix return shorter, filtered answers. A careful agent that always requests\nonly the needed fields closes most of that gap on reads, but comments and pages stay larger.\u003C\u002Fp>\n\u003Cp>For a developer&#39;s ticket (find the ticket, read it and its comments, search the documentation,\nread two pages, update one of them, comment and move the ticket) the model compares four routes:\nthe official MCP server, the direct REST API with only the fields needed, the direct REST API\nwith default responses, and Vordix. On this ideal path, without detours, we expect the official\nserver and Vordix to be close, and an unfiltered REST API to be the most expensive route.\u003C\u002Fp>\n\u003Ch2>Limits of such a comparison\u003C\u002Fh2>\n\u003Cp>The measured runs use one model and one agent client, with a limited number of runs per cell.\nThe size of the gap in the main comparison depends on loading all tool definitions up front,\nwhich some clients no longer do by default. The developer ticket is a model built on measured\nresponse sizes, not a run, and the direct API route is never run as an agent. Vordix&#39;s own\ndiscovery answers are not free either: its context lookup and tool description add text to the\nconversation, and a smaller workspace returns less. Finally, token prices change, and the\nabsolute dollar values change with them; the ratios are the more durable result.\u003C\u002Fp>\n\u003Ch2>Conclusion\u003C\u002Fh2>\n\u003Cp>The cost of an MCP call is mostly the cost of what travels with it. Large tool lists, many model\ncalls and unfiltered responses each multiply the tokens of a task. A narrow Vordix workspace\nshrinks the tool list and the answers, and the benefit depends on the client&#39;s tool loading and\non how precise the path is. On a short, precise path the difference to the official server is\nsmall, and an unfiltered REST API is the most expensive route. The token savings are therefore a\nside effect rather than the main reason to scope an agent; the behaviour on vague prompts,\ndescribed in\n\u003Ca href=\"\u002Fblog\u002Fai-agent-vague-prompts-overreach\">What an AI agent does when you tell it to “get rid of it”\u003C\u002Fa>,\nis the stronger argument.\u003C\u002Fp>\n\u003Cp>The new measurement is in progress, and its tables and sources will appear on the\n\u003Ca href=\"\u002Fresults\">results page\u003C\u002Fa>; a demo shows how a workspace is set up for one use case.\u003C\u002Fp>\n",{"de":20,"en":4},"kosten-mcp-aufruf-tokens",1795647520950]