Agents, Tool Use & MCP·Question 6 of 90Basic

Explain parallel tool calls and tool-choice forcing. When would you use each?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Parallel tool calls: the model emits multiple tool-use blocks in a single assistant turn when the calls are independent - e.g., fetching three URLs, or checking calendar + weather + flight status at once. Your runtime can execute them concurrently and return all results together (each matched to its call ID). Benefits: latency (one model round trip plus max(tool times) instead of a serial chain) and fewer loop iterations, which also means fewer chances to derail. Caveats: only safe for independent operations - parallel writes to shared state or calls where one's output should inform the other are a design smell; you can disable parallel calls or instruct the model to sequence when order matters.

Full worked answer with diagram

Parallel tool calls: the model emits multiple tool-use blocks in a single assistant turn when the calls are independent - e.g., fetching three URLs, or checking calendar + weather + flight status at once. Your runtime can execute them concurrently and return all results together (each matched to its call ID). Benefits: latency (one model round trip plus max(tool times) instead of a serial chain) and fewer loop iterations, which also means fewer chances to derail. Caveats: only safe for independent operations - parallel writes to shared state or calls where one's output should inform the other are a design smell; you can disable parallel calls or instruct the model to sequence when order matters.

Tool-choice forcing controls whether the model may, must, or must not call tools:

  • auto - model decides (default).
  • required / any - the model must call some tool; useful when a text-only reply is never valid, e.g., a router that must pick a branch.
  • Specific tool - the model must call the named tool. The classic use was structured extraction: define an extract_invoice tool whose schema is your output type and force it. Support is now provider- and model-dependent: Anthropic's newest models reject forcing a specific tool (and any) with a 400 and recommend auto with strict tool use, while older models still accept it. Guaranteed schema-valid extraction now comes from structured outputs or strict schemas rather than from forcing a tool.
  • none - tools visible but not callable this turn (e.g., you want a summary of what it would do).

Going further: follow-up territory

Two production caveats worth volunteering: forcing a specific tool on input that doesn't fit it invites fabricated arguments - the model must fill the schema with something; and forced tool choice can interact awkwardly with reasoning/thinking modes on some providers, so check vendor docs before combining them.

Worth sketching. It puts a number on the win: one round trip plus the slowest tool, instead of three of each.

flowchart LR
    A["One assistant turn,<br/>three tool_use blocks"] --> B["fetch calendar"]
    A --> C["fetch weather"]
    A --> D["fetch flight status"]
    B --> E["Results batched,<br/>one per call id"]
    C --> E
    D --> E
    E -->|"1 round trip + max(tool time)"| F["Next model call"]

What a good answer covers

  • Parallel tool calls: the model emits multiple tool-use blocks in a single assistant turn when the calls…
  • Your runtime can execute them concurrently and return all results together (each matched to its call ID)
  • Benefits: latency (one model round trip plus max(tool times) instead of a serial chain) and fewer loop…
  • Caveats: only safe for independent operations - parallel writes to shared state or calls where one's…
  • required / any - the model must call some tool; useful when a text-only reply is never valid, e.g., a…

Key terms: Parallel tool calls · Tool-choice forcing · Specific tool

Interviewer follow-ups to expect

  1. How would you handle one failure among five parallel calls?

  2. Why might you force required on the first iteration of an agent loop but auto afterward?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep