glossary

Tools and MCP

Tool calling

Tool calling is the agent behaviour of choosing a named tool, having the harness run it, and folding the returned data into the next model call so the reply can use what the tool actually produced.

Also called tool use.

Abracadabra Team Glossary

How it works

The model does not open the inventory itself. It ends a completion with a tool name and JSON arguments, and the harness checks those arguments, runs the function, and stores the body or the error. That store is a tool message, not the sentence the person reads. A later completion sees the message and can call again or answer. Streaming the name is a product choice. The fold into the next call is the behaviour.

Count the whole stretch as one behaviour when a task needs two calls, such as a read of a booking and then a write of a new seat. The stop belongs in the same picture: once the hold and the fee are in context, another read is waste, and a step budget should cut the loop. Function calling is the schema on each provider request. Tool calling is the choice, the run outside the model, and the fold-back.

A worked example

A seat change on booking BX19

User: Move booking BX19 from seat 14C to a window, and do not add a change fee if the fare already includes one.
Model completion 1 ends with a tool call, name get_booking, arguments {"ref":"BX19"}. No assistant sentence yet.
Harness checks the schema, queries the rail inventory, and appends a tool message: {"seat":"14C","fare":"anytime","change_fee":0,"window_free":["14A","14F"]}.
Model completion 2 ends with change_seat, arguments {"ref":"BX19","seat":"14A"}.
Harness runs the write and appends {"seat":"14A","status":"held","fee":0}.
Model completion 3 calls nothing and answers: BX19 is held in 14A, a window seat, with no change fee, and the hold is not ticketed until you confirm.
The person saw only that third sentence. It exists because both tool messages were folded into the later completions.

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

What goes wrong

  • The model names a tool that is not bound, or sends a reference the schema rejects. If the harness still lets the next completion claim the seat moved, the behaviour has skipped the run and invented the fold.
  • The function runs and the tool message is dropped, so the next completion has no seat map. The reply guesses 14A, or the model calls get_booking again and the task looks like a stuck loop.
  • The model keeps calling after the hold and the fee are already in context, spending the step budget on repeated reads because the loop has no stop once the write result is known.

How to measure it

Count calls per task and whether the assistant sentence after the last tool message cites fields from that message or contradicts them. A claimed seat change with no change_seat body is a broken fold, however finished the prose sounds.

Join each call id to the next user turn. A repeated booking reference, or a correction of the seat, shows the call never reached a reply the person could use, even when the inventory body was stored.

Further reading

How Abracadabra helps

A person who repeats booking BX19 and then corrects the seat they asked for is showing that a tool call was claimed, skipped, or folded in too late for the reply they read.

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.