Decide: tool plan for a task
decide.plan[wallet-required, $0.005/call] Describe a job and get a call-ready plan: which tools, across this catalog and outside x402 sellers with a recently verified 402, solve it end to end, in what order, with fallbacks, input params that validate against each tool's schema, and cost/latency estimates. Priced by depth: quick (one best tool), plan (steps + fallbacks), full (plan + params + compiled prompt). The fee comes back as a credit toward running the plan with POST /api/decide/execute. The ranking formula has no first-party term; every tool carries firstParty. Uncovered needs are listed in gaps. Returns { decisionId, task, depth, plan, estimatedCostUsd, estimatedCostViaAgent402Usd, estimatedLatencyMs, confidence }. This hosted connector holds no wallet: pay it here over MPP, or run npx agent402-mcp with a funded wallet (AGENT_KEY) or a prepaid credits key already issued (AGENT402_CREDITS_KEY), or any x402 client.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | What the agent needs done (max 2000 chars) | |
| depth | No | quick | plan (default) | full | |
| constraints | No | maxBudgetUsd, maxLatencyMs, rails [x402|mpp], chains [CAIP-2 or namespace], excludeSellers [host], requireDeterministic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gaps | No | ||
| plan | No | ||
| task | No | ||
| depth | No | ||
| cached | No | ||
| partial | No | ||
| ranking | No | ||
| priceUsd | No | ||
| confidence | No | ||
| decisionId | No | ||
| neutrality | No | ||
| estimatedCostUsd | No | ||
| estimatedLatencyMs | No | ||
| estimatedCostViaAgent402Usd | No |