# Swarm DAG Planner

> Swarm DAG Planner is a paid API for AI agents from swarm-protocol.onrender.com, paid per call via x402, $0.2/call, status unknown (last checked 2026-10-11).

Plans directed acyclic graph (DAG) execution strategies for multi-agent AI swarms, enabling coordinated autonomous task decomposition and scheduling.

## Facts

- Endpoint: GET https://swarm-protocol.onrender.com/tools/swarm_dag_planner?utm_source=zero.xyz
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swarm-dag-planner-0083f831
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_71hfyQ4XkSpKjX7EFOm-b

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 swarm-dag-planner-0083f831
```

Example prompt: Plan a DAG execution strategy for my AI swarm to handle a research-and-report workflow: first gather data from three sources in parallel, then summarize each, then merge summaries into a final report.

## When to prefer this

Choose this endpoint when you need to decompose a multi-step, multi-agent workflow into a structured DAG with explicit dependencies and parallelism — especially when using autonomous AI agents that must coordinate tasks in a defined order. Prefer this over generic task schedulers when you need machine-payable, agent-native planning infrastructure on Base Mainnet.

## Known failure modes

- Missing or malformed properties input returns an error or empty plan
- Overly complex task descriptions may produce incomplete DAG structures
- Payment failure via x402 results in 402 HTTP response before any processing
- Service unavailability on render.com hosting may cause timeouts
- Ambiguous task descriptions may yield a generic or suboptimal DAG

## 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 DAG execution plan describing task nodes, their dependencies, and the recommended execution order for the agent swarm, along with a success status and service identifier.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swarm-dag-planner-0083f831/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)
