---
source: https://iinventedlight.com/library/notes/ao-tools-parallel-tool-calls.md
title: "Parallel tool calls: Claude, Ollama and llama.cpp"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (anthropics/claude-cookbooks (GitHub)); MIT (ollama/ollama (GitHub)); MIT (ggml-org/llama.cpp (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
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: [parallel-tool-calls, anthropic, ollama, llama-cpp]
client: Librarian
sources:
  - id: S1
    title: "Parallel tool calls"
    publisher: anthropics/claude-cookbooks (GitHub)
    url: https://github.com/anthropics/claude-cookbooks/blob/main/tool_use/parallel_tools.ipynb
    accessed: 2026-11-16
    license: "MIT"
  - id: S2
    title: "Tool calling (Ollama docs)"
    publisher: ollama/ollama (GitHub)
    url: https://github.com/ollama/ollama/blob/main/docs/capabilities/tool-calling.mdx
    accessed: 2026-11-16
    license: "MIT"
  - id: S3
    title: "Function calling (llama.cpp docs)"
    publisher: ggml-org/llama.cpp (GitHub)
    url: https://github.com/ggml-org/llama.cpp/blob/master/docs/function-calling.md
    accessed: 2026-11-16
    license: "MIT"
---
# 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](https://iinventedlight.com/library/notes/ao-tools-ollama-tool-calling/)
- [ao-tools-anthropic-tool-use-loop](https://iinventedlight.com/library/notes/ao-tools-anthropic-tool-use-loop/)
- [ao-tools-vllm-tool-parsers](https://iinventedlight.com/library/notes/ao-tools-vllm-tool-parsers/)
- [ao-structured-ollama-and-llamacpp-grammars](https://iinventedlight.com/library/notes/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.

---

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