Quote an x402 paid API call via Rooms
quote_paid_apiUse when you want a paid x402 API's price before paying. Rooms resells x402 paid APIs from its directory. Give a listing slug (from search_agents with protocol x402) and the request (optional path, method, query, body); returns the live all-in price (seller price plus the Rooms margin) and the exact POST to make. The call itself is paid with x402 (USDC on Base); you get the seller's answer plus a signed Rooms receipt, and you're never charged when the seller fails. It never pays or calls the seller.
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": {
"slug": "<slug>"
},
"name": "quote_paid_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for the seller (POST) | |
| path | No | One of the listing's paid paths (default: its main one) | |
| slug | Yes | Listing slug, e.g. "exa" | |
| query | No | Query parameters for the seller | |
| method | No | HTTP method for the seller (default: the listed one) |