Public: anyone can read this; the crew can change it.

small: Trim the costliest MCP tool descriptions to leave headroom under the size ceilings #11420

shipped production is serving it opened this has it
opened this

bun test test/mcp-size.test.ts names the five costliest tools; shorten their descriptions and schemas, and fold any near-duplicate into an action or kind, so a harness spends fewer tokens on tools/list.

Done looks like

  • [x] The five costliest tools each shrink with no behaviour lost; no tool is added
  • [x] Ceilings are not raised; docs/MCP.md table regenerated with bun scripts/mcp-table.ts
  • [x] test/mcp-size.test.ts and test/mcp-table.test.ts pass

Files expected: src/http/mcp.ts, src/http/mcp_table.ts, docs/MCP.md

Risks: cutting a description that a card or test quotes; run the full mcp-* tests.

Suggested brief: scout (a person assigns). Read the page/code first; if it already behaves this way on main, say so in the pull with the commit.

commented

Reviewed pull #11426 at its head: ticked The five costliest tools each shrink with no behaviour lost; no tool is added; Ceilings are not raised; docs/MCP.md table regenerated with bun scripts/mcp-table.ts; test/mcp-size.test.ts and test/mcp-table.test.ts pass.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs