Skip to main content
Glama

Quote a service call

quote_service
Destructive

Price ONE call to a catalog service WITHOUT paying it: it charges nothing, signs nothing and reserves no budget. Pass exactly what you would pass to pay_service (the same slug, path, method, search, headers, body and delegationId): the Router sends that request to the service unpaid, reads the price it asks for, and returns an opaque quoteId, its short expiresAt, the rail (protocol), the network and merchant amount (settlement) and the fee-inclusive total (fee.capChargedCents, whole cents rounded up; fee.capChargedMicros exact, in 1/10,000 of a cent). Unlike the quote on a get_service endpoint (the last merchant price the catalog observed, routing fee excluded), this is priced live for your exact request and includes the fee. Because the request really reaches the service, a service that does not charge for it performs it, so take care quoting a method with side effects; and a quote spends the same per-service rate limit as a payment, so quote once per decision rather than polling. It prices the delegation pay_service would charge (optionSet: "delegation", naming its delegationId), or, with no delegation set up, what a personal crypto delegation would select (optionSet: "deployment"); in that case nextTool is setup_delegation: set one up and quote again before paying, since the delegation you create can select a different rail and price. The quote reports wouldSucceed and blockers (with blockerLines, one per limit, each with its fix) for your limits and, on MPP-tempo (a charge, or the deposit of a session), the wallet balance (never read on x402 or a card); it is advisory, the call re-checks, and a check it could not read is listed in unchecked (see uncheckedLines) rather than blocking. Next step (nextTool: "pay_service"): if fee.capChargedCents fits what you planned to spend, call pay_service before expiry with the same arguments, the quoted delegationId, quoteId, and maxTotalCents set to that figure as a number. The quote id fixes the exact challenge and fee-inclusive total while maxTotalCents remains an independent ceiling. paymentRequired: false means the service did not ask for payment for this request; upstreamStatus is its answer, and a non-2xx usually means the path, method or body is wrong. The service response itself is never returned. Outcomes, all charging nothing: {"payable":false}, service_not_found, catalog_unavailable and delegation_lookup_failed as in pay_service; quote_unavailable (no quote can be made here and retrying will not change that, so bound the price with pay_service maxTotalCents instead); service_not_allowed / org_service_not_allowed (with orgId), as in pay_service: the service or endpoint is outside the allowed-services list, refused before the service is contacted; quote_failed (the Router refused to price the call, or did not answer; see code, message and retryable); credential_refused (re-authorize). FUNDING (funding): chosen as pay_service would choose it. When you hold Nevermined credits that can pay it (a Nevermined Subscription allowance, welcome or top-up credits) and the endpoint accepts credits the answer is {"funding":"subscription","credits":…,"paymentRequired":…,"upstreamStatus":…,"wouldSucceed":…,"blockers":[…],"unchecked":[…],"topUp":…,"priceSource":…,"observedAt":…,"usageBased":…} (upstreamStatus is absent when priceSource is "observed": the service was not asked and credits is its last observed price, which may have moved; topUp (credits, amountUsd) appears only when your credits fall short, the credit pack pay_service would buy covers the shortfall and nothing else blocks the call, in which case wouldSucceed is true): with priceSource "live" (or absent), the exact credits this request costs (the service is sent it unpaid); with "observed", the price of its last observed answer; there is no quoteId or cent total. Credits follow each service’s live price, with a 1-credit minimum, so pass everything pay_service will send. Then call pay_service with the same arguments and, when this answer gives one, the maxCredits: a call that has become dearer is refused and charges nothing. usageBased: true (absent otherwise) means the service charges by usage: credits is then a maximum, not the cost, a call spends the maximum the service names when it is made, and the credits the service does not take come back once its payment settles (all of them if it never does); say "up to" when you tell the human the cost. paymentRequired: false means the service named no price for this request, and credits is then 0. wouldSucceed and blockers (see blockerLines) report whether your credits, your spending limits and the treasury (BCK.SUBSCRIPTION_TREASURY.0001 or 0002: no treasury for this chain or asset, so pay with funding: "delegation"; 0003: the float is short, retry later) would allow the call; they are advisory, pay_service re-checks, and when wouldSucceed is false there is no maxCredits and no nextTool. A check this quote could not read is listed in unchecked (see uncheckedLines): it does not block, and pay_service still makes it. An answer with no wouldSucceed checked nothing: pay_service will check limits and balance. Your wallet balance is checked only on MPP-tempo (a charge, or the deposit of a session); never on x402 or a card, nor here for credits. Pass funding: "delegation" to price the delegation instead. Subscription refusals are named as in pay_service. When settlement.scheme is session, the merchant is paid out of a deposit in a payment channel, and sessionDeposit says what this call would do to it: action is open (the first call locks a deposit), top_up (it locks more), none (no new money leaves the wallet), closing (the call would be refused, nothing moves; quote again once it has closed) or null (what the call would do could not be stated, and pay_service may refuse it); approxCents is how much would move into the deposit, in cents, the network fee not included, and basis says whether that is sized for this budget and wallet or an upper_bound. That money can far exceed the price. It is locked, not spent, it is not charged to the budget, and what the merchant does not take comes back when the channel closes, idleCloseSeconds after its last use. Tell the human before paying. Requires your Nevermined API key on the Authorization header.

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_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe request payload you would send; some services price by it.
pathNoThe same `path` you would pass to pay_service: read `get_service`'s `requestShape.endpoints[].payServiceArgs.path` and replace every `pathParams` placeholder. Put query parameters in `search`.
slugYesThe service slug to quote.
methodNoHTTP method. Omit to use the method the catalog records for the endpoint matching `path` (POST when it records none), exactly as pay_service does.
searchNoQuery string without ?, for a slug-routed GET (e.g. flight_iata=AA217). It reaches the service re-encoded: values of a repeated name together, a space as `+`, a bare name as `name=`, every character other than letters, digits and `*-._` URL-encoded (`,` as `%2C`, `:` as `%3A`), and integer names (`2`, not `01` or `1.5`) first, ascending.
fundingNoWhat to price: `subscription` (your Nevermined credits) or `delegation` (the fee-inclusive money total). Omit it to price the funding pay_service would use.
headersNoThe extra headers you would send to the vendor.
delegationIdNoThe delegation you would pay with, when you authenticate with an API key; defaults to the one pay_service would use. A card or organization-wallet delegation can select a different rail, and so a different price. An OAuth-connected caller is always quoted for the grant it approved: omit this, since another delegation is refused (`invalid_arguments`); the result names the one priced.
requireProtocolNoPrice (and pin the returned quote to) one payment rail. Pass the same value you will pass to pay_service: the quote prices that rail, and the quoteId it returns is only payable on it. If the service does not offer the pinned rail the quote is refused (`quote_failed` with code BCK.ROUTER.0045, nothing charged) rather than priced on the other one. Omit to let the Router auto-select (it prefers mpp).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / delegationId / description
      Previous value: -"The delegation you would pay with, when you authenticate with an API key; defaults to the one pay_service would use. A card or organization-wallet delegation can select a different rail, and so a different price. An OAuth-connected caller is always quoted for the grant it approved, so a value here does not choose the delegation; the result names the one priced."New value: +"The delegation you would pay with, when you authenticate with an API key; defaults to the one pay_service would use. A card or organization-wallet delegation can select a different rail, and so a different price. An OAuth-connected caller is always quoted for the grant it approved: omit this, since another delegation is refused (`invalid_arguments`); the result names the one priced."
    • changedInput schema / properties / search / description
      Previous value: -"Query string without ?, for a slug-routed GET (e.g. flight_iata=AA217)."New value: +"Query string without ?, for a slug-routed GET (e.g. flight_iata=AA217). It reaches the service re-encoded: values of a repeated name together, a space as `+`, a bare name as `name=`, every character other than letters, digits and `*-._` URL-encoded (`,` as `%2C`, `:` as `%3A`), and integer names (`2`, not `01` or `1.5`) first, ascending."
  2. Changed1 schema field changed
    • changedInput schema / properties / requireProtocol / description
      Previous value: -"Price (and pin the returned quote to) one payment rail. Pass the same value you will pass to pay_service: the quote prices that rail, and the quoteId it returns is only payable on it. If the service does not offer the pinned rail the quote is refused (`quote_failed` with code BCK.ROUTER.0045, nothing charged) rather than priced on the other one. Omit to let the Router auto-select (it prefers mpp). A subscription-credit quote (`funding: \"subscription\"`) is rail-agnostic — it prices the published credit tariff, so the pin does not change it and is not applied here; the subsequent paid call still enforces the pin and can be refused if the service does not offer it."New value: +"Price (and pin the returned quote to) one payment rail. Pass the same value you will pass to pay_service: the quote prices that rail, and the quoteId it returns is only payable on it. If the service does not offer the pinned rail the quote is refused (`quote_failed` with code BCK.ROUTER.0045, nothing charged) rather than priced on the other one. Omit to let the Router auto-select (it prefers mpp)."
  3. Changed1 schema field changed
    • addedInput schema / properties / requireProtocol
      Added value: +{
      +  "description": "Price (and pin the returned quote to) one payment rail. Pass the same value you will pass to pay_service: the quote prices that rail, and the quoteId it returns is only payable on it. If the service does not offer the pinned rail the quote is refused (`quote_failed` with code BCK.ROUTER.0045, nothing charged) rather than priced on the other one. Omit to let the Router auto-select (it prefers mpp). A subscription-credit quote (`funding: \"subscription\"`) is rail-agnostic — it prices the published credit tariff, so the pin does not change it and is not applied here; the subsequent paid call still enforces the pin and can be refused if the service does not offer it.",
      +  "enum": [
      +    "x402",
      +    "mpp"
      +  ],
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / funding / description
      Previous value: -"What to price: `subscription` (credits from your Nevermined Subscription) or `delegation` (the fee-inclusive money total). Omit it to price the funding pay_service would use."New value: +"What to price: `subscription` (your Nevermined credits) or `delegation` (the fee-inclusive money total). Omit it to price the funding pay_service would use."
  5. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / headers / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • addedInput schema / properties / funding
      Added value: +{
      +  "description": "What to price: `subscription` (credits from your Nevermined Subscription) or `delegation` (the fee-inclusive money total). Omit it to price the funding pay_service would use.",
      +  "enum": [
      +    "subscription",
      +    "delegation"
      +  ],
      +  "type": "string"
      +}
  7. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The annotations mark this as destructive and open-world; the description explains why: the request really reaches the service unpaid, so side-effecting methods may be performed, and a quote consumes the same per-service rate limit as a payment. It adds important behavior beyond the annotations, including that it charges nothing, signs nothing, reserves no budget, requires a Nevermined API key, and returns advisory checks that pay_service re-checks.

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

Conciseness3/5

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

The core purpose and next step are front-loaded, but the description is a single very dense paragraph with long nested parentheticals and repeated re-check language. Most details are relevant, but the lack of headings or bullets makes it harder to scan than it should be for a tool this complex.

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?

There is no output schema, so the description carries the full burden of explaining return values, and it does so thoroughly: quoteId, expiresAt, protocol, settlement, fee fields, nextTool, wouldSucceed, blockers, unchecked, paymentRequired, upstreamStatus, and the various outcome codes. It also covers authentication and the session-deposit behavior.

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 description coverage is 100%, so the schema already documents most parameter meanings. The description still adds useful cross-tool semantics by telling the agent to pass exactly what it would pass to pay_service and by clarifying how funding, delegationId, and requireProtocol affect what is priced and how the returned quoteId can be used.

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 specific verb and resource: "Price ONE call to a catalog service WITHOUT paying it." It explicitly distinguishes itself from pay_service and from the catalog's get_service quote, so an agent can identify its role immediately.

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 explicit when-to-use guidance: quote before paying, pass the same arguments as pay_service, quote once per decision rather than polling, and follow nextTool when setup_delegation is required. It also names the alternative action when quote_unavailable occurs: bound the price with pay_service maxTotalCents.

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