MCP tool
A function an MCP server offers for the model to call, described by a name, description and input schema.
In more detail
Tools are model-controlled: the model decides when to call them, through the client's tools/call request. A result carries content and optional structuredContent, and a failure is a result with isError set to true.
Related terms
- MCP server — A program that exposes tools, resources or prompts to AI applications through the Model Context Protocol.
- tool execution error — An MCP tool failure reported as a normal result with isError set to true, as opposed to a protocol error with a JSON-RPC error code.
- structured content — The optional JSON object in an MCP tool result that holds machine-readable output, alongside the text content.
Taught in
- What MCP Is — AI Engineering: LLM Apps, RAG & Agents
- Build An MCP Server — AI Engineering: LLM Apps, RAG & Agents
- Connect An Agent To MCP — AI Engineering: LLM Apps, RAG & Agents
- Remote Servers And Trust — AI Engineering: LLM Apps, RAG & Agents
- Capstone: The Tasks Assistant — AI Engineering: LLM Apps, RAG & Agents