MCP is an open standard for connecting AI applications to tools and data. A host application runs one MCP client per server; servers expose tools (actions the model calls), resources (data the app reads) and prompts (templates the user picks). Local servers use stdio; remote servers use Streamable HTTP with standard authentication.
How do you design tools the model will use correctly?
Give each tool a clear name, a description of what it does, returns and when to use it, and a precise JSON Schema for inputs. Group tools around user intent rather than mirroring every endpoint, return concise results with pagination, and return clear errors the model can act on.
You define tools with names, descriptions and input schemas. Claude replies with a tool-use request; your application runs it and returns the result; Claude continues. tool_choice can let Claude decide, force a specific tool or require any tool.
Apply Zero Trust: authenticate the user, act with their identity and scopes, and authorise every call on the server. Expose only the capabilities the agent needs, treat documents and tool output as untrusted data, enforce limits in code and keep audit logs.
How do you stop many tools from crowding the context?
Load tool definitions on demand with tool search or deferred loading, process large results in code with programmatic tool calling, and pair MCP servers with skills so procedures load only when needed.