---
source: https://iinventedlight.com/library/notes/ao-tools-tool-choice-across-providers.md
title: "Forcing or blocking tool calls: tool_choice across providers"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (openai/openai-cookbook (GitHub)); MIT (anthropics/claude-cookbooks (GitHub)); Apache-2.0 (google-gemini/cookbook (GitHub)); Apache-2.0 (vllm-project/vllm (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: openai/openai-cookbook (GitHub), How to call functions with chat models, MIT (https://raw.githubusercontent.com/openai/openai-cookbook/main/LICENSE). Copyright (c) 2025 OpenAI; anthropics/claude-cookbooks (GitHub), Tool choice, MIT (https://raw.githubusercontent.com/anthropics/claude-cookbooks/main/LICENSE). Copyright (c) 2023 Anthropic; google-gemini/cookbook (GitHub), Function calling config with REST, Apache-2.0 (https://raw.githubusercontent.com/google-gemini/cookbook/main/LICENSE); vllm-project/vllm (GitHub), Tool calling (vLLM docs), Apache-2.0 (https://raw.githubusercontent.com/vllm-project/vllm/main/LICENSE)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). Docs read; no API call was made for this note."
category: agent-operations
topic_area: "agent operations: tool calling"
tags: [tool-choice, function-calling, openai, anthropic, gemini, vllm]
client: Librarian
sources:
  - id: S1
    title: "How to call functions with chat models"
    publisher: openai/openai-cookbook (GitHub)
    url: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_call_functions_with_chat_models.ipynb
    accessed: 2026-11-16
    license: "MIT"
  - id: S2
    title: "Tool choice"
    publisher: anthropics/claude-cookbooks (GitHub)
    url: https://github.com/anthropics/claude-cookbooks/blob/main/tool_use/tool_choice.ipynb
    accessed: 2026-11-16
    license: "MIT"
  - id: S3
    title: "Function calling config with REST"
    publisher: google-gemini/cookbook (GitHub)
    url: https://github.com/google-gemini/cookbook/blob/main/quickstarts/rest/Function_calling_config_REST.ipynb
    accessed: 2026-11-16
    license: "Apache-2.0"
  - id: S4
    title: "Tool calling (vLLM docs)"
    publisher: vllm-project/vllm (GitHub)
    url: https://github.com/vllm-project/vllm/blob/main/docs/features/tool_calling.md
    accessed: 2026-11-16
    license: "Apache-2.0"
---
# Forcing or blocking tool calls: tool_choice across providers
**Answer:** Each API has a way to let the model decide whether to call tools, to force a particular tool, or to not use any tool.

| API | Auto | Must call one of the tools | Force a specific tool | Not use any tool |
|---|---|---|---|---|
| OpenAI Chat Completions API | by default | — | `tool_choice` set to the function | `"none"` |
| Anthropic Messages | `auto` | `any` | `tool` | — |
| Gemini function calling mode | `AUTO` | `ANY` | `allowed_function_names` | `NONE` |
| vLLM OpenAI-compatible server | `auto` | `required` | named function | `none` |

## Details from the docs

- The Claude cookbook says `any` means Claude must use one of the provided tools without forcing a particular tool.
- Gemini `NONE` tells the model not to make any function calls.

## See also

- [ao-tools-openai-function-calling](https://iinventedlight.com/library/notes/ao-tools-openai-function-calling/)
- [ao-tools-gemini-function-calling](https://iinventedlight.com/library/notes/ao-tools-gemini-function-calling/)
- [ao-tools-vllm-tool-parsers](https://iinventedlight.com/library/notes/ao-tools-vllm-tool-parsers/)
- [ao-tools-parallel-tool-calls](https://iinventedlight.com/library/notes/ao-tools-parallel-tool-calls/)

## Claims

- id: C1
  claim: OpenAI does not execute function calls itself.
  source: S1
  evidence: "Note that the API will not actually execute any function calls."

- id: C2
  claim: Anthropic any means use some tool, not a set one.
  source: S2
  evidence: "must use one of the provided tools, but doesn't force a particular tool"

- id: C3
  claim: Gemini NONE disables function calls for the turn.
  source: S3
  evidence: "`NONE` tells the model not to make any function calls"

- id: C4
  claim: vLLM supports auto, required and none.
  source: S4
  evidence: "`required` (as of `vllm>=0.8.3`), and `none` options"

## Sources

- [S1] How to call functions with chat models. openai/openai-cookbook (GitHub). https://github.com/openai/openai-cookbook/blob/main/examples/How_to_call_functions_with_chat_models.ipynb . License: MIT. Accessed 2026-11-16.

- [S2] Tool choice. anthropics/claude-cookbooks (GitHub). https://github.com/anthropics/claude-cookbooks/blob/main/tool_use/tool_choice.ipynb . License: MIT. Accessed 2026-11-16.

- [S3] Function calling config with REST. google-gemini/cookbook (GitHub). https://github.com/google-gemini/cookbook/blob/main/quickstarts/rest/Function_calling_config_REST.ipynb . License: Apache-2.0. Accessed 2026-11-16.

- [S4] Tool calling (vLLM docs). vllm-project/vllm (GitHub). https://github.com/vllm-project/vllm/blob/main/docs/features/tool_calling.md . License: Apache-2.0. Accessed 2026-11-16.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: openai/openai-cookbook (GitHub), How to call functions with chat models, MIT (https://raw.githubusercontent.com/openai/openai-cookbook/main/LICENSE). Copyright (c) 2025 OpenAI; anthropics/claude-cookbooks (GitHub), Tool choice, MIT (https://raw.githubusercontent.com/anthropics/claude-cookbooks/main/LICENSE). Copyright (c) 2023 Anthropic; google-gemini/cookbook (GitHub), Function calling config with REST, Apache-2.0 (https://raw.githubusercontent.com/google-gemini/cookbook/main/LICENSE); vllm-project/vllm (GitHub), Tool calling (vLLM docs), Apache-2.0 (https://raw.githubusercontent.com/vllm-project/vllm/main/LICENSE). Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
