What is MCP? Follow an assistant’s tool call
Connecting an assistant to live data takes more than a prompt. Follow an inventory lookup to separate the model, the MCP client and the server.
“Are blue notebooks in stock?” sounds simple. To answer from live inventory, an assistant must discover the right tool, understand its arguments and receive a usable result. The lookup must also respect who is asking.
MCP, Model Context Protocol, standardizes part of this exchange between applications and servers providing tools and context. It is neither an AI model nor a database. A connection does not grant permission to read everything behind it.
MCP matters when assistants connect to multiple services: compatible integrations can share a protocol instead of inventing one each time. The example messages follow the 2025-11-25 specification.
Three pieces with different jobs
The host is the application where you use the assistant. An MCP client inside that host maintains a connection to an MCP server. The server exposes specific capabilities, such as looking up warehouse stock.
A host may run several clients, one per connection. The model can help decide which tool to use without speaking directly to the database.
Here, the host receives the question, the client carries the request and the server queries inventory. The database remains behind the server. If you know the agent loop, MCP fits where that loop discovers and invokes tools.
Discover first, call second
After initialization and capability negotiation, the client can request tools/list. The server describes tool names, purposes and input schemas. Our fictional get_stock tool accepts a string named sku.
An invocation could look like this:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "get_stock",
"arguments": {"sku": "NOTEBOOK-BLUE"}
}
}A minimal response could be:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"content": [
{"type": "text", "text": "NOTEBOOK-BLUE: 7 units available"}
],
"isError": false
}
}The id matches response to request. The model may use the tool result to compose its answer. Seven units is invented example data, not a real inventory lookup. These messages are not a complete client: transport, initialization and error handling are omitted.
Tools, resources and prompts have different roles
Tools perform operations: looking up stock, calculating a quote or creating a draft. Resources expose context an application can read, such as documents. Prompts provide reusable templates for particular tasks.
Servers need not support all three. Check the capabilities a server actually advertises. An application's MCP support does not imply support for every server capability or extension.
An ordinary HTTP API can still sit behind the MCP server. MCP supplies a shared discovery and messaging interface; it does not require rewriting the inventory business logic.
Permissions remain your responsibility
A tool named get_stock should not modify orders. Its name cannot prevent a faulty implementation from doing so. Enforce boundaries in server code and in the credentials used to access the underlying service.
Start with read-only inventory access, validate SKUs and scope queries to the warehouse the current user may access. A customer ID supplied by a model is not proof of identity. Treat returned text as data: it may contain misleading information or malicious instructions.
If you later add stock reservation, define confirmation requirements and prevent retries from creating duplicate reservations. MCP transports requests; the application remains responsible for their effects.
When it is useful
For one internal function and one consumer, a direct call may be enough. MCP becomes useful when multiple compatible clients should use the same integration, or one host needs to discover tools across multiple servers.
Before installing a server, inspect what it runs, what it can access and which credentials it needs. Compatibility alone does not establish suitability.
Read the official architecture, the tools contract and the LLMs, RAG and agents cheat sheet. A useful first integration can be small: one read-only lookup with a result you can check by hand.