Skip to main content
Glama
Stables MCP Server

Stables MCP Server

Official

Create quote

create_quote
Destructive

Get a short-lived quote for currency exchange, including rate, fees, and amount received, to price stablecoin-to-fiat, fiat-to-stablecoin, or stablecoin swaps before transfer.

Instructions

Get a quote for a currency exchange: the rate, the fees, and what the customer receives. Quotes are short-lived, so create one immediately before the transfer. Off-ramp converts a stablecoin to fiat (source network required, destination country required); on-ramp converts fiat to a stablecoin (destination address required). A swap converts a stablecoin to another stablecoin and/or moves it to another network: USDT or USDC on both sides, sourceNetwork and destinationNetwork both blockchain networks, no destinationCountry. The same stablecoin on the same network is refused. Give sourceAmount to quote what a fixed amount buys, or destinationAmount to quote what an exact amount received costs (only on routes that support it); never both. Set preview to price without committing.

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": {
      "sourceCurrency": "<sourceCurrency>",
      "destinationCurrency": "<destinationCurrency>"
    },
    "name": "create_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
previewNoPrice the quote without persisting it, to show an estimate
metadataNoOptional metadata
customerIdNoThe customer the quote is for. With it, the quote also uses payout routes that need the customer to be set up first, and the transfer must then be created for the same customer. Without it, only routes that need no customer set-up are used
sourceAmountNoAmount to convert, in major units (e.g. '125.75'). Give exactly one of sourceAmount and destinationAmount
fundingSourceNoHow the transfer made from this quote will be funded. fund_transfer (default): a deposit for that transfer. prefund_balance prices the quote for payment from your organisation's balance, and the transfer must then use the same fundingSource. Quoting moves no money, but a prefund_balance transfer debits the balance and starts the payout immediately, so it needs explicit human approval
sourceNetworkNoBlockchain network of the source. Required for off-ramp and swap, omitted for on-ramp
sourceCurrencyYesSource currency: a stablecoin for off-ramp or swap (e.g. 'USDT'), fiat for on-ramp
destinationAmountNoExact amount the recipient must receive, in major units (e.g. '100'), instead of sourceAmount. The quote then says what to send. Refused on routes that do not support an exact destination amount
destinationAddressNoDestination wallet address. Required for on-ramp
destinationCountryNoDestination country, ISO 2-letter. Required for off-ramp
destinationNetworkNoOff-ramp: the payout network. bank = the default domestic scheme, swift = international wire, payid = PayID alias (AUD), mobile_money = a mobile money wallet (needs walletProvider and walletAccount, and no bank fields). A named domestic scheme (ach, fedwire, fps, chaps, sepa, sepa_instant, fast, chats, unionpay) is refused where it is unavailable for the corridor. unionpay = personal remittance to a bank account in mainland China in CNY: purposeCode PERSONAL_REMITTANCE or USER_WITHDRAWAL, and the customer needs the cny_unionpay entitlement. On-ramp and swap: the blockchain network to deliver on (required for a swap, e.g. 'base')
destinationCurrencyYesDestination currency: fiat for off-ramp (e.g. 'EUR'), a stablecoin for on-ramp or swap (e.g. 'USDC')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv2.6.15
    • addedInput schema / properties / customerId
      Added value: +{
      +  "description": "The customer the quote is for. With it, the quote also uses payout routes that need the customer to be set up first, and the transfer must then be created for the same customer. Without it, only routes that need no customer set-up are used",
      +  "type": "string"
      +}
    • addedInput schema / properties / destinationAmount
      Added value: +{
      +  "description": "Exact amount the recipient must receive, in major units (e.g. '100'), instead of sourceAmount. The quote then says what to send. Refused on routes that do not support an exact destination amount",
      +  "type": "string"
      +}
    • changedInput schema / properties / destinationCurrency / description
      Previous value: -"Destination currency: fiat for off-ramp (e.g. 'EUR'), a stablecoin for on-ramp"New value: +"Destination currency: fiat for off-ramp (e.g. 'EUR'), a stablecoin for on-ramp or swap (e.g. 'USDC')"
    • changedInput schema / properties / destinationNetwork / description
      Previous value: -"Off-ramp: payment network, 'swift' or 'bank'. On-ramp: blockchain network. Replaces the old paymentMethodType"New value: +"Off-ramp: the payout network. bank = the default domestic scheme, swift = international wire, payid = PayID alias (AUD), mobile_money = a mobile money wallet (needs walletProvider and walletAccount, and no bank fields). A named domestic scheme (ach, fedwire, fps, chaps, sepa, sepa_instant, fast, chats, unionpay) is refused where it is unavailable for the corridor. unionpay = personal remittance to a bank account in mainland China in CNY: purposeCode PERSONAL_REMITTANCE or USER_WITHDRAWAL, and the customer needs the cny_unionpay entitlement. On-ramp and swap: the blockchain network to deliver on (required for a swap, e.g. 'base')"
    • addedInput schema / properties / fundingSource
      Added value: +{
      +  "description": "How the transfer made from this quote will be funded. fund_transfer (default): a deposit for that transfer. prefund_balance prices the quote for payment from your organisation's balance, and the transfer must then use the same fundingSource. Quoting moves no money, but a prefund_balance transfer debits the balance and starts the payout immediately, so it needs explicit human approval",
      +  "enum": [
      +    "fund_transfer",
      +    "prefund_balance"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / sourceAmount / description
      Previous value: -"Amount to convert, in major units (e.g. '125.75')"New value: +"Amount to convert, in major units (e.g. '125.75'). Give exactly one of sourceAmount and destinationAmount"
    • changedInput schema / properties / sourceCurrency / description
      Previous value: -"Source currency: a stablecoin for off-ramp (e.g. 'USDT'), fiat for on-ramp"New value: +"Source currency: a stablecoin for off-ramp or swap (e.g. 'USDT'), fiat for on-ramp"
    • changedInput schema / properties / sourceNetwork / description
      Previous value: -"Blockchain network of the source. Required for off-ramp, omitted for on-ramp"New value: +"Blockchain network of the source. Required for off-ramp and swap, omitted for on-ramp"
    • changedInput schema / required
      Previous value: -[
      -  "sourceCurrency",
      -  "sourceAmount",
      -  "destinationCurrency"
      -]New value: +[
      +  "sourceCurrency",
      +  "destinationCurrency"
      +]
  2. Changed2 schema fields changedv2.6.11
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / metadata / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  3. Changed17 schema fields changedv2.4.0
    • removedInput schema / properties / customerId
      Removed value: -{
      -  "description": "The customer ID to associate this quote with. Required if the quote will be used to create a transfer.",
      -  "type": "string"
      -}
    • addedInput schema / properties / destinationAddress
      Added value: +{
      +  "description": "Destination wallet address. Required for on-ramp",
      +  "type": "string"
      +}
    • addedInput schema / properties / destinationCountry
      Added value: +{
      +  "description": "Destination country, ISO 2-letter. Required for off-ramp",
      +  "type": "string"
      +}
    • addedInput schema / properties / destinationCurrency
      Added value: +{
      +  "description": "Destination currency: fiat for off-ramp (e.g. 'EUR'), a stablecoin for on-ramp",
      +  "type": "string"
      +}
    • addedInput schema / properties / destinationNetwork
      Added value: +{
      +  "description": "Off-ramp: payment network, 'swift' or 'bank'. On-ramp: blockchain network. Replaces the old paymentMethodType",
      +  "type": "string"
      +}
    • removedInput schema / properties / fromAmount
      Removed value: -{
      -  "description": "Amount to convert (e.g., '125.75')",
      -  "type": "string"
      -}
    • removedInput schema / properties / fromCurrency
      Removed value: -{
      -  "description": "Source cryptocurrency (USDC or USDT)",
      -  "enum": [
      -    "USDC",
      -    "USDT"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / fromNetwork
      Removed value: -{
      -  "description": "Blockchain network for the source crypto",
      -  "enum": [
      -    "ethereum",
      -    "polygon"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / metadata
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "Optional metadata",
      +  "type": "object"
      +}
    • removedInput schema / properties / paymentMethodType
      Removed value: -{
      -  "description": "Payment method for fiat payouts - 'SWIFT' for international, 'LOCAL' for domestic rails",
      -  "enum": [
      -    "SWIFT",
      -    "LOCAL"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / preview
      Added value: +{
      +  "description": "Price the quote without persisting it, to show an estimate",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / sourceAmount
      Added value: +{
      +  "description": "Amount to convert, in major units (e.g. '125.75')",
      +  "type": "string"
      +}
    • addedInput schema / properties / sourceCurrency
      Added value: +{
      +  "description": "Source currency: a stablecoin for off-ramp (e.g. 'USDT'), fiat for on-ramp",
      +  "type": "string"
      +}
    • addedInput schema / properties / sourceNetwork
      Added value: +{
      +  "description": "Blockchain network of the source. Required for off-ramp, omitted for on-ramp",
      +  "enum": [
      +    "arbitrum",
      +    "avalanche",
      +    "base",
      +    "ethereum",
      +    "optimism",
      +    "polygon",
      +    "solana",
      +    "tron"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / toCountry
      Removed value: -{
      -  "description": "Destination country code (e.g., 'GR', 'US', 'GB')",
      -  "type": "string"
      -}
    • removedInput schema / properties / toCurrency
      Removed value: -{
      -  "description": "Destination currency code (e.g., 'EUR', 'USD', 'GBP')",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "fromCurrency",
      -  "fromAmount",
      -  "fromNetwork",
      -  "toCurrency",
      -  "toCountry",
      -  "paymentMethodType"
      -]New value: +[
      +  "sourceCurrency",
      +  "sourceAmount",
      +  "destinationCurrency"
      +]
  4. First observedv1.4.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations by disclosing that quotes expire, that quoting moves no money while prefund_balance transfers debit the balance and need explicit human approval, that certain domestic schemes are refused when unavailable for a corridor, that exact-destination quoting is refused on unsupported routes, and that customerId constrains the later transfer. These refusal and lifecycle rules are exactly the behavior an agent cannot read off destructiveHint/openWorldHint.

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?

Purpose and lifecycle warning come first, then route-specific requirements in a logical grouping, with no filler or marketing language. It is dense for five sentences and some route detail duplicates the schema descriptions, but every sentence carries operational meaning.

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 12-parameter, no-output-schema, multi-route tool, the description covers what the agent must know to call it correctly: which route each parameter set implies, refusal conditions, and how the quote is later consumed by a transfer. The absence of an output schema is partly offset by the opening line naming the returns (rate, fees, received amount), though quote id and expiry are left implicit.

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 baseline is 3; the description earns a step up by synthesizing cross-parameter constraints the schema states only field-by-field (swap = stablecoin-to-stablecoin with both networks as blockchains and no destinationCountry; on-ramp requires destinationAddress and omits sourceNetwork). The sourceAmount/destinationAmount exclusivity and preview semantics largely restate schema text rather than adding new syntax.

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

Purpose4/5

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

The opening sentence names a specific verb and resource with its outputs ('Get a quote for a currency exchange: the rate, the fees, and what the customer receives') and then distinguishes three quote shapes (off-ramp, on-ramp, swap) by their required inputs. It never names a sibling tool, so an agent must infer that get_quote retrieves an existing quote rather than creating one.

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?

Gives concrete when-to guidance ('create one immediately before the transfer' because quotes are short-lived) and when-not rules (never both sourceAmount and destinationAmount; destinationCountry must be omitted for a swap; same stablecoin on the same network is refused). It also offers preview as the non-committing alternative. It stops short of explicitly routing the agent to get_quote for an existing quote or create_transfer for the next step.

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