
Does your AI agent run its tool calls in parallel?
Unity Horizon7 min read
Only if your loop does. The model emits several calls in one turn, and of ten shipped tool loops we read, nine overlap them and one awaits them one by one.
Only if the loop around the model does. The model decides to ask for six tools in one turn. Whether those six overlap is decided by the code you wrote or installed, and the Claude documentation says so in one sentence. Of ten shipped tool loops we read, nine dispatch the batch at once. The tenth awaits the calls one at a time, and it is an official SDK. Checked by Unity Horizon on 4 December 2026.
Who decides that two tool calls run at the same time?
The vendors say so themselves. Anthropic's parallel tool use page is the plainest of the three: "How you run those calls is your decision. The API doesn't prescribe an execution order: you can run the calls concurrently (Promise.all, asyncio.gather), sequentially in the order they appear, or in any combination that suits your tools."
OpenAI's function calling guide tells you that "Since model responses can include zero, one, or multiple calls, it is best practice to assume there are several", and then loops over them one at a time in its own sample without saying whether the order costs anything. Google documents multiple functions in a single turn and prints them without running any.
So the parallelism in the release notes is a property of the response. The model asked for six things at once. The loop asked for them six times.
What does one call at a time cost on the clock?
We measured the three dispatch shapes we had read in the source. Each tool is one request to a local HTTP server that sleeps 900 ms before replying. Six calls to a turn, five runs, medians below. Nothing varies except the dispatch, which is why the numbers land on exact multiples.
| Dispatch shape | Median wall clock for one turn |
|---|---|
| Sequential, awaited in order | 5,409 ms |
| Concurrent, unbounded | 902 ms |
| Concurrent, capped at four workers | 1,804 ms |
Six calls, 900 ms each, measured 4 December 2026 on a two-core runner. The sequential column is 6x the concurrent one, and the capped column is 2x, because six calls through four slots is two rounds.
Now put that in a run. An agent that takes 20 turns and makes those six calls on half of them carries about 45 extra seconds of waiting, and no model upgrade touches it. We measured the other side of that budget in Does a faster AI model make your agent finish sooner?: output speed moves 11% across Claude Opus 5.5's five effort levels while the wait before the first answer token moves 71 times.
Which agent frameworks overlap a turn's tool calls?
Nine of the ten loops we read overlap them, and two of those nine cap the batch at a number nobody on your team picked. One runs the calls in a for loop.
| Library, read 4 December 2026 | What its tool loop does with a batch |
|---|---|
ai 7.1.0 |
Promise.all over the whole batch. toolCallConcurrency caps it, and the doc comment reads "Default: unlimited" |
@langchain/langgraph 1.7.7 |
ToolNode maps the calls into Promise.all. No cap, no timeout |
@openai/agents-core 0.23.1 |
All at once unless maxFunctionToolConcurrency is set, then a worker pool |
@anthropic-ai/sdk 1.17.0 |
Promise.all for function tools. A toolset's members run in order and stop at the first error |
anthropic 2.17.0 |
for tool_use in tool_use_blocks: with an await inside. Sequential, on both the sync and the async path |
openai-agents 0.26.2 |
One asyncio task per call, all slots filled when max_function_tool_concurrency is None |
langgraph 1.2.25 |
asyncio.gather on the async path. The sync path uses a thread pool sized by max_concurrency |
pydantic-ai-slim 2.78.0 |
Parallel inside each segment, with sequential=True tools acting as barriers |
llama-index-core 0.14.26 |
Sends one event per call to a @step whose num_workers defaults to 4 |
smolagents 1.26.0 |
ThreadPoolExecutor(self.max_tool_threads), and the default is the pool's own |
Read the last two rows again, because their caps are invisible. LlamaIndex runs a turn of six tool calls four at a time, since nothing in its agent code overrides the workflow engine's num_workers=4. smolagents inherits min(32, (os.process_cpu_count() or 1) + 4) from the Python standard library, which was 6 on the two-core box we measured on. Your tool concurrency is set by the core count of a machine that spends the whole turn waiting on somebody else's HTTP.
The same vendor ships both answers. Anthropic's TypeScript runner batches with Promise.all; its Python runner awaits each call in turn. Neither README mentions tool execution order, and the parallel tool use page recommends the runner for most applications.
Why does a turn still cost the slowest tool?
Because the next request needs the complete set. The tool call handling page requires "one tool_result block for each tool_use block in that content, even if the tool failed", in a single user message, with the results before any text. The turn cannot advance on a partial set, and skipping a call means sending is_error: true with a reason rather than leaving it out.
That makes the floor the slowest call in the batch. A concurrent loop buys you the maximum of your tool latencies instead of their sum, which is most of the win and not all of it.
Then check what bounds the maximum. None of the ten loops ships a default tool timeout. The Vercel AI SDK takes toolMs, the OpenAI Agents SDK takes timeout_seconds with error_as_result, which hands the model a timeout string and keeps the turn valid, and the other eight have no timeout at any layer of their own. What is left is whatever the HTTP client under your tool decided, and we counted those defaults in Which timeout fires first when an AI model thinks for five minutes?. Without a timeout the slowest call in the batch has no ceiling at all.
What breaks when you switch concurrency on?
Ordering, mostly. Anthropic's guidance is that "independent, read-only operations are usually safe to run in parallel for lower latency" while "tools with side effects, shared state, or ordering requirements might be better run sequentially", and the computer use and browser use toolsets are stricter still: run their batched member calls in the model's order and stop at the first failure. The TypeScript runner implements exactly that split, one sequence per toolset family while function tools run alongside.
Rate limits come next. Six parallel calls into one upstream is how a latency fix turns into a 429. The cost that nobody sees is in the history you write afterwards: return each result in its own user message and, per the same page, you teach the model to stop batching. "A separate user message for each tool result" is listed first among the reasons Claude is not making parallel calls when expected. Serialise the history and the model serialises the work.
Who gains from fixing this, and who was never affected?
Agents whose tools call out to systems they do not own gain the most. That waiting happens on somebody else's network, and it overlaps for free. We built Noxio's integrations with Booking.com, Airbnb, Expedia, VRBO, Hostelworld, Agoda, Trip.com, HRS and Tripadvisor, and we built OFFSET, which ingests from Airbnb, Booking.com and PMS systems. A turn that asks nine outside systems anything is as slow as the slowest of the nine. One channel having a bad afternoon sets the clock for the other eight. The same shape, measured on calendars instead of tool calls, is in How does a channel manager actually stop a double booking?: Airbnb refreshes its iCal feed every 3 hours, and that gap rather than the channel count is where the double bookings come from.
Agents with one local tool were never affected, and neither were agents whose model emits one call per turn, which is still most of them. The arithmetic turns on at the first batched turn. Find out whether you have one.
What do you change on Monday?
Log the number of tool use blocks per assistant turn. That one counter tells you whether any of this applies to you, and most teams have never written it.
Then read the dispatch line in your loop. One line, either a for with an await in it or a gather, and in nine of the ten libraries above a maintainer you have never met chose it for you.
Put a timeout on every tool after that, and return the timeout as an error result rather than raising it, because the API wants a result block for each call either way. If you cap the batch, cap it on purpose. Four workers is a number worth choosing rather than inheriting.
What we have here is a code read and a local test server, not a benchmark of these frameworks against a live model. Our 900 ms tool is a fixed sleep, real tools are a distribution, and we have not measured how often each framework's model actually batches its calls in a long run, which is the other half of the saving. If you have that number from production, we would like to see it.
If you are scoping an agent that fans out across systems you do not control, our agentic AI systems page sets out how we scope one. How many tool calls does your agent's busiest turn ask for, and does your loop start them together?
Common questions
Does the model or my code decide whether tool calls run in parallel?
Your code. Anthropic's parallel tool use page states it outright: the response can contain several tool use blocks in one assistant turn, and how you run those calls is your decision, because the API does not prescribe an execution order. The model choosing to batch its calls only means they arrived together, not that anything ran them together.
Which agent frameworks run a turn's tool calls concurrently by default?
Of ten shipped tool loops we read on 4 December 2026, nine overlap them. The Vercel AI SDK, LangGraph, the OpenAI Agents SDK and the Anthropic TypeScript SDK all dispatch the whole batch at once. The Anthropic Python SDK's tool runner is the exception: it awaits each call inside a for loop, one after another.
Why is my AI agent slow even though the tool calls run in parallel?
Because the next model request needs a result for every tool use block in one user message, so the turn cannot advance until the last tool returns. Perfect concurrency turns the sum of your tool latencies into the maximum of them. Six calls of 900 ms each took 5,409 ms sequentially and 902 ms concurrently on our local test server, and 902 ms is the floor one slow call sets.
Should I put a timeout on each AI agent tool call?
Yes, and return an error result rather than raising. None of the ten loops we read ships a default tool timeout, so a tool that hangs holds the turn open for as long as its own client allows. The Vercel AI SDK takes a toolMs timeout and the OpenAI Agents SDK takes timeout_seconds with error_as_result behaviour, which returns a model-visible timeout string and keeps the turn valid.
Is it safe to run an agent's tool calls at the same time?
Not for every tool. Anthropic documents that independent read-only operations are usually safe to run in parallel while tools with side effects, shared state or ordering requirements might be better run sequentially, and that computer use and browser use batches must run in the model's order and stop at the first failure. Concurrency is a per-tool decision, not a global switch.

