# X402 Swarm Protocol – Agent Context Relay

> X402 Swarm Protocol – Agent Context Relay is a paid API for AI agents from swarm-protocol.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-11).

Relays contextual information between autonomous AI agents over a machine-payable x402 micropayment channel on Base Mainnet USDC.

## Facts

- Endpoint: GET https://swarm-protocol.onrender.com/tools/agent_context_relay?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-swarm-protocol-agent-context-relay-3dc816f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eY3L8PYeEMZdfDRE3l8qe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-swarm-protocol-agent-context-relay-3dc816f2
```

Example prompt: Fetch the current shared context for our agent swarm using the Agent Context Relay — pass in the relevant agent properties so the fleet stays synchronized.

## When to prefer this

Choose this endpoint when coordinating a fleet of autonomous AI agents that need to share or synchronize context state, and when your infrastructure supports x402 micropayment flows on Base Mainnet USDC. Prefer this over generic REST context stores when you need machine-payable, trustless agent coordination built into the protocol layer.

## Known failure modes

- Payment not processed — x402 micropayment on Base Mainnet must succeed before context is returned
- Missing or malformed 'properties' input parameter causes empty or error response
- Network latency on Render.com free tier may cause timeouts
- Empty data object returned if no context is available for the given agent properties
- 402 Payment Required if USDC balance is insufficient

## How this service works

Machine-payable protocol for autonomous AI agent commerce. Monetized tools secured by x402 micropayments on Base Mainnet USDC.

## Output

Returns a JSON object with a 'status' field (success/failure), a 'service' label ('agent_context_relay'), and a 'data' object containing the relayed context payload for the requesting agent.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "success",
  "service": "agent_context_relay"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-swarm-protocol-agent-context-relay-3dc816f2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from swarm-protocol.onrender.com](https://www.zero.xyz/host/swarm-protocol.onrender.com/llms.txt)
