All articles

The real cost of an MCP call

An AI agent that works through the Model Context Protocol (MCP) does not pay per tool call. It pays per token, and the tokens of one task are spent in places that are easy to overlook: the tool definitions the client sends with every model call, the conversation that grows with each step, and the size of what each tool returns. Two setups that solve the same task with the same number of calls can therefore differ considerably in cost.

This article explains where those tokens go and how we compare the same agent on the same tasks through the official MCP servers of the tools, through one Vordix connection, and, as a modelled third route, directly on the tools' REST APIs. It also covers a client setting that changes the picture. We are currently redoing the measurement as a new study, so this article carries no figures; the results page publishes them with method and limits once the study is complete.

Where the tokens of an agent task go

An agent task is a loop of model calls. In each call the client sends the system prompt, the definitions of every tool the agent may use, and the whole conversation so far, including every tool result. The model answers with a tool call or with text, the client executes the call, and the next model call carries the result. A task with eight tool calls therefore sends the tool definitions about eight times and every earlier result several times.

Prompt caching makes the repetition cheaper but not free. Cached input is billed at roughly a tenth of the normal input price, and writing a new result into the cache costs more than normal input. Three factors therefore drive the cost of a task: how large the tool list is, how many model calls the agent needs, and how large the tool results are.

What we compare

The comparison uses two kinds of test: a workflow test (implement a ticket, update a wiki page, move the ticket, post in a chat channel) and a test with vague, destructive-sounding prompts on single tools. Both sides use the same agent client, model and prompts. Cost and tokens come from the client's usage report per run, at API list prices. We look at the cost per run, the input tokens including cached input, the context of the first model call, and the number of tools offered to the agent.

The first model call already shows the main mechanism. With the official servers for several tools the agent receives a long tool list, and the first call carries all of those definitions. A Vordix workspace for the same task offers only the tools of that use case. Since every later call repeats the tool list, the gap adds up over the run.

The prompt matters as well. A vague prompt makes the agent search more and take detours, which raises the cost wherever the tool results are large. A workspace that leaves little to search for limits that effect.

Lazy tool loading narrows the gap

The mechanism above assumes that the client loads all tool definitions up front. Some agent clients can instead load definitions lazily. The agent then sees only a search tool at first and loads the definitions it needs when it needs them. This shrinks the cost of a long tool list, and therefore the advantage of a short one.

With only a handful of tools, lazy loading can even cost more than sending the short list up front: the extra search step and the cache writes for the loaded definitions add model calls and tokens. A client setting can therefore matter as much as the choice of server, and a fair comparison has to name it. For that reason the new study measures both settings.

The third route: agents on the REST API

Some teams skip MCP and give the agent an API token and a generic HTTP tool. There is no tool list to send, but also no filtering of responses. We do not run this as an agent on purpose: a raw token carries the account's full rights, including delete, and nothing would stand between the agent and the real system. Instead we measure the response sizes read-only and calculate the cost with a model that is checked against the measured ticket runs.

The response sizes explain much of the result. A REST API that returns default fields sends far more text for one ticket or one search than a request that lists only the needed fields, and the official servers and Vordix return shorter, filtered answers. A careful agent that always requests only the needed fields closes most of that gap on reads, but comments and pages stay larger.

For a developer's ticket (find the ticket, read it and its comments, search the documentation, read two pages, update one of them, comment and move the ticket) the model compares four routes: the official MCP server, the direct REST API with only the fields needed, the direct REST API with default responses, and Vordix. On this ideal path, without detours, we expect the official server and Vordix to be close, and an unfiltered REST API to be the most expensive route.

Limits of such a comparison

The measured runs use one model and one agent client, with a limited number of runs per cell. The size of the gap in the main comparison depends on loading all tool definitions up front, which some clients no longer do by default. The developer ticket is a model built on measured response sizes, not a run, and the direct API route is never run as an agent. Vordix's own discovery answers are not free either: its context lookup and tool description add text to the conversation, and a smaller workspace returns less. Finally, token prices change, and the absolute dollar values change with them; the ratios are the more durable result.

Conclusion

The cost of an MCP call is mostly the cost of what travels with it. Large tool lists, many model calls and unfiltered responses each multiply the tokens of a task. A narrow Vordix workspace shrinks the tool list and the answers, and the benefit depends on the client's tool loading and on how precise the path is. On a short, precise path the difference to the official server is small, and an unfiltered REST API is the most expensive route. The token savings are therefore a side effect rather than the main reason to scope an agent; the behaviour on vague prompts, described in What an AI agent does when you tell it to “get rid of it”, is the stronger argument.

The new measurement is in progress, and its tables and sources will appear on the results page; a demo shows how a workspace is set up for one use case.

See it on your own stack.

A short walkthrough on your tools, your rules, your audit log. Nothing leaves your network.

Request a demo