plan_flow_with_credits
Plan a flow of paid x402 services for a goal, paid with $0.02 of platform credits. Credential: a full-access Studio token (sgl_pat_, mcp:) or a Singularity Cloud API key with compute:write and spend. Nothing found = not charged. Use the same idempotencyKey to retry without a second charge.
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>"
},
"name": "plan_flow_with_credits"
}
}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 | |
| accessToken | No | Full-access Studio token (sgl_pat_*) | |
| computeApiKey | No | Singularity Cloud API key with compute:write and spend | |
| idempotencyKey | No | Your id for this request; a retry with the same id and goal is never charged twice |