Why agents use Model Context Protocol for tools
Model Context Protocol grew out of a mundane problem. Agents can call tools to read files, query databases, or use APIs. Each agent used to need its own tool descriptions, parameter formats, and error handling. Ten agents and ten services could mean a hundred integrations.
MCP does for agent tools what the Language Server Protocol did for editors. The server advertises its tools, the client discovers them, and any agent that supports MCP can use them through the same protocol.
What MCP provides
- Tools are operations the agent can call. Each has a description and a parameter schema.
- Resources are data the agent can read, such as files, records, and documents.
- Prompts are reusable templates the server offers to the client.
MCP uses JSON-RPC. A local connection uses standard input and output, while a network connection uses HTTP. A local server runs as a process on your machine. A networked server needs authentication and the other protections you would give a public service.
When it pays off
MCP helps when several agents need a tool or when the tool needs to outlast your choice of agent. Write an MCP server for your issue tracker and you can use it from the terminal, editor, or chat. The server can stay in place when you switch agents.
When a script is simpler
If a tool only serves you and one agent, a script in PATH or a few lines of agent configuration are often quicker to set up and easier to debug. The protocol pays off when you reuse the integration.
Consider the context cost as well. If a client loads all the tool descriptions from its connected servers into the prompt, a dozen unused servers can consume a noticeable share of the context window.
What to check before connecting a server
- Look at what the tools can do. A tool with write permission can modify data regardless of what its name suggests.
- Check where the server came from. A local MCP server runs on your machine with your permissions.
- Check how much context it uses. If the agent becomes less responsive after you connect a server, its tool descriptions are a good place to investigate.