MCP tool
Definition
A function that a Model Context Protocol server exposes for a model to call, described by a name, a description and a JSON Schema for its input.
In more detail
Clients discover tools with tools/list and run one with tools/call. The specification calls tools model-controlled, because the model decides when to use them based on the conversation. A GitHub server might offer create_issue and search_code, and an optional output schema lets a server return structured results that the client can validate.
The specification says a person should always be able to deny a tool call, and that clients should treat a tool's behaviour annotations as untrusted unless the server is trusted. A tool's description is also text the model reads, which is how tool poisoning works.
Related terms
MCP prompt
A reusable prompt template offered by an MCP server, which users usually pick explicitly, for example as a slash command in chat.
MCP resource
Data that an MCP server makes available by URI, such as a file, a database record or an API response, for the host to read into context.
MCP server
A program that exposes tools, resources or prompts to MCP clients, running locally over stdio or remotely over HTTP, so any MCP host can use them.
Tool calling
A model emitting a structured request to call a defined function, which your code runs and whose result is then fed back to the model.
Tool poisoning
Malicious instructions hidden in a tool's description, parameters or output that manipulate the agent using it without the user seeing them.
MCP Apps
An official MCP extension that lets a tool return an interactive interface, such as a form or chart, shown in a sandboxed frame in the chat.
Read more about MCP tool
- Build an MCP server in Python with FastMCP
Build a small MCP server in Python with FastMCP, test its tools in MCP Inspector without a model, then connect it to Claude Code, Cursor or another MCP host.
- MCP explained: hosts, clients, servers and transports
What MCP is and how the Model Context Protocol connects AI apps to tools and data: hosts, clients, servers, transports and what the 2026-07-28 spec changed.
- Model Context Protocol
Connecting AI applications to tools and data through MCP servers and clients.