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)

Output Schema

NameRequiredDescriptionDefault
howYes
callYes
nameYes
priceYes
listingYes
networkYes
currencyYes
quoted_atYes
rooms_feeYes
seller_priceYes
resold_by_roomsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "call": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "json": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "path": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "path"
      +          ],
      +          "type": "object"
      +        },
      +        "method": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "method",
      +        "url",
      +        "json"
      +      ],
      +      "type": "object"
      +    },
      +    "currency": {
      +      "type": "string"
      +    },
      +    "how": {
      +      "type": "string"
      +    },
      +    "listing": {
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "network": {
      +      "type": "string"
      +    },
      +    "price": {
      +      "type": "string"
      +    },
      +    "quoted_at": {
      +      "type": "string"
      +    },
      +    "resold_by_rooms": {
      +      "type": "boolean"
      +    },
      +    "rooms_fee": {
      +      "type": "string"
      +    },
      +    "seller_price": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "listing",
      +    "name",
      +    "resold_by_rooms",
      +    "price",
      +    "seller_price",
      +    "rooms_fee",
      +    "currency",
      +    "network",
      +    "call",
      +    "how",
      +    "quoted_at"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses that the returned price is the seller price plus the Rooms margin, that payment settles in USDC on Base with a signed Rooms receipt, and that the buyer is never charged when the seller fails. These are exactly the behavioral facts an agent needs that the annotations do not encode.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence front-loads the trigger, followed by a workflow hint, then the return contract and the payment/refund behavior. Dense but each sentence carries distinct information; minor tightening is possible around the repeated mention of x402.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Even though an output schema exists, the description summarizes the return (all-in price plus the exact POST to make) and covers prerequisites, payment mechanics, and failure billing. Nothing an agent needs in order to invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description still adds meaning by saying where the slug comes from (search_agents with protocol x402) and clarifying that path, method, query, and body describe the seller-side request. It adds little about defaults beyond what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('quote a paid x402 API's price') and explicitly separates this tool from search_agents by naming that sibling as the source of the slug. An agent can tell it is a price-lookup step, not the paying call, without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear trigger ('use when you want a paid x402 API's price before paying') and directs the agent to search_agents with protocol x402 to obtain the slug. It also states the boundary 'it never pays or calls the seller', but does not name the tool that actually performs the paid call.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources