Parallel tool calls: Claude, Ollama and llama.cpp
Answer: Claude may call several tools in one assistant turn. To turn this off, set disable_parallel_tool_use. Ollama documents parallel tool calling where you request multiple tool calls, then send all tool responses back to the model. In llama.cpp, multiple or parallel tool calling is supported on some models but disabled by default; enable it with "parallel_tool_calls": true in the request.
Why it matters
The Claude cookbook notes that on some prompts the model still makes one tool call per turn, adding a round trip each time. Its workaround is a "batch tool": a meta-tool that wraps several invocations of your other tools, which your code unpacks.
Ollama message shape
Each tool result goes back as a message with "role": "tool", the tool_name, and the content.
See also
- ao-tools-ollama-tool-calling
- ao-tools-anthropic-tool-use-loop
- ao-tools-vllm-tool-parsers
- ao-structured-ollama-and-llamacpp-grammars
Claims
- id: C1 claim: Claude parallel tool use is on by default. source: S1 evidence: "parallel tool use is on unless you set
disable_parallel_tool_use"
- id: C2 claim: Ollama sends all tool responses back. source: S2 evidence: "Request multiple tool calls in parallel, then send all tool responses back to the model."
- id: C3 claim: llama.cpp enables it per request. source: S3 evidence: "parallel_tool_calls\": true` in the completion endpoint payload"
Sources
- [S1] Parallel tool calls. anthropics/claude-cookbooks (GitHub). https://github.com/anthropics/claude-cookbooks/blob/main/tool_use/parallel_tools.ipynb . License: MIT. Accessed 2026-11-16.
- [S2] Tool calling (Ollama docs). ollama/ollama (GitHub). https://github.com/ollama/ollama/blob/main/docs/capabilities/tool-calling.mdx . License: MIT. Accessed 2026-11-16.
- [S3] Function calling (llama.cpp docs). ggml-org/llama.cpp (GitHub). https://github.com/ggml-org/llama.cpp/blob/master/docs/function-calling.md . License: MIT. 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: anthropics/claude-cookbooks (GitHub), Parallel tool calls, MIT (https://raw.githubusercontent.com/anthropics/claude-cookbooks/main/LICENSE). Copyright (c) 2023 Anthropic; ollama/ollama (GitHub), Tool calling (Ollama docs), MIT (https://raw.githubusercontent.com/ollama/ollama/main/LICENSE). Copyright (c) Ollama; ggml-org/llama.cpp (GitHub), Function calling (llama.cpp docs), MIT (https://raw.githubusercontent.com/ggml-org/llama.cpp/master/LICENSE). Copyright (c) 2023-2026 The ggml authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: anthropics/claude-cookbooks (GitHub), Parallel tool calls, MIT (https://raw.githubusercontent.com/anthropics/claude-cookbooks/main/LICENSE). Copyright (c) 2023 Anthropic; ollama/ollama (GitHub), Tool calling (Ollama docs), MIT (https://raw.githubusercontent.com/ollama/ollama/main/LICENSE). Copyright (c) Ollama; ggml-org/llama.cpp (GitHub), Function calling (llama.cpp docs), MIT (https://raw.githubusercontent.com/ggml-org/llama.cpp/master/LICENSE). Copyright (c) 2023-2026 The ggml authors.
Cite this
iinventedlight. 2026. "Parallel tool calls: Claude, Ollama and llama.cpp." iinventedlight Library, iil:note:kv2h2mqc, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-tools-parallel-tool-calls/. License: CC-BY-4.0.
@misc{iil_note_kv2h2mqc,
author = {{iinventedlight}},
title = {{Parallel tool calls: Claude, Ollama and llama.cpp}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-16},
url = {https://iinventedlight.com/library/notes/ao-tools-parallel-tool-calls/},
note = {Permanent ID iil:note:kv2h2mqc. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-tools-parallel-tool-calls.md.