← All articles

Why agents use Model Context Protocol for tools

Deep dive · August 2026

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

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.

The tool description can live alongside the code that implements it. That makes it easier to keep both current than embedding a separate copy of the description in every agent's prompt.

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