Price a micro-task
price_taskPrice one micro-task in USDC and return exact x402 payment instructions.
Free to call, no authentication, no side effects. The quote does not lock the price.
Payment (x402): request the task endpoint for HTTP 402 with the price and receiver 0x37239DF5f8ffE8541657624726e0ffc517B38C57; send the exact USDC on Base (maxFeePerGas=0); retry with header X-Payment: <tx_hash>.
Parameters: the name must match the one passed to execute_task; unknown
names return an error and nothing is charged.
When to use: after list_tasks, before paying. Use execute_task to run it.
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": {
"task": "<task>"
},
"name": "price_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Name of the micro-task to price, e.g. 'summarize'. Must be a task NAME from the list_tasks tool - not a task ID, specification, or free text. TEXT: summarize, extract, sentiment, translate, rewrite. CODE: code_review, code_explain. DATA: json_query, csv_to_json. MEDIA: describe_image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| asset | No | ||
| error | No | ||
| network | No | ||
| receiver | No | ||
| available | No | ||
| how_to_pay | No | numbered x402 payment steps | |
| price_usdc | No | exact USDC price | |
| implemented | No | ||
| api_endpoint | No |