
Tool-using AI agents rarely fail at the model level; they fail at the seams between agents, tools, and the harnesses that coordinate them. Those seams are being standardized: the Model Context Protocol governs how an agent discovers and invokes tools, while the Agent-to-Agent protocol governs how independent agents delegate tasks to one another. Around these two sit vendor-native tool-calling formats, OpenAPI-based tool definitions, enterprise gateways, and emerging agent-identity standards. LangChain supplies the foundational Python framework many teams use to assemble such systems, with LangGraph for stateful orchestration and Deep Agents as an opinionated harness. This article maps the protocol stack for engineers who must decide which standards to build on for tool-using or multi-agent automation, and flags which claims are version-sensitive as the specifications evolve through 2026.

AI agents combine a large language model (the “engine”) with a software harness that supplies four core capabilities: tool access, memory, execution control, and feedback loops. The same model weights can behave dramatically differently when wrapped by distinct harnesses—the classic “model is the engine, harness is the car” framing. This split creates two common failure directions:
A harness that merely forwards raw LLM output to a REST endpoint will break as soon as the endpoint changes its JSON schema or authentication method. Conversely, a more sophisticated harness that caches tool results, validates schemas, and retries on timeout can keep the same model stable across deployments. The variance shows that the harness, not the model, is the primary source of operational risk.
Model Context Protocol (MCP) defines a uniform way for agents to declare tool schemas, pass context, and receive structured results. By standardising tool‑call mechanics, MCP removes the need for per‑model glue code and makes tool servers portable across frameworks【1†https://mastra.ai/articles/best-ai-agents】. The community frequently likens MCP to USB‑C because it provides a single, vendor‑agnostic connector for all tool integrations【5†https://mobilions.com/blog/latest-ai-agent-frameworks-in-2026】.
Agent‑to‑Agent (A2A) Protocol supplies the complementary horizontal layer. Hosted by the Linux Foundation, A2A specifies discovery, cryptographic “Agent Cards,” and secure task delegation, enabling agents built on different stacks to collaborate reliably【1†https://medium.com/@adnanmasood/agent-harness-engineering-the-rise-of-the-ai-control-plane-938ead884b1d】. By 2026 it is embedded in major cloud runtimes (Azure AI Foundry, AWS Bedrock AgentCore) and supports multi‑language SDKs【4†https://www.ideabosque.com/library/multi-agent-systems-coordination-patterns-failure-modes】.
Adopting MCP and A2A creates a single source of truth for all tool and agent contracts. An integration written once can be reused across any MCP‑compatible tool server and any A2A‑enabled agent runtime, shielding organizations from vendor lock‑in. Procurement teams can therefore evaluate tools and agents based on functional fit and cost, rather than on bespoke integration effort.
By anchoring both vertical and horizontal interactions in open, transport‑level standards, teams gain reusable integrations, clearer security boundaries, and the ability to switch vendors without re‑engineering the entire automation stack.

The Model Context Protocol (MCP) is an open, JSON‑RPC 2.0‑based specification that lets an LLM discover and invoke external capabilities (tools, resources, prompts) through a uniform interface. It was created by Anthropic and, in late 2025, was donated to the Linux Foundation, becoming a vendor‑neutral standard that is now maintained by the Linux Foundation’s open‑governance body 【1†https://www.sketricgen.ai/blog/best-mcp-servers-guide】【8†https://zylo.com/blog/what-is-model-context-protocol】. Governance of the protocol continues to evolve, and future revisions may adjust the stewardship model.
The specification (revision 2025‑06‑18) defines two mandatory transports, both carrying UTF‑8 encoded JSON‑RPC 2.0 messages:
| Transport | Typical use | Authentication |
|---|---|---|
| stdio | The client spawns the MCP server as a local subprocess and streams messages over standard input/output. This mode offers the lowest latency for single‑client, on‑device scenarios. | Should not use network‑level auth; the server reads credentials from the process environment (as specified in the 2025‑11‑25 update) 【6†https://vdf.ai/blog/best-mcp-servers-enterprise】 |
| Streamable HTTP | Remote or multi‑client deployments. Requests are normal HTTP POST (or GET for simple queries) and may be followed by Server‑Sent Events (SSE) for streaming responses. | OAuth 2.1 is the recommended scheme; the spec mandates that HTTP transports include an Authorization header 【2†https://arxiv.org/html/2511.20920v1】【6†https://vdf.ai/blog/best-mcp-servers-enterprise】 |
Both transports preserve the same JSON‑RPC method signatures, allowing tooling to switch between local and cloud deployments without code changes.
MCP’s data model is built around three server primitives that a client can discover via the server/discover request:
tools/call).The discovery response enumerates supported protocol versions, capability flags, and the list of primitives 【4†https://modelcontextprotocol.io/docs/2026-07-28/learn/architecture】.
Authorization header as required 【2†https://arxiv.org/html/2511.20920v1】.Overall, MCP provides a lightweight, language‑agnostic “USB‑C” for AI agents, enabling consistent tool use while allowing implementations to evolve through open‑source governance.

Google introduced the Agent‑to‑Agent (A2A) protocol in April 2025, initially with more than 50 launch partners and later transferred to Linux Foundation governance 【https://atlan.com/know/single-agent-vs-multi-agent-systems/】. Within its first year the protocol attracted 150 + organizations, accumulated roughly 22 000 GitHub stars, and released SDKs for Python, JavaScript, Java, Go, and .NET 【https://www.ideabosque.com/library/multi-agent-systems-coordination-patterns-failure-modes/】.
A2A is already baked into the major cloud‑provider stacks: Azure AI Foundry, Microsoft Copilot Studio, AWS Bedrock AgentCore Runtime, and Google’s Vertex AI Agent Engine 【https://www.ideabosque.com/library/multi-agent-systems-coordination-patterns-failure-modes/】.
Agents publish Agent Cards, signed structures that describe the agent’s capabilities, routing preferences, and provenance metadata. These cards are cryptographically secured, allowing a client agent to discover a remote peer, negotiate a delegation, and exchange structured results or artifacts without sharing internal code or a common SDK 【https://medium.com/@adnanmasood/agent-harness-engineering-the-rise-of-the-ai-control-plane-938ead884b1d】【https://cloud.google.com/blog/topics/partners/building-scalable-ai-agents-design-patterns-with-agent-engine-on-google-cloud】.
The protocol’s responsibilities are deliberately narrow:
| Responsibility | Covered by A2A | Not covered |
|---|---|---|
| Agent discovery & capability advertisement | ✅ (Agent Cards) | |
| Task assignment, status tracking, and result exchange | ✅ (structured messages, provenance) | |
| Secure message transport | ✅ (signed cards, authentication hooks) | |
| Business‑level semantics (e.g., which data table is canonical) | ❌ | |
| Policy conflict resolution across organizations | ❌ |
The AP2 payments extension—an optional module for monetary transactions—has been adopted by 60 + organizations as of mid‑2026 【https://www.ideabosque.com/library/multi-agent-systems-coordination-patterns-failure-modes/】.
Where the Model Context Protocol (MCP) equips a single agent with “hands” to call tools, A2A gives agents “colleagues” by handling horizontal delegation, discovery, and artifact provenance 【https://mobilions.com/blog/latest-ai-agent-frameworks-in-2026/】. In practice, teams typically start with MCP for tool integration and adopt A2A only when multiple autonomous agents must cooperate across platforms or organizational boundaries.

OpenAI’s native function calling embeds tool definitions as JSON‑Schema objects directly in the model’s context. The model receives a user message plus a static list of tool schemas, decides whether to output plain text or a tool_call object, and the application invokes the corresponding function in‑process 【https://composio.dev/content/mcp-vs-function-calling-when-to-use-each】. This keeps latency low because no extra network hop is required, but the approach has three trade‑offs:
MCP addresses these limits. A client calls a standard tools/list JSON‑RPC method, allowing the server to supply tool schemas at runtime. Credentials are stored and rotated on the MCP server, so the client only needs a single, server‑authenticated endpoint 【https://composio.dev/content/mcp-vs-function-calling-when-to-use-each】. This decouples the application from any single provider and lets multiple MCP‑compatible clients reuse the same tool catalog.
Hybrid deployments are common: the model emits a tool_call, the application forwards the call to an MCP client, which transports the request to an MCP server for execution, then returns the result to the model. The hybrid pattern preserves the low‑latency decision point while gaining runtime discovery, centralized credential management, and reuse across agents.
Anthropic’s “tool use” for Claude mirrors OpenAI’s pattern: developers publish a JSON‑Schema description of each tool, and Claude can invoke the tool via a structured tool_call 【https://github.com/imaurer/awesome-llm-json】. Because the schema format is identical to OpenAI’s, agents built on either provider can share the same definition language.
Most agent‑exposed tools still rely on OpenAPI specifications as the source of truth for REST endpoints. OpenAPI remains the de‑facto industry standard for describing HTTP APIs, and many MCP servers automatically translate OpenAPI documents into callable tool definitions 【https://github.com/caramaschiHG/awesome-ai-agents-2026】. This enables agents to discover and call any service that publishes a Swagger/OpenAPI file without hand‑coded adapters.
An MCP gateway sits between agents and MCP servers, acting as a control‑plane for authentication, authorization, routing, and observability 【https://obot.ai/blog/the-13-best-mcp-gateways-for-enterprise-teams】. Typical gateway capabilities include:
In 2026 MCP Apps were introduced as a first‑class extension. Servers can attach a _meta.ui.resourceUri to a tool, causing the client to render a sandboxed HTML/JS UI inside the chat pane 【https://aaif.io/blog/mcp-2026-07-28-whats-changing-and-how-to-migrate】. This transforms a simple “return‑text” tool into an interactive dashboard, form, or visualization without requiring the client to implement custom UI logic. If the client does not support MCP Apps, the server falls back to returning plain JSON.
The Hedera Consensus Service (HCS) adds a cross‑protocol identity and routing layer for agents. HCS‑14 defines Universal Agent IDs (UAIDs) that uniquely identify agents across networks, while HCS‑10 supplies trust‑less peer‑to‑peer messaging and bridging between MCP, A2A, and other protocols 【https://github.com/caramaschiHG/awesome-ai-agents-2026】. As of the 2026 snapshot, Hedera reports 187 K+ verified agents participating in the network—a figure that will grow as more enterprises adopt HCS‑based identity. These standards are still evolving, so exact version numbers and feature sets should be checked against the latest Hedera releases.

LangChain is the de‑facto Python framework for building reliable AI agents. It supplies modular building blocks—Chains, Agents, Memory, Retrieval, Tool Use, and Multi‑Agent Orchestration—that can be assembled into tool‑using agents, RAG pipelines, conversational bots, and structured data‑extraction workflows. The library ships with more than 1,000 pre‑built integrations covering LLM providers (OpenAI, Anthropic, Google Gemini, etc.), vector stores (Pinecone, Weaviate, Qdrant, etc.), and dozens of third‑party APIs such as Zapier and Slack LangChain resource. This breadth makes it the connective tissue of today’s agent ecosystem.
LangChain does not define its own tool‑calling or agent‑to‑agent protocol. Instead, an agent built with LangChain consumes standards such as the Model Context Protocol (MCP) and the Agent‑to‑Agent (A2A) protocol. The framework’s Tool abstraction can be wired to an MCP server or to a native function‑calling payload, allowing developers to adopt emerging standards without rewriting core logic. In practice, a LangChain‑based agent can:
The LangChain ecosystem includes several high‑profile projects:
While LangChain accelerates prototyping, its abstraction layers introduce scale‑related overhead. The framework has a large dependency footprint and a rapid release cadence, so version upgrades can bring breaking changes. Production teams are advised to:
By treating LangChain as a framework that consumes standards, engineers can leverage its rich library of integrations while staying aligned with the evolving MCP and A2A specifications that are shaping tool‑using and multi‑agent automation in 2026.

LangGraph is a low‑level, graph‑first orchestration runtime that lets developers model an agent’s workflow as a set of nodes (LLM calls, tool invocations, custom Python functions) and edges that define the control flow. Its core capabilities include:
Because LangGraph is independent of LangChain, it can be used as a stand‑alone engine or layered beneath higher‑level LangChain components. Production teams at Klarna, Replit, and Elastic have publicly referenced LangGraph for scaling their AI assistants and search‑relevance pipelines【1†content】, and Klarna’s AI assistant handles millions of conversations with step‑by‑step tracing via LangSmith【0†content】.
Deep Agents builds on LangGraph with an opinionated “batteries‑included” harness. Its additional primitives are:
| Feature | Description |
|---|---|
| Planning tool | Breaks a complex objective into tracked tasks and updates progress automatically【1†content】. |
| Sub‑agent spawning | Creates isolated context windows for parallel subtasks, preventing state leakage【1†content】. |
| Virtual filesystem | Persists prompts, skills, and long‑term memory across sessions; also serves as off‑load storage for large tool outputs【2†content】. |
| Context‑management middleware | Compresses conversation history, writes large results to disk, and restores them when needed【2†content】. |
| Human‑in‑the‑loop middleware | Optional approval steps that pause execution for user review【1†content】. |
| Model‑agnostic | Works with any tool‑calling LLM provider, not just OpenAI or Anthropic【7†content】. |
| Language support | Available in both Python and JavaScript, with sandboxed code‑execution back‑ends【1†content】. |
The recommended adoption path inside the LangChain ecosystem is:
Observability with LangSmith
Both LangGraph and Deep Agents emit rich execution traces that LangSmith captures out‑of‑the‑box. LangSmith visualizes the graph traversal, records state transitions, and aggregates metrics for debugging【0†content】. The platform also closes the development loop: traces can be added to versioned datasets, which feed into offline or online evaluations; successful evals then gate the promotion of new agent versions【1†content】. This “trace → dataset → eval → improvement” cycle is the recommended production workflow for any multi‑agent system.
Caveats
Efficiency numbers reported by vendors—such as “80 % reduction in support‑resolution time” for LangGraph deployments—are vendor‑reported and have not been independently verified. Engineers should treat such claims as indicative rather than definitive performance guarantees.

LLM context windows remain limited (typically a few kilo‑tokens), so any state an agent must retain across multiple reasoning steps or client sessions has to live outside the model’s immediate context. Harnesses therefore treat memory as a first‑class concern: they serialize relevant facts to files, databases, or structured instruction documents (e.g., AGENTS.md or CLAUDE.md) and inject the latest snapshot back into the prompt at each turn. This externalization enables durable continual learning—the agent can read, edit, and re‑inject its own memory without losing information to window truncation【1】.
The reference implementation for stateful agents is Letta (formerly MemGPT), which defines a three‑tier stack:
| Tier | Role | Typical backing store |
|---|---|---|
| Core | Hot‑path, ~2 k characters, always in‑context | In‑memory buffer |
| Recall | Full conversation history searchable by date or keyword | Vector‑augmented document store |
| Archival | Long‑term knowledge base, slower updates | Relational or document DB |
This hierarchy maps directly onto the harness’s lifecycle: the core layer fuels immediate reasoning, the recall layer supplies on‑demand retrieval, and the archival layer preserves permanent domain knowledge【1】.
A complementary pattern appears in COALA‑powered designs, which layer procedural, semantic, and episodic memories over a PostgreSQL store and expose the result to agents as a virtual filesystem. The filesystem abstraction is the same one standardized by Deep Agents, allowing agents to open, read, and write files as if they were local resources. Crucially, every write operation passes through a human‑in‑the‑loop gate that validates the payload, preventing prompt‑injection attacks via malformed writes. Validation errors are fed back to the LLM, prompting it to self‑correct before retrying【1】.
Memory services sit between the Model Context Protocol (MCP) and the Agent‑to‑Agent (A2A) protocol:
Because memory reads and writes are themselves tool calls, they must conform to the same OpenAPI‑style definitions that govern other utilities. This unifies the handling of “static” tools (e.g., calculators) and “stateful” tools (memory stores) under a single protocol surface.
The human‑in‑the‑loop gating described above exemplifies a broader security mindset: every external write is validated, and the LLM receives structured feedback (error_type, suggested_fix). This pattern mitigates the risk of prompt injection while keeping the agent autonomous enough to retry automatically once the issue is resolved.
Persistent memory has evolved from an ad‑hoc file dump to a formally specified harness component that:
Engineers selecting a stack should therefore prioritize memory‑aware harnesses that implement these standards, as they directly influence reliability, security, and scalability of multi‑agent workflows.

Practical defaults
Adopt the Model Context Protocol (MCP) from day 1.
MCP is described as the “USB‑C for AI” and has been donated to the Linux Foundation, making it the de‑facto standard for tool discovery and invocation 【1†source】. Using MCP early avoids retro‑fitting custom context‑passing logic, prevents tool‑catalog bloat in the LLM’s context window, and isolates credential handling in a dedicated transport layer.
Use MCP alone for single‑agent deployments.
When only one autonomous agent interacts with tools, MCP provides all necessary discovery, execution, and credential isolation. Adding other protocols creates unnecessary complexity.
Introduce Agent‑to‑Agent (A2A) only for true multi‑team hand‑offs.
A2A is Google’s inter‑agent communication protocol that enables horizontal collaboration across organizational boundaries 【2†source】. If agents are built by the same team and share a common runtime, MCP alone suffices; A2A becomes valuable when distinct teams, frameworks, or vendors must delegate tasks reliably.
Tool definition strategy
Prefer OpenAPI specifications whenever the target service publishes a spec. OpenAPI’s widespread adoption makes it the natural contract layer for tool definitions 【2†source】.
Hybrid pattern for latency‑sensitive loops.
Enterprise‑scale scaffolding
Deploy an MCP gateway when the number of MCP and A2A endpoints grows. Gateways centralise auth, routing, and observability, preventing uncontrolled tool sprawl 【2†source】.
Treat memory as a harness concern. Explicit write gates (e.g., “only after successful tool response”) give you deterministic control over what is persisted to the model’s context window.
Python ecosystem path
Version‑sensitive caveats