glossary

Tools and MCP

MCP server

An MCP server is the process that advertises tools, resources and prompts to a connected client and then executes the capability the client asks for, returning the result over the same session.

Abracadabra Team Glossary

How it works

The server is a process with handlers behind the protocol. It answers initialize with the protocol version it will speak and the capability flags it implements. tools/list returns names it will accept. tools/call finds the handler, runs it with the arguments the client sent, and replies with content or an error. resources/list, resources/read, prompts/list, and prompts/get are the same process serving other types. The handler, not the model, talks to the database or the file system.

If the process is down, that server contributes no list and no calls. If the process is up and one handler throws, only that call fails. A permits server and a maps server are separate processes with separate lifecycles, even when one client attaches both. Handler logs live on the server: the query, the fee table version, the exception. The client log shows the session and the bytes that crossed it, not the SQL, unless the result body includes the detail.

A worked example

A permits server answering tools/call

Process: permits-mcp, listening for one client session from the planning desk.
initialize response: capabilities.tools = true, capabilities.resources = true, prompts absent.
tools/list response: search_permit (query string) and get_fee (permit_id string).
resources/list: fee-table://2026.
Client sends tools/call name get_fee arguments {"permit_id":"P-883"}.
Handler loads fee-table 2026, finds P-883, and returns content text {"permit_id":"P-883","fee_gbp":140,"table":"2026"} with no error flag.
A later tools/call for get_fee {"permit_id":"P-999"} hits no row. The handler returns an error result, unknown permit, and does not guess a fee.
When the process is stopped, the planning desk's next initialize fails and neither tool is advertised. The maps server on the same machine keeps serving. The fee quote existed only while permits-mcp was up and the handler ran.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • The process stays up while the fee table file is missing. tools/list still advertises get_fee, and every call errors. The client looks healthy because initialize succeeded.
  • The handler catches a database error and returns a fee of 0 with no error flag. The model quotes a free permit. The server, not the model, invented the number.
  • Two versions of the process run, and the client attaches to the old one. tools/list omits a new required argument, so calls that match the new schema fail only on that process.

How to measure it

On the server, count initialize, tools/list, and tools/call by name, with handler latency and whether the result was an error. A rise in unknown-permit errors is a handler fact. A stopped process shows up as failed initialize, which is a different page of the log.

Tie the permit id in the conversation to the handler result. An applicant who repeats P-883 because the quoted fee does not match the published table is pointing at a result the server built, including a 0 that should have been an error.

Further reading

How Abracadabra helps

An applicant who repeats permit P-883 because the quoted fee does not match the council table is showing that the server's handler result never became the fee they were shown.

Tool events are searchable even when the person never wrote a complaint. Abracadabra keeps the task outcome next to those calls, because a tool can return success while the task is unfinished. MCP analytics, which would group calls by server and tool, is in early access.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.