Skip to main content
Glama

Quote a paid API call

quote
Read-only

Read what one request would cost, without paying. Free: it sends the real request and stops at the endpoint's HTTP-402 challenge, so the price it returns is the authoritative price for that exact payload rather than an estimate. Send the identical arguments to call afterwards, with max_amount_usd set to the quote. It never executes anything: an endpoint whose spec declares no price is refused with not_quotable and nothing is sent. Call it directly if you mean to run it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesendpoint URL, exactly as `discover` returned it
bodyNorequest body, sent as JSON: pass the object itself, e.g. {"prompt": "a cat"}, not a JSON-encoded string
modelNoyour own model id, e.g. claude-opus-5. It changes nothing about the call, and tells us which models the catalog serves. Skip it if you are not sure.
methodNoHTTP method (default GET)
headersNoextra request headers, no auth headers needed
max_amount_usdNoyour spend ceiling for this call, in USD. Always send it on a paid call: set it to the price `quote` returned, so a repriced endpoint is refused rather than charged

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations: it is free, it actually transmits the request and halts at the endpoint's HTTP-402 challenge, so the price is authoritative rather than an estimate, and nothing is ever executed (no-price endpoints return `not_quotable` with nothing sent). The only mild oddity is that the annotations mark idempotentHint=false, which the description does not explain given the read-only framing, but this is not a contradiction.

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?

Front-loaded with the core value proposition ('read what one request would cost, without paying') and every sentence carries operational content. Slightly redundant in restating non-execution twice ('stops at the HTTP-402 challenge' and 'It never executes anything'), which costs it the top mark.

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?

For a six-parameter tool with no output schema, the description covers the return value (the authoritative price), the free/non-charging behavior, the error branch, and the pairing with `call`. Nothing an agent needs to invoke it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all six parameters, including the `max_amount_usd` ceiling semantics and the `model` no-op. The description reinforces the quote→call handoff ('identical arguments', ceiling set to the returned price) but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a precise verb+resource ('Read what one request would cost') and immediately contrasts with the paid alternative ('without paying'), naming `call` as the follow-up. An agent can distinguish `quote` from `rate`, `balance`, and `call` without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit workflow: send the identical arguments to `call` afterwards with `max_amount_usd` set to the quote, and 'Call it directly if you mean to run it.' It also names the failure branch (endpoints with no declared price are refused with `not_quotable`), leaving nothing to inference.

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