x402_forecast
Get a batch cost forecast and policy preflight for up to 50 planned paid calls, so you can validate the plan before executing.
Instructions
Batch cost forecast + policy preflight for a PLAN of paid calls (FLO-545). Given up to 50 planned x402 calls (each with an optional repeat count), returns the aggregated USDC cost projection and a policyPreflight block listing which of the agent's policies would breach if the plan ran now. Read-only — nothing is paid or mutated. Use to validate a multi-step plan in one round-trip instead of estimating call-by-call. Requires an agent key (floe_...).
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": {
"items": "<items>"
},
"name": "x402_forecast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The planned paid calls. |