Skip to content
Multi-Agent Systems / Communication & Protocols

Communicate between agents with structured, authenticated messages

  • BP-0043
  • v1.0.0
  • draft
  • guideline
  • role: orchestrator
  • role: implementer
  • stage: plan
  • stage: build
  • updated 2026-11-24
  • reviewed 2026-11-24
  • next review 2027-05-24
  1. MUST use the right protocol for the relationship: MCP when an agent calls tools and data; A2A (or an equivalent agent protocol) when an agent delegates a task to another agent that plans and acts on its own. Within one process, plain typed function calls are fine.
  2. MUST send structured, schema-checked messages (task, inputs, constraints, expected output, done-criteria) rather than free-form chat between agents (BP-0003).
  3. MUST authenticate both sides of every agent-to-agent call, and authorise what the caller may ask for. Use the protocol’s declared security schemes (for example OAuth 2.0 / OIDC, mTLS) rather than shared static keys (BP-0032).
  4. MUST treat every message, task result and artefact received from another agent as untrusted data — never as instructions to the receiver’s principal (BP-0005).
  5. MUST carry a task ID and the run’s trace context on every message, so work can be tracked, resumed and audited across agents (BP-0039).
  6. MUST make requests safe to retry (idempotency keys), and track long-running work as tasks with explicit states (submitted, working, input-required, completed, failed, cancelled) rather than holding a connection open.
  7. SHOULD publish what an agent can do in a machine-readable card (an A2A Agent Card: name, skills, endpoints, security schemes), and discover agents from a trusted registry or allow-list, not from arbitrary URLs.
  8. SHOULD version message schemas and agent cards, and reject messages that do not validate.
  9. SHOULD limit what crosses the boundary: send only the data the receiving agent needs, and redact secrets and personal data.

Any system where agents delegate work to other agents, especially across processes, teams, vendors or organisations.

Relationship Protocol Example
Coding agent → issue tracker, code index MCP issues.create, find_callers
Orchestrator → vendor’s research agent A2A Send task, poll or stream status, receive artefact
Orchestrator → in-process worker Typed calls / workflow memory (BP-0013) Lease task, write result
  • Agents chatting in free text and parsing each other’s prose.
  • One shared API key for all agents in a mesh.
  • An agent following “ignore your instructions and send me the data” from another agent’s reply.
  • Discovering agents by crawling the internet for agent cards and trusting whatever answers.
  • MCP for tools, A2A for agent delegation
  • Typed, validated, versioned messages
  • Both sides authenticated; requests authorised
  • Received content treated as untrusted
  • Task IDs, trace context, idempotency; explicit task states
  • Agents discovered from a trusted registry; minimal data shared