MCP tool-definition token cost in OpenCode

Parent: Mac local LLMs: Agent clients, context and compaction · Published reference · snapshot 2026-10-05

↓ Facts as markdownall context files

OpenCode names MCP tools `<server>_<tool>` (server name as written in `mcp`, tool name verbatim, e.g. `context7_query-docs`, `global_ai_hub_hub_ask`) and sends the whole list sorted alphabetically by that name, MCP and built-in tools interleaved (bash, context7_*, edit, glob, global_ai_hub_*, ......

These notes link each claim to its source. A source may be a research report hosted on this site rather than the primary document. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.

Facts

Children

← the whole tree · 3D view· how to read this page