Skip to the page

MCP tool list token cost: 41,610 tokens down to 799

SpecStream

MCP · · 4 min read

An MCP client sends the full tool list to the model on every turn, so the size of that list is a cost the agent pays before it does any work. On November 26, 2026, the tool list of SpecStream's hosted MCP server at https://api.specstream.ai/mcp measured 41,610 tokens without a filter. With ?tools=search it measured 4,377 tokens, and with ?tools=extract 799 tokens.

That is 89.5% fewer tokens on every turn for a search agent and 98.1% fewer for an agent that only reads pages, with one query parameter and no change to the tools themselves.

Bytes and tokens by filter

Each row is one tools/list call to https://api.specstream.ai/mcp, sent before sign in on November 26, 2026. Bytes are the size of the JSON reply. Tokens are counted with the o200k_base tokenizer, the one OpenAI publishes for GPT-4o and its later models. Other model families count with their own tokenizers, so their figures differ a little, and the shares hold.

Address Tools Bytes Tokens Share of the unfiltered tokens
/mcp 71 153,564 41,610 100%
/mcp?tools=lists 18 51,853 12,477 30.0%
/mcp?tools=research 9 25,132 6,162 14.8%
/mcp?tools=search 4 17,515 4,377 10.5%
/mcp?tools=search_web,read_pages 2 14,383 3,594 8.6%
/mcp?tools=extract 1 3,146 799 1.9%

The tool definitions alone, without the JSON-RPC envelope, count 16 tokens fewer in each row. A signed in account lists more tools than a signed out one, so its unfiltered list is larger, and ?tools=search returns the same 4 tools at any sign in state.

What the filter saves over 1,000 turns

The tool list rides along with every model call, so the saving scales with turns, not with sessions.

Address Tokens per turn Tokens per 1,000 turns Saved per 1,000 turns against /mcp
/mcp 41,610 41,610,000 0
/mcp?tools=research 6,162 6,162,000 35,448,000
/mcp?tools=search 4,377 4,377,000 37,233,000
/mcp?tools=extract 799 799,000 40,811,000

Multiply the saved tokens by your model's price per million input tokens to get the money. Prompt caching lowers the price of a repeated tool list on clients that use it, and the filter still cuts what is cached, sent and read.

Run the call yourself

The server answers a plain JSON-RPC tools/list over HTTP POST, with no initialize step and no session ID. The reply comes back as application/json with the header mcp-protocol-version: 2025-11-25.

curl -s -X POST "https://api.specstream.ai/mcp?tools=search" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | wc -c

To count tokens the same way we did:

import json, urllib.request, tiktoken

enc = tiktoken.get_encoding("o200k_base")
req = urllib.request.Request(
    "https://api.specstream.ai/mcp?tools=search",
    data=b'{"jsonrpc":"2.0","id":1,"method":"tools/list"}',
    headers={"Content-Type": "application/json", "Accept": "application/json, text/event-stream"},
)
body = urllib.request.urlopen(req).read().decode()
print(len(json.loads(body)["result"]["tools"]), len(body.encode()), len(enc.encode(body)))

A stateless server suits serverless agents and job runners: each call stands alone, and a restart loses nothing. Calls to a tool need a SpecStream API key as Authorization: Bearer <key> or an OAuth sign in.

Which filter fits which agent

Agent Filter Tools it gets
Chat agent that answers from the live web ?tools=search search_web, read_pages, list_web_searches, get_web_search
Pipeline that already has its URLs ?tools=extract read_pages
Agent that writes cited reports ?tools=research The search tools plus the report tools
Agent that builds tables with a source for each value ?tools=lists Compile, quote, run and read rows

Presets and exact tool names mix in one comma separated list, such as ?tools=search,research_price. A filter that names nothing known is refused with JSON-RPC error -32602 before any tool loads. The presets and refusals are covered in full in MCP tool filtering for AI agents.

What the 4 search tools return

The search set is small and complete for a web answering agent. search_web runs the same search as the Search API: on WideSearch it scores 64.0 item F1 on all 200 tasks, against 57.6 for Parallel and 56.1 for Exa, and it scores 99 on SimpleQA Verified (benchmarks). read_pages returns the full text of the pages a search found or that the agent names.

Set it up

In Claude Code:

claude mcp add --transport http specstream "https://api.specstream.ai/mcp?tools=search"

In Cursor or any client that reads an mcpServers file:

{
  "mcpServers": {
    "specstream": { "url": "https://api.specstream.ai/mcp?tools=search" }
  }
}

Run a search with no sign up in the web search tester, and read every tool in the MCP docs. Sign up and one key works on the MCP server and the API. New accounts get $10 of credit, no card.

Bytes and tokens measured on https://api.specstream.ai/mcp on November 26, 2026, signed out, with tiktoken o200k_base.

More from the blog

Every post