What is a Model Context Protocol (MCP) tool?
An MCP tool is a function an MCP server offers a language model to call, defined by a unique name, description and input schema; it lets the model query databases or call APIs. The specification makes tools model-controlled: the model decides from context when to call them.
Unlike an MCP resource, data the host reads into context, a tool is an operation that produces a result and may change external systems. It is a tool definition published through an MCP server.
- Topic
- Agents and protocols
- Also known as
- MCP tools, Model Context Protocol tool
How a Model Context Protocol (MCP) tool works
- The server declares the tools capability; the client fetches names, descriptions and input schemas with a tools/list request.
- The host presents tools to the model, which decides when to call one with arguments.
- The client sends tools/call; the server runs the tool and returns the result as text, image or structured content, flagged if an error occurred.
- The server can announce list changes; the list may differ by the requesting user's authorisation.
In more detail
Tool annotations and the output schema
MCP tool definitions support behavioural metadata annotations, such as `readOnlyHint`, `destructiveHint`, `idempotentHint` and `openWorldHint`, alongside optional `outputSchema` definitions for structured outputs. Hosts rely on these hints to decide when to auto-approve safe read operations versus prompting the user before destructive actions, though untrusted servers' hints must never replace server-side authorisation.
Protocol errors versus tool execution errors
MCP distinguishes between JSON-RPC protocol errors (such as unknown tool names or malformed arguments) and tool execution errors returned with `isError: true` inside a normal tool result. Returning domain errors via `isError: true` allows the language model to inspect the failure reason and self-correct its parameters on a subsequent call.
Context bloat and degraded tool selection at scale
Exposing dozens or hundreds of MCP tools simultaneously inflates the model's context window, increases token latency and cost and degrades tool-selection accuracy. Production hosts mitigate this by filtering tools per user role, grouping capabilities into coarse-grained workflows or dynamically retrieving only task-relevant tool schemas.
Commonly confused terms
| Term | How it differs |
|---|---|
| MCP prompt | MCP prompts are user-controlled reusable prompt templates explicitly invoked by a user (e.g., via slash commands), whereas MCP tools are invoked autonomously at the model's proposal during reasoning. |
| General tool calling | Function calling is a general LLM API mechanism where a model emits JSON arguments for functions defined directly in the prompt payload; an MCP tool standardises how those definitions are dynamically advertised, validated, executed and secured across decoupled servers. |
Why a Model Context Protocol (MCP) tool matters for on-premises AI
MCP tools let agents act in company systems, so the greatest benefit and greatest risk sit here. The specification recommends users can deny tool calls and applications show which tools are exposed and when invoked. In-house, tools stay narrow, permissions are checked on every call and tools that write or delete need approval. External servers' tool descriptions are not used unreviewed.
A bank's internal MCP server publishes a tool reading customer records and one opening complaints; reading runs directly, opening a complaint needs the employee's on-screen approval, with every call logged.
Common questions
How does an MCP tool differ from an MCP resource?
A resource is data the host reads and adds to context. A tool is an operation the model calls that produces a result and may make changes.
Do MCP tool calls need human approval?
The specification recommends users can deny calls. Organisations tie tools that write, delete or send externally to approval in particular.
Related terms
- Model Context Protocol (MCP) server
- AI tool definition
- Model Context Protocol (MCP) client
- Model Context Protocol (MCP) resource
- Tool calling
- Model Context Protocol (MCP) security
Sources
In the glossary: Glossary, M to Q