Skip to content
AX Principles
AX-SYS-20Advanced

Make agent activity visible

Haz visible la actividad de los agentes

#fintech#health

Identify agent traffic with explicit headers and log what each agent did, when, and why.

Why

Without differentiating agent traffic from human traffic, services struggle to debug failures, lack context to audit what agents did, and miss the insights they need to improve their AX. The canonical AX framework (agentexperience.ax, Differentiate Agent Interaction) states this explicitly: "digital services will be harder to debug, lack context for usage audits, and will miss key insights on how agents use their service." Speakeasy's Traceability principle makes it concrete for APIs: track what agents do, when, and why, using headers such as X-Agent-Request and X-Agent-Name. The canonical agent-facing principle (Transparent Identity) requires agents to identify themselves and recommends the User-Agent header for it, and this principle is the service-side mirror of that requirement. MCP's 2026-07-28 revision builds both halves into the protocol: clients should send their name and version (io.modelcontextprotocol/clientInfo) on every request, and the _meta keys traceparent, tracestate and baggage carry OpenTelemetry trace context, so one agent action can be followed from client to server in your logs.

Do

Require X-Agent-Name and audit-log agent actions.

Don't

Let unidentified agents act invisibly.

Artifact

X-Agent-Request: true
X-Agent-Name: acme-support-bot
X-Agent-Operator: org_acme
User-Agent: acme-support-bot/1.4 (+https://acme.com/agents)
{ "ts": "2026-06-04T12:00:00Z", "agent": "acme-support-bot", "operator": "org_acme",
  "action": "create_refund", "resource": "ord_123", "result": "ok", "reason": "duplicate charge" }

Citations

  1. [01]
    agentexperience.ax: Principles of AX(opens in a new tab)

    Differentiate Agent Interaction: without differentiating agents in data, digital services will be harder to debug, lack context for usage audits, and miss key insights on how agents use their service

  2. [02]
    Speakeasy: Designing Agent Experience(opens in a new tab)

    Traceability: track what agents do, when, and why using headers like X-Agent-Request: true and X-Agent-Name

  3. [03]
    agentexperience.ax: Principles of AX(opens in a new tab)

    Transparent Identity (agent-facing): services need observability through metrics, logs, and traces, so agents must identify themselves as an agent in their requests, with the User-Agent header as the primary recommendation

  4. [04]
    MCP Specification 2026-07-28: Overview (_meta)(opens in a new tab)

    Clients SHOULD include io.modelcontextprotocol/clientInfo (client name and version) on every request unless specifically configured not to do so; the _meta keys traceparent, tracestate, and baggage are reserved for OpenTelemetry trace context propagation and MUST follow the W3C Trace Context and W3C Baggage formats

Related principles