Skip to the page

MCP tool filtering for AI agents: 4 tools in 17 KB with ?tools=

SpecStream

MCP · · 3 min read

An MCP client puts every tool definition a server lists into the model's context. SpecStream's hosted MCP server at https://api.specstream.ai/mcp takes a ?tools= query parameter that cuts the list to the tools an agent needs. ?tools=search lists 4 tools in 17,515 bytes. ?tools=extract lists 1 tool in 3,146 bytes. Without a filter, the same request lists 71 tools in 153,564 bytes.

The filter also guards the connection: a tool left out of the list is refused if the agent calls it anyway.

What each filter lists

tools/list on https://api.specstream.ai/mcp, sent on November 26, 2026 before sign in. Bytes are the size of the JSON reply.

Address Tools listed Bytes Share of the unfiltered list
/mcp 71 153,564 100%
/mcp?tools=lists 18 51,853 33.8%
/mcp?tools=research 9 25,132 16.4%
/mcp?tools=search 4 17,515 11.4%
/mcp?tools=search_web,read_pages 2 14,383 9.4%
/mcp?tools=extract 1 3,146 2.0%

A signed in account lists more tools than this: at the release of the filter on November 26, the full list of a signed in account measured 165 tools in 323 KB, and ?tools=search cut it to the same 4 tools in 17 KB.

The presets

Preset Tools
search search_web, read_pages, list_web_searches, get_web_search
extract read_pages
research The four search tools, plus research_price, start_research, get_research, cancel_research and list_research
lists compile, edit_spec, spec_options, the quote and run tools, get_find, list_find_rows, cancel_find, export_find and get_capacity_balance
browser The browser session tools, where browser sessions are on

Presets and exact tool names mix, separated by commas, and case and spaces do not matter: ?tools=search,research_price keeps the search tools and the price tool. The lists preset lists one quote tool and one run tool per job, so 11 names in the preset list as 18 tools.

Pick the smallest set for the job

  • A chat agent that answers questions from the live web: ?tools=search. It searches, reads the pages a search returned, and finds its earlier searches.
  • A pipeline that already has its URLs: ?tools=extract. One tool, read_pages, returns the full text of the pages.
  • A research agent that writes cited reports: ?tools=research. Search, plus the tools that price, start and read a report.
  • An agent that builds tables with a source for each value: ?tools=lists. It compiles the request, quotes it, runs it after approval and reads the rows.

Set it up in a client

Use the filtered address wherever the client takes an MCP server URL. In Claude Code:

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

In a client that reads an mcpServers file, such as Cursor:

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

The connection signs in with OAuth, or with a SpecStream API key as a Bearer token in Authorization: Bearer <key>. The OAuth sign in keeps the filter.

Refusals and errors

A filter that names no preset and no tool is refused before any tool loads, with a JSON-RPC error that names the presets:

{"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"The tools parameter names no tool or preset: nope. The presets are search, extract, research, browser, lists."}}

A call to a tool the filter left out is refused with a message that says why.

Try the tools first

Run a live search with no sign up in the web search tester, and read every tool, argument and reply in the MCP docs. The API docs cover the same Search API and Extract API over HTTP. Sign up and the key works on both. New accounts get $10 of credit, no card.

More from the blog

Every post