glossary

Tools and MCP

MCP tool

An MCP tool is a named function a server exposes with a description and a JSON schema, which the client can call so the server runs it and returns a result the host can show the model.

Abracadabra Team Glossary

How it works

A tool is one entry from tools/list. It has a name the model must spell exactly, a description, and an input schema, usually JSON schema. tools/call invokes that name with arguments. The server returns content, often text, and may mark the result as an error. The host places that content on the next model call. Any side effect happens in the handler. Creating a pull request, commenting, or querying with a filter are tools because the server runs something when called.

A static document is a resource. A fill-in template is a prompt. Putting either behind tools/call blurs the audit, because a read and a recipe look like actions. Say in the description whether a second call with the same arguments opens a second pull request. A schema that ignores unknown fields still accepts them, so the trace can hold arguments the handler never read. The name is the contract. A near miss, create_pr against create_pull_request, is an unknown tool, not a fuzzy match.

A worked example

create_pull_request as an MCP tool

tools/list entry on the forge server:
name: create_pull_request
description: "Open one pull request from head to base. A second call with the same head and base returns the existing pull request URL and does not open another."
inputSchema: object, required ["repo","head","base","title"], additionalProperties false.
User: Open a pull request from branch fix-tax onto main in repo billing, title "Fix tax rounding".
Client tools/call name create_pull_request arguments {"repo":"billing","head":"fix-tax","base":"main","title":"Fix tax rounding"}.
Server handler opens PR 441 and returns content {"url":"https://forge.example/billing/pull/441","number":441} with error false.
Assistant: Pull request 441 is open on billing.
A second call with the same head and base returns the same URL, number 441, because the description's contract is what the handler implements.
A call named create_pr is not this tool. The server returns unknown tool. There is no fuzzy match on the name.

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

What goes wrong

  • The description says a second call is safe, but the handler opens PR 442 anyway. Callers retry a timeout and the repo gains two pull requests.
  • additionalProperties is left open. The model sends a body field the handler ignores, and a reviewer thinks the PR text came from the tool.
  • The result content is a sentence, "opened", with no URL. The model invents a link. The tool ran, and the result was too thin to quote, so the author cannot open what the reply named.

How to measure it

For each tools/call, store name, arguments, error flag, and whether the assistant text quotes a field present in the content. An invented URL is a result that did not contain the link the person was given.

Count distinct pull request numbers per head and base. More than one, after retries, means the tool was not behaving as the description promised. The author saying the link does not open is the matching conversation signal.

Further reading

How Abracadabra helps

The author who says the billing pull request link does not open is showing that the reply quoted a URL the create_pull_request result never contained.

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.