How it works
The client sends a tools array on the provider request. Each entry has a name, a description, and a parameters object written as JSON schema, with types and required fields. The completion comes back with a finish reason of tool_calls, a call id, the name, and arguments as a JSON string. That string is a request. It is not evidence that any function ran on a server the provider controls.
The harness parses the string, refuses it when it is not valid JSON or when a required field is missing, and only then invokes local code. The follow-up request carries a tool message with the same call id and the function output. Mixing this shape up with the multi-step behaviour hides faults that happen before a side effect, such as an arguments blob the parser cannot read, or a call id that never gets a matching tool message.
A worked example
A frost warning on the provider request
Request tools[0]: name "frost_risk", description "Return overnight frost risk for a vineyard block", parameters type object, required ["block_id","night"], properties block_id string and night string format date. No other tools are bound.
User message: Will block K2 frost on the night of 3 April?
Completion: finish_reason "tool_calls", tool_calls[0].id "call_91", function.name "frost_risk", function.arguments "{"block_id":"K2","night":"2026-04-03"}".
The provider stops. Nothing has queried the weather station.
Harness parses the arguments, calls the station service, and sends a second request with role tool, tool_call_id "call_91", content {"min_c":-1.4,"risk":"likely","station":"Wye-2"}.
Only that second request lets the model name Wye-2 and the minimum. The first completion was a request for a call, not a forecast.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- Arguments arrive as truncated JSON, so the parser throws before the station is queried. A harness that still asks the model to "continue" without a tool message invites a forecast with no station behind it.
- The schema marks night as a date and the model sends "tomorrow". The provider may still return the call. Rejection has to happen in the harness, or the station service receives a string it cannot bin.
- The follow-up request uses a different call id from call_91, so the provider rejects the tool message or attaches the frost body to nothing. The shape is then broken even though the station returned numbers.
How to measure it
Log the raw arguments string, the parse result, and whether a tool message with the same call id was sent on the follow-up request. A tool_calls finish with no follow-up is an unfinished shape, not a completed lookup.
On the conversation, a grower who restates the block id or asks which station was used is evidence the arguments never became a checkable call. Count those turns next to parse failures, not only HTTP status from the station.
Further reading
How Abracadabra helps
When the grower restates block K2 and asks which station the frost warning used, the conversation is showing that a function request never became a call with arguments they can check.
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.