Skip to main content
Glama

Quote an x402 paid API call via Rooms

quote_paid_api
Read-onlyIdempotent

Use 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

NameRequiredDescriptionDefault
bodyNoJSON body for the seller (POST)
pathNoOne of the listing's paid paths (default: its main one)
slugYesListing slug, e.g. "exa"
queryNoQuery parameters for the seller
methodNoHTTP method for the seller (default: the listed one)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources