What is AI tool choice?
Tool choice is the request setting that decides whether a tool-capable language model calls a tool and which one; typical options are auto, where the model decides, forcing at least one tool call, forcing a specific tool and turning tool calls off.
Unlike tool calling, the model's act of using a tool, tool choice sets how that act is constrained at request level. Tool definitions tell the model which tools exist and how to call them; tool choice sets how much freedom the model has among them.
- Topic
- Agents and protocols
- Also known as
- tool_choice, forced tool use
How AI tool choice works
- The application sends tool definitions with the request.
- Tool choice is set: auto, any tool required, a specific tool required or none.
- Within that limit the model answers in text or produces a tool call.
- Forced modes serve cases such as structured data extraction, where every call has to fit a schema.
In more detail
Controlling parallel tool calls
Beyond choosing between auto, required and specific modes, most APIs expose a parallel tool calling flag (such as `parallel_tool_calls` in OpenAI-compatible APIs or `disable_parallel_tool_use` in Anthropic). Disabling parallel calls forces sequential one-tool-at-a-time execution when later arguments depend on earlier tool results or when strict rate and approval controls are needed.
Constrained decoding, provider naming differences and reasoning models
Inference engines and providers implement `tool_choice` through constrained decoding (grammar or finite-state-machine token masking) to enforce valid tool names and JSON arguments. Furthermore, API dialects differ in naming (`auto`/`required`/`none`/named function in OpenAI versus `auto`/`any`/`tool`/`none` in Anthropic) and reasoning or extended-thinking models on some providers restrict forced modes so the model can first emit internal reasoning tokens before deciding on an action.
Fabrication risk in forced mode and structured outputs
Forcing a specific tool (`tool_choice` pinned to a single schema) is a classic pattern for structured extraction, yet if the input lacks required fields the model may hallucinate values to satisfy mandatory schema properties. Pairing forced tool choice with nullable fields, an explicit `insufficient_data` or `error` property or native Structured Outputs (`response_format`) prevents fabricated values and reduces unnecessary multi-turn round-trips.
Commonly confused terms
| Term | How it differs |
|---|---|
| Tool selection from a large catalogue | Tool selection refers to the model or retrieval router choosing the most relevant subset of tools from a large registry; tool choice is the API constraint parameter sent in the inference request. |
Why AI tool choice matters for on-premises AI
Auto mode is flexible but may skip a needed tool; forced mode is predictable but can cause needless calls. An early paper showing language models can teach themselves to use tools reports letting the model decide which API to call, when and with what arguments markedly improved zero-shot performance across many tasks. A major model provider's documentation notes forced tool use is not supported on every model and setting, so check it against the model in use.
A customs brokerage forces a specific extraction tool in its flow pulling fields from incoming declaration emails, while leaving tool choice on auto in its customer chat assistant.
Common questions
What happens with tool choice on auto?
The model decides whether to call a tool. It is flexible but can skip a needed tool; monitor it with evaluation tests.
When is forcing a specific tool appropriate?
When output always has to fit a schema, as in structured data extraction. Check the model supports forced mode.
Related terms
Sources
- Toolformer: Language Models Can Teach Themselves to Use Tools, 2023
- Claude API documentation, Define tools
In the glossary: Glossary, R to Z