← All notes

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

Claims

Sources

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

Permanent ID: iil:note:kv2h2mqc

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.},
}

Markdown

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.