A tool plan marks which calls can run concurrently and which must wait for a verified result. Independent read requests may be issued together if they use known, authorized arguments. A write that depends on a retrieved identifier must follow the read and validation step. Do not infer concurrency from a model's desire for speed. Preserve a call ID for each result so an out-of-order response is attached to the right request. If one dependency fails, cancel or skip descendants instead of substituting a plausible value.
Tool plans: separate independent reads from dependent actions
Decision in practice
A warehouse assistant needs an order's delivery address and package dimensions before it can request a shipping quote. Those two reads are independent for order OR-731, so they can run together. The quote depends on both verified outputs. Booking the carrier depends on a reviewed quote and an authorized request. A test deliberately delays the address response and returns a stale dimension record first; the planner must not quote using an earlier order's address. A separate test makes the dimension lookup fail, which should stop quoting and booking while preserving the successful address read for diagnosis.
Stage A in parallel: read_address(order=OR-731), read_dimensions(order=OR-731).
Join: require both results tagged OR-731 and current record versions.
Stage B: quote_shipping(address_id, dimensions_id).
Stage C: book_carrier(quote_id, effect_key) only after authorization.
Failure: a missing Stage A result blocks Stages B and C.Performance and operating cost
For independent reads with durations A and B, parallel wall time is near max(A, B) plus orchestration overhead instead of A+B. Total provider cost may remain the sum of both calls. Dependent stages still add latency in sequence. Fan-out must be bounded because excessive concurrency can exhaust rate limits and make failures harder to isolate. Measure result-to-call mismatches, skipped descendants, and duplicate effects rather than reporting only average completion time.
Common Mistakes
- Do not run a write alongside the read that supplies its authorization facts.
- Do not merge responses by arrival order.
- Do not continue downstream when one required read fails.
Connected lessons
- Prompt patterns
- Prompt Engineering
- Prompt decomposition: split stages at verifiable handoffs
- Tool calls: validate intent and arguments before an external effect
- Tool catalogs: describe eligibility, inputs, and effects
- Structured outputs: repair format without changing the decision
- Conversation checkpoints: resume from verified state
- Tool results: keep returned text in the data lane
- Tool effects: reconcile receipts before retrying
- Project: recover a tool workflow without duplicate effects
- Agent workflow decisions
Continue with: Parallel agents: isolate state and assign one writer.
