glossary

Tools and MCP

Tool choice

Tool choice is the API control that sets whether the model may call tools, must call one, must call none, or must call a forced name on the next completion.

Also called tool_choice.

Abracadabra Team Glossary

How it works

tool_choice is set by the harness on one provider request. auto leaves the model free to answer in text or to call a bound tool. none asks for text and should produce no tool call. required demands some call, any tool that is bound. A forced name demands that function, so the first turn of a claim can be made to request lookup_policy before any sentence about cover. The field does not check the arguments.

Selection is what the model does when the control is auto or required and more than one tool remains. Choice is the constraint applied first. none on a greeting avoids a pointless lookup. A forced name on the first claims turn stops a fluent answer that never opened the policy. required with a long list still allows a bad pick, which is selection under a weaker constraint.

A worked example

A claim turn forced to call lookup_policy

Tools bound for the claims bot: lookup_policy and draft_reply.
User: My policy is HN-19. Was the cracked screen covered last Tuesday?
Request 1 sets tool_choice to the forced name lookup_policy.
The model must request that function. It returns lookup_policy {"policy":"HN-19"}. It is not allowed to answer in prose on this request, and it is not allowed to call draft_reply first.
Harness runs the lookup and gets {"screen":"covered","excess_gbp":75,"valid_on":"2026-11-18"}.
Request 2 sets tool_choice to none, with the tool result in context, and asks the model to answer the person.
The model returns text only: the screen is covered, excess GBP 75, and Tuesday falls inside the valid window. No further tool call is accepted on request 2.
The same sentence with tool_choice auto can answer from memory and never call lookup_policy. A forced name still does not stop an empty policy id when the user gave none.

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

What goes wrong

  • auto on the first claims turn lets the model skip lookup_policy and state cover from the prompt. The control was too loose for a question that depends on the file.
  • A forced name is left on for the whole session, so a greeting also calls lookup_policy with an empty policy number and the bot looks broken.
  • required is set with both tools bound. The model satisfies it by calling draft_reply and never lookup_policy. The control demanded a call, not the right call.

How to measure it

Record tool_choice on every provider request: auto, none, required, or the forced name. Pair it with whether a tool call was returned and which name. A cover answer on a turn whose choice was auto, with no lookup call, is the loose setting. A greeting that calls lookup_policy is the tight setting left on too long.

Where the name was forced, still grade the arguments. Empty policy ids under a forced lookup are a schema problem the control does not solve. The claimant who says the answer never checked the policy is the signal for a turn that was allowed to speak with no call.

Further reading

How Abracadabra helps

A claimant who says the answer never checked policy HN-19, on a turn that was free to reply without a call, is showing that tool choice left the lookup optional.

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.