# X402 Swarm Protocol – Agent Context Firewall

> X402 Swarm Protocol – Agent Context Firewall 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).

Returns context-scoped firewall information or policy data for an AI agent via a micropayment-gated x402 endpoint on Base Mainnet USDC.

## Facts

- Endpoint: GET https://swarm-protocol.onrender.com/tools/agent_context_firewall?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-firewall-ea35442d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UGpIfIkymwnm82wK-WUoR

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-firewall-ea35442d
```

Example prompt: Run a context firewall check on my agent's current properties to make sure it's allowed to proceed — use the Swarm Protocol agent context firewall tool.

## When to prefer this

Choose this endpoint when you need a machine-payable, micropayment-gated context firewall check for an autonomous AI agent operating on Base Mainnet with USDC. It is best suited for agent-to-agent commerce scenarios where access control must be enforced programmatically via the x402 payment protocol, and where a lightweight per-call fee model ($0.05 USDC) is acceptable.

## Known failure modes

- Payment not received or x402 micropayment rejected — endpoint returns 402 Payment Required
- Invalid or malformed 'properties' input — may return empty or error data object
- Service unavailable on Render free tier cold-start — delayed or 503 response
- No context properties provided — returns empty or default firewall result
- Network timeout on Render hosted service

## How this service works

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

## Output

A JSON response containing a 'status' field (e.g. 'success') and a 'data' object with the firewall evaluation result for the submitted agent context properties. The response confirms whether the agent's context passed the firewall check.

## 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_firewall"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-swarm-protocol-agent-context-firewall-ea35442d/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)
