Describe a job and get a call-ready plan
agent402.tools/api/decide
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 and input params that validate against each tool's schema. Priced by depth: quick $0.003 (one best tool), plan $0.01 (the default: steps, fallbacks, params from your task, cost and latency estimates), full $0.03 (the pl
POST
https://agent402.tools/api/decideUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/decide", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"depth":"plan","task":"Resolve the ENS name vitalik.eth and read its wallet balance on Base"}),
});
console.log(await res.json());Example input
{
"depth": "plan",
"task": "Resolve the ENS name vitalik.eth and read its wallet balance on Base"
}