diff --git a/BROWSER.md b/BROWSER.md index 3e2cc594d..1b5758ba4 100644 --- a/BROWSER.md +++ b/BROWSER.md @@ -1745,6 +1745,11 @@ pure overhead: - **Unnecessary abstraction** — Claude already has a Bash tool. A CLI that prints to stdout is the simplest possible interface. +These are cost, speed and reliability reasons, not accuracy. Connecting more +MCP tools doesn't make agents pick the wrong tool, up to about 300 tools with +Claude Code's tool search on; see +[Do you need to cut back on MCP servers?](USING_GBRAIN_WITH_GSTACK.md#do-you-need-to-cut-back-on-mcp-servers). + gstack skips all of this. Compiled binary. Plain text in, plain text out. No protocol. No schema. No connection management. diff --git a/USING_GBRAIN_WITH_GSTACK.md b/USING_GBRAIN_WITH_GSTACK.md index 457bdeea3..ca3342a2e 100644 --- a/USING_GBRAIN_WITH_GSTACK.md +++ b/USING_GBRAIN_WITH_GSTACK.md @@ -92,6 +92,23 @@ That registers gbrain's stdio MCP server with Claude Code. Now `gbrain search`, **Other local agents** (Cursor, Codex CLI, etc.) need their own MCP registration. The skill is Claude-Code-targeted for v1; other hosts can register `gbrain serve` manually in their own MCP config. +### Do you need to cut back on MCP servers? + +Not for accuracy, up to about 300 tools, as long as Claude Code's tool search stays on. It was on by default in the version we tested, so the one thing to avoid is turning it off with `ENABLE_TOOL_SEARCH=false`. + +The numbers come from our November 2026 MCP-at-scale benchmark across five agent harnesses. Agents were connected to fake copies of 30 real open-source MCP servers at about 30, 75, 150 and 300 tools, given the same short requests at every size, and scored on whether they called the right tool, over 21,392 trials. The details differ by agent: + +- **Claude Code with tool search on** (Opus 5.5) called the right tool on 94.6% of requests at 30 tools and 92.9% at 300. With tool search off it fell to 85.4% at 300 tools and cost about twice as much per request ($0.240 against $0.117). +- **Codex** (GPT-6.2 Sol) went from 97.5% at 30 tools to 95.4% at 300, and **OpenClaw** (Opus 5.5) from 98.3% to 98.8%. But both rarely used a tool that a server unlocked partway through a session. When gbrain started with a smaller tool set and let the agent unlock more with `request_tools`, on requests that needed an unlocked tool Codex called it in 13 of 131 trials and OpenClaw in 0 of 131. The report doesn't say why. If you use gbrain with Codex or OpenClaw, register its full tool set (`gbrain serve --surface full`), not the `starter` or `verbs` set. +- **Hermes and Pi** (Opus 5.5 and particle-1) also held up from 30 to 300 tools. + +The test used single short requests, so long sessions and more than 300 tools are untested. + +Cutting servers can still be worth it for other reasons: + +- **Cost.** More connected tools cost more per request. Claude Code with tool search on cost $0.076 per request at 30 tools and $0.117 at 300 in the same test. +- **Security.** Each MCP server sees what the agent sends it and can act with whatever access you gave it. Remove servers you don't use or don't trust. + ## Per-remote trust policy (the triad) Every repo on your machine gets a policy decision: **read-write**, **read-only**, or **deny**. diff --git a/changelog.d/docs-mcp-tool-count-advice.md b/changelog.d/docs-mcp-tool-count-advice.md new file mode 100644 index 000000000..70fb0640d --- /dev/null +++ b/changelog.d/docs-mcp-tool-count-advice.md @@ -0,0 +1 @@ +**New guide section: you don't need to cut back on MCP servers for accuracy, up to about 300 tools, as long as Claude Code's tool search stays on.** It sits under "Do you need to cut back on MCP servers?" in USING_GBRAIN_WITH_GSTACK.md and gives the November 2026 test's numbers for each agent. Turning tool search off dropped Claude Code from 92.9% to 85.4% right at 300 tools and doubled the cost per request. Codex and OpenClaw also held up at 300 tools, but they rarely used tools that gbrain unlocked partway through a session (13 of 131 trials and 0 of 131), so gbrain users on those agents should register the full tool set with `gbrain serve --surface full`. Cost and security are still good reasons to remove servers you don't need. BROWSER.md now says its case against browser MCP servers is about cost, speed and reliability, not accuracy.