AI Agent Communication Protocols: Designing a Dedicated Protocol Stack
HTTP/JSON-based interfaces can impose avoidable costs on AI agents through repeated schemas, implicit semantics, fragmented identity handling, and ad hoc session management. This article outlines an early five-layer protocol design for agent-to-agent and agent-to-service communication, along with unresolved questions about adoption, standardization, and security.
1. Why HTTP/JSON Can Become a Bottleneck for Agent Systems
Connect a large language model to a set of REST APIs, and a pattern soon emerges: a substantial share of its tokens goes toward repeatedly processing the same schema. A typical paginated query repeats the same field names in every record on every page—id, name, price, description, and so on. The model has already encountered that structure in the first response, but conventional HTTP/JSON exchanges have no built-in notion of “you already know this schema.” The bytes keep arriving, the tokenizer keeps processing them, and the costs keep accumulating.
Across several internal workloads, we measured repeated schema overhead at approximately 30%–60% of total response tokens for schema-heavy interfaces such as product catalogs, ledgers, and feeds. The exact proportion depends heavily on the workload. We plan to publish a formal benchmark report with reproducible methods rather than present a single number without context.
That overhead alone would not justify designing a new protocol. But the list of friction points grows when we examine how agents actually use HTTP-based APIs. Together, these issues suggest structural gaps in the protocol stack.
2. Four Recurring Problems
Repeated Schema Transmission
The most visible problem is cost. JSON records are typically self-describing: field names travel with every record. Graph query languages can reduce the response to the fields a client needs, but those field names still repeat across records.
For human users, these redundant bytes are usually negligible. For LLMs billed by token and constrained by context windows, they consume both money and context capacity.
A more suitable approach would transmit the schema once, then reference it by identifier or version. Schema negotiation and incremental descriptions would become protocol-level capabilities.
No First-Class Agent Identity
HTTP authentication conventions largely center on user or service credentials. When an LLM agent calls an API on a user’s behalf, the protocol does not provide a standardized, agent-specific way to answer three questions:
- Who issued this agent’s credentials?
- What is its authorized scope?
- Have its credentials been revoked?
The usual approach is to put a token in a request header and rely on a gateway to interpret it. This works, but teams repeatedly build their own conventions, often with incompatible implementations.
Agents need first-class identity primitives: issuance chains, capability declarations, revocability, and audit trails. These should be explicit protocol fields rather than private agreements between individual teams.
Semantics Are Left to the Agent
A REST interface may return raw JSON and leave the model to infer what each field means. In practice, teams often compensate with extensive system prompts explaining that one field is a timestamp or that a particular status code means “shipped.”
This semantic alignment happens at inference time, repeatedly across calls, while remaining invisible to the protocol.
Ideally, the server would provide semantic descriptions—field types, value constraints, and business meanings—once at the protocol level. The agent could load them once instead of reconstructing their meaning in each conversation.
No Native Foundation for Sessions and Multi-Turn Tasks
HTTP is stateless, while agent-service interactions are naturally multi-turn, contextual, and interruptible. A task may span several calls. Intermediate state may need to be persisted and restored, and partial results may need to be streamed.
Applications can assemble these capabilities by storing state in a database and routing updates through a message queue. But when every agent framework builds its own arrangement, interoperability becomes costly.
3. A Five-Layer Protocol Stack for Agents
To address these problems, we propose a five-layer protocol family for both agent-to-agent and agent-to-web-service communication. The project is currently an early open-source release under a permissive license, with reference SDKs in multiple languages.
L1: Transport Layer
The transport layer reuses established, reliable mechanisms such as HTTP/2, WebSocket, or gRPC streams.
The protocol does not reinvent transport. Reusing existing infrastructure lowers the barrier to adoption.
L2: Session Layer
The session layer introduces explicit session identifiers and task context.
Each agent task maps to a session. Within that session, the protocol supports multi-turn exchanges, resumption after interruption, and delivery of partial results. This addresses the mismatch between stateless HTTP interactions and stateful agent tasks.
L3: Schema Layer
Schemas are transmitted initially and updated as needed.
The server declares a data structure and its version. Once the client has cached that schema, subsequent data rows carry values and schema references rather than repeated field names.
An illustrative exchange looks like this:
Initial response (with schema):schema_id: "sku.v3"fields: [id, name, price, stock]Subsequent response (data only):schema_id: "sku.v3"rows: [[1001, "Product A", 199.0, 42], ...]
L4: Identity Layer
The identity layer treats agents as first-class participants.
The protocol includes fields for the issuer, capability scope, validity period, and revocation status. Servers can programmatically verify what an agent is authorized to do while preserving an auditable chain of calls.
L5: Semantic Layer
The semantic layer provides structured descriptions of field meanings and constraints.
Instead of leaving business knowledge scattered across system prompts, it makes that knowledge an explicit protocol asset. The goal is to move semantic alignment from recurring inference-time work into reusable descriptions.
4. Questions We Have Not Yet Resolved
This protocol is still at an early stage. Several important questions remain open.
- Adoption and ecosystem fit: An agent protocol can succeed only if servers are willing to expose agent-native interfaces. Protocol design alone cannot solve this chicken-and-egg problem.
- Standardization: Should the protocol evolve under a neutral standards organization or through community governance? Standardizing too early could freeze an immature design; waiting too long could lead to fragmentation.
- Security boundaries: Malicious agents may exploit gaps between declared capabilities and actual behavior. Revocation also raises questions about consistency delays in distributed environments. Both issues require more rigorous analysis.
5. Conclusion
HTTP/JSON is not a failed design. It grew around a human-driven web. When the caller becomes an LLM agent—billed by token, constrained by a context window, and dependent on programmatically verifiable trust chains—previously negligible overhead can become a systemic cost.
We welcome feedback from others who have examined agent traffic at the protocol level. Whether a dedicated agent protocol is viable will ultimately be determined by real-world community use.
