glossary

Tools and MCP

Tool result

A tool result is the payload the harness writes back into the model context after a call, and its size and specificity decide whether the next step can finish the task or has to call again.

Abracadabra Team Glossary

How it works

When the function returns, the harness builds the tool message the next model call will read: the call id, and content. Content might be a small object, a paragraph, or every row the query matched. The model does not see the database. It sees this message. A projection, a character cap, or a pass-through of the raw body is a decision about what the result is. Truncation should be labelled in the message so a partial list is not treated as the full set.

Size and specificity pull apart. A parts query that pastes thousands of SKUs into the window crowds out the user turn, and the one gasket that matters is easy to skip on a later step. A result that says only "ok" gives the model nothing to quote, so it calls again or fills a detail from memory. Shape the payload around the decision the next step must take.

A worked example

A gasket lookup buried in a parts dump

User: Which bin holds gasket G-441 for the 2014 pump, and is there more than one on the shelf?
Model calls search_parts {"q":"gasket"}.
The parts service returns every gasket row. The harness writes all 1,800 lines into the tool message, with sku, bin, qty, and a long description. G-441 is line 1,206, bin B-14, qty 2.
Next completion quotes sku G-14 in bin A-02, qty 40, which is a different gasket near the top of the dump, and says the shelf is well stocked.
A second run of the same question, with the harness writing only {"sku":"G-441","bin":"B-14","qty":2}, produces: G-441 is in B-14 and there are two.

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

What goes wrong

  • The raw body is pasted in full and the useful row sits far down. The reply cites a row from the head of the list and sounds specific, so the miss is hard to spot without the part number.
  • The harness replaces a rich body with "ok" or an empty object to save tokens. The model calls search_parts again with a narrower query, or it invents a bin.
  • A cap cuts the message mid-JSON and the next completion still parses what it can. Half a row becomes a confident bin code that was never in the source.

How to measure it

Record the token size of each tool message and whether the assistant text that follows mentions a field that was inside that message. A citation of a bin that does not appear in the tool message is a result the model did not use, or could not find.

Compare task outcome when the same call is projected to the fields the question needs versus when the raw body is passed through. The conversation signal is a person who pastes the part number again after the reply named another aisle.

Further reading

How Abracadabra helps

A fitter who pastes part number G-441 again, after the reply named a different bin, is showing that the tool result in context was too large or too vague to support the answer.

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.