glossary

Tools and MCP

Agent-to-agent protocol (A2A)

An agent-to-agent protocol is a way for one agent to hand a task to another agent and receive status and artefacts back, which is distinct from a protocol that connects a host to tools and data.

Abracadabra Team Glossary

How it works

The caller is an agent with its own loop, not a tool client under one model call. It learns about a peer from an agent card: what the peer claims to do, how to authenticate, and where to send work. It posts a task, a message plus any parts the peer should see. The peer runs its own loop, which may call tools the caller never receives schemas for, and reports task state. Results come back as status and artefacts on the peer's schedule.

MCP attaches tools, resources, and prompts to one host. An agent-to-agent protocol attaches a peer that may use MCP privately. Exposing the peer's tools on the caller collapses that boundary and publishes schemas the peer did not offer. Using a task protocol for a single function adds auth, task ids, and cancellation to store. Keep the trace explicit about which protocol carried the handoff.

A worked example

A claims desk handing a scan to a reader

Caller: the claims agent, talking to the claimant.
Peer: a document agent, advertised by an agent card that says it reads medical scans and returns a page-cited summary.
Caller posts a task: id task_77, message "Summarise the attached scan and cite page numbers", part the PDF bytes.
The caller does not send a tools/call, and it does not see the peer's tool list.
Peer state moves from submitted to working. Inside the peer, unseen by the caller, an MCP file server reads the PDF and an OCR tool runs. The caller only receives status events.
Peer completes task_77 with an artefact: text, "Page 2 records a fracture of the left wrist. Page 4 has no imaging."
Caller then tells the claimant what page 2 says. The OCR schema never entered the claims prompt.

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

What goes wrong

  • The caller binds the peer's OCR tool directly over MCP to save a hop. The claims prompt now contains a file-read tool the document agent did not mean to publish, and a prompt injection in the PDF can call it.
  • The caller treats a still-working task as a finished tool result and tells the claimant the wrist is clear before the artefact arrives.
  • Task ids are not stored. Two scans share a conversation, the later artefact is applied to the earlier claim, and the citation points at the wrong PDF.

How to measure it

Log protocol, task id, peer identity from the agent card, state transitions, and whether an artefact was attached before the caller spoke to the user. A user-facing summary with no artefact on that task id is a handoff the caller did not wait for.

Keep the peer's internal MCP calls in the peer trace, not in the caller trace. If page citations in the reply do not appear in the artefact text, the caller added them. The claimant asking whether anyone read the scan is the signal that lines up with a missing artefact.

Further reading

How Abracadabra helps

A claimant who asks whether anyone read the scan, after a summary with no quoted page, is showing that the peer agent never returned an artefact the reply could stand on.

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.