plan_flow_with_payment
Plan a flow of paid x402 services for a goal, paid with a signed x402 payment ($0.02, USDC on Base or Solana). Settled only after a plan is produced; nothing found = not charged. If the answer is settlement_pending, do NOT pay again.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"goal": "<goal>",
"paymentPayload": "<paymentPayload>"
},
"name": "plan_flow_with_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | What you want done, in plain words (3 to 600 characters) | |
| maxSteps | No | At most this many steps (1 to 5) | |
| networks | No | Only services payable on these networks, e.g. ["base","solana"] | |
| budgetUsd | No | Warn when one run of the flow would cost more than this | |
| paymentPayload | Yes | The signed x402 payment (v2 relayed as PAYMENT-SIGNATURE, v1 as X-Payment), as JSON or base64 |