Agents, Tool Use & MCP·Question 17 of 90Intermediate

Consolidated vs granular tools - how do you decide?

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

Consolidate when the call sequence is predictable; stay granular where the model genuinely needs to branch. Every tool call costs a full loop iteration - model latency, input-token replay of the whole context, and one more opportunity to err - so a three-call chain the model must sequence correctly is strictly worse than one tool that does the chain internally, if the chain is deterministic.

Full worked answer with diagram

Consolidate when the call sequence is predictable; stay granular where the model genuinely needs to branch. Every tool call costs a full loop iteration - model latency, input-token replay of the whole context, and one more opportunity to err - so a three-call chain the model must sequence correctly is strictly worse than one tool that does the chain internally, if the chain is deterministic.

Example: booking a meeting via granular tools is list_users → get_availability → create_event, three iterations and two chances to mangle intermediate IDs. A consolidated schedule_meeting(attendees, duration, time_window) is one call, and the deterministic glue lives in tested code where it belongs. Anthropic's tool-design guidance is explicit on this: build tools for workflows, not API endpoints.

Granularity earns its keep when intermediate results change what happens next - search-then-decide-then-act, exploration of a codebase - because the branching is the intelligence you hired the model for. Collapsing genuinely conditional flows into a mega-tool with 15 optional parameters just moves the confusion into the schema.

Costs of over-consolidation: fat tools are harder to describe unambiguously, harder to reuse across tasks, and hide partial failures (step 2 of 3 failed - what state is the world in?). Costs of over-granularity: token burn, latency, ID-passing errors, and context pollution from intermediate results the model no longer needs.

A 2026-relevant middle path worth naming: code execution as the consolidation layer - expose a sandboxed interpreter plus an API/library, and let the agent write a script that composes primitives locally, returning only the final result to context. This gets granular expressiveness without paying a loop iteration per primitive, and is increasingly how heavy tool composition is done (including over MCP).

Worth sketching. Two paths to the same outcome, with the iteration count on the edges, is the cheapest way to show where the error surface lives.

flowchart LR
    A["Book a meeting"] --> B["list_users"]
    B --> C["get_availability"]
    C --> D["create_event"]
    A --> E["schedule_meeting<br/>glue lives in tested code"]
    D -->|"3 iterations, 2 ID handoffs"| F["Booked"]
    E -->|"1 iteration"| F

What a good answer covers

  • Consolidate when the call sequence is predictable; stay granular where the model genuinely needs to branch
  • Every tool call costs a full loop iteration - model latency, input-token replay of the whole context,…
  • Example: booking a meeting via granular tools is list_users → get_availability → create_event, three…
  • A consolidated schedule_meeting(attendees, duration, time_window) is one call, and the deterministic…
  • Anthropic's tool-design guidance is explicit on this: build tools for workflows, not API endpoints

Interviewer follow-ups to expect

  1. How does per-call latency change the calculus?

  2. Design the tool set for an agent that manages a Postgres database - where do you consolidate?

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