By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
An architect must connect one agent to three systems: an internal ticketing platform, a data warehouse, and a partner's assistant. Three protocols are on the table, and each team has a favourite.
The platform team wants a Model Context Protocol (MCP) server. MCP is an open standard for exposing tools and data to a model client. The application team wants plain API calls. The partner wants agent-to-agent messaging, because their side is also an agent.
All three instincts are defensible. The decision depends on who owns the capability, how much context the agent pays to discover it, and who can change it without redeploying your application.
Tool definitions are part of the prompt. Forty definitions at roughly 200 tokens each is about 8,000 tokens before the user has typed anything, paid on every call.
Progressive discovery means the agent first asks what capabilities exist, then loads only the ones it needs. You trade an extra round trip and a new failure mode for a much smaller context.
| Approach | Context per request | Latency | Main risk |
|---|---|---|---|
| Monolithic: every tool up front | Large and fixed | One call, fast if the list is short | Context bloat and confused tool choice once the list grows |
| Progressive: catalogue, then load | Small and proportional to the task | One extra hop for discovery | The discovery step fails or returns the wrong subset |
The break-even is not a number you memorise. It is a judgement about list size and task variety. A stable list of six tools does not need a catalogue. A shared server with thirty tools and five client teams does.
MCP fits when a platform team owns a capability and several clients need it. The protocol decouples the tool from your application, and the server becomes a network boundary where authentication, rate limits and logging live.
It costs an extra process and a transport, and it adds a dependency with its own release cadence. A server you do not own can change under you, so pin a version and test the contract in your own pipeline.
The strongest reason to choose MCP is governance. One server means one place to enforce least privilege, one audit trail, and one team accountable for the capability.
Direct calls fit one application with one owner and a small, stable tool set. There is no intermediary to deploy, and the failure path is in code you can read.
The cost arrives later, when a second client needs the same capability and the integration is rebuilt. A command line interface (CLI) is a thin adapter worth using when the tool already exists and its output is text a model can read.
Agent-to-agent fits when the other side is itself an agent with its own tools and policy, and you cannot see or control its internals. You send a task, a budget and a deadline, and you get a result.
The decision rule is sharp. Use agent-to-agent when the other party must reason. Use a plain call when it must execute a fixed operation. Wrapping a deterministic API in an agent adds a non-deterministic hop and buys nothing.
Your agent must read the internal ticketing platform, query the warehouse, and ask a partner's assistant for a delivery estimate.
A defensible answer uses direct API calls for the warehouse, an MCP server for the ticketing platform if a platform team owns it, and agent-to-agent for the partner. It loads a narrow tool subset per task and passes the user's identity to the ticketing server.
Key takeaways
Choose the protocol from ownership, context cost and failure accountability, not from fashion.
Tool definitions cost tokens on every request, so progressive discovery beats a monolithic list as the set grows.
MCP fits a capability a platform team owns and many clients need, and it gives you one place to enforce least privilege.
Direct API or CLI calls are cheapest when one app owns both ends and the tool set is small.
Use agent-to-agent only when the other side must reason; wrapping a fixed operation adds a hop and buys nothing.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.