Skip to main content
Glama
Stables MCP Server

Stables MCP Server

Official

Create payment route

create_payment_route
Destructive

Create a payment route for a customer: a virtual bank account for fiat-to-crypto, a stablecoin deposit address for off-ramps, or a stablecoin swap route.

Instructions

Create a payment route for a customer. fiat_to_crypto (the default) issues a virtual bank account: fiat deposits convert to a stablecoin and pay out to a wallet, so destinationAddress and destinationPaymentRail are required. Set sourcePaymentRail to 'swift' for a SWIFT collection account: an IBAN that receives international SWIFT transfers, for business customers whose verification is approved and who hold the base_pay_in entitlement; it is not in the customer's name, and settles in USDT on Tron. crypto_to_fiat (an off-ramp route) issues a permanent USDT or USDC deposit address on sourceNetwork: every deposit converts and pays out to one bank account, given as a saved beneficiary (payoutType beneficiary + beneficiaryId) or as bank details. On a crypto_to_fiat route, swiftCode or bicCode is needed only when payoutNetwork is swift. Its deposits are route transactions, read with get_payment_route_history, never transfers. crypto_to_crypto (a swap route) issues a permanent USDT or USDC deposit address on sourceNetwork: every deposit is swapped and delivered to destinationAddress as destinationCurrency on destinationPaymentRail, which must differ from the source in stablecoin, network or both. Its deposits are route transactions too. Deposit handling is set server-side and defaults to auto_payout; change it afterwards with update_payment_route.

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": {
      "customerId": "<customerId>",
      "sourceCurrency": "<sourceCurrency>"
    },
    "name": "create_payment_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
ibanNoIBAN (EU/international)
cnapsNoCNAPS (China)
payIdNoPayID alias (AUD only). Requires payIdType
phoneNoBeneficiary phone number in E.164 format (e.g. '+5215512345678')
bicCodeNoBIC (EUR/GBP international)
bsbCodeNoBSB code (Australia)
bankCodeNoBank code / institution number (CAD)
bankNameNoName of the destination bank. Required unless paying a mobile money wallet
ifscCodeNoIFSC code (India)
metadataNoOptional key-value data returned on the route
sortCodeNoSort code (UK)
payIdTypeNoPayID alias type. Required when payId is given
swiftCodeNoSWIFT code
branchCodeNoBranch code / transit number (CAD)
branchNameNoBank branch name
customerIdYesThe customer ID to create the payment route for
payoutTypeNocrypto_to_fiat only: pay out to bank details given here, or to a saved beneficiarybank
accountTypeNoAccount type. Required for CAD and USD bank payouts
addressCityNoBeneficiary city
bankCountryNoBank country, ISO 2-letter (e.g. 'AU', 'US'). For mobile money, the country of the wallet
dateOfBirthNoBeneficiary date of birth, YYYY-MM-DD. Required when recipientType is individual for AED, CAD, EUR, GBP, MXN, USD
paymentRailNoUSD payouts only: prefer ACH or wire. Omit for the account's default. A rail that is not available is refused
purposeCodeNocrypto_to_fiat only: the purpose every payout carries. Required where an off-ramp transfer to the same destination requires one
addressStateNoBeneficiary state or region
bankCurrencyNoPayout currency, ISO 3-letter (e.g. 'EUR')
workflowTypeNofiat_to_crypto: a virtual bank account paying out to a wallet. crypto_to_fiat: a permanent stablecoin address paying out to a bank account. crypto_to_crypto: a permanent stablecoin address whose deposits are swapped to another stablecoin and/or network and sent to a walletfiat_to_crypto
accountNumberNoBank account number, if not using IBAN
addressStreetNoBeneficiary street address. Needed, with addressCountry, whenever an address is sent
beneficiaryIdNocrypto_to_fiat with payoutType beneficiary: a saved beneficiary id. Its bank details are copied onto the route; archived beneficiaries are refused
payoutNetworkNocrypto_to_fiat only: how each deposit is paid out. Defaults to the saved beneficiary's payment method, else bank (domestic). swift requires swiftCode or bicCode
recipientTypeNoBeneficiary type. Required for AED, CAD, EUR, GBP, MXN, USD
routingNumberNoABA routing number (US)
sourceNetworkNocrypto_to_fiat and crypto_to_crypto, required: the network the deposit address is issued on
walletAccountNoMobile money only: the wallet's identifier, such as its mobile number (e.g. '+233241234567'). Required with walletProvider
addressCountryNoBeneficiary country, ISO 2-letter. The complete address is required for AED, CAD, EUR, GBP, MXN, USD
sourceCurrencyYesWhat the customer deposits: a fiat currency for fiat_to_crypto (e.g. 'AUD', 'USD'), or 'USDT' / 'USDC' for crypto_to_fiat and crypto_to_crypto
walletProviderNoMobile money only: the wallet provider code, as listed for the corridor (e.g. 'mtn_gh'). Requires walletAccount, and every bank field (bankName, accountNumber, iban, bank codes) must be left out
bankAddressCityNoCity of the beneficiary's bank
bankAddressStateNoState or region of the beneficiary's bank
accountHolderNameNoAccount holder's full name, or the company name when recipientType is business
addressPostalCodeNoBeneficiary postal code
bankAddressStreetNoStreet address of the beneficiary's bank. A bank address is required for a USD SWIFT payout to an account the paying customer does not hold; street and country at minimum
sourcePaymentRailNofiat_to_crypto only. Omit for the currency's local rail. 'swift' opens a SWIFT collection account (business customers with approved verification and base_pay_in). SWIFT currencies: AED, AUD, CAD, CHF, CZK, DKK, EUR, GBP, GEL, HKD, HUF, JPY, NZD, PLN, SEK, SGD, THB, USD; payout USDT on tron
walletAccountTypeNoMobile money only: the kind of identifier in walletAccount. Only needed where the wallet provider accepts more than one
bankAddressCountryNoCountry of the beneficiary's bank, ISO 2-letter
destinationAddressNofiat_to_crypto and crypto_to_crypto, required: wallet address deposits are paid out to. Validated against the chosen network
destinationCurrencyNofiat_to_crypto and crypto_to_crypto: stablecoin to receiveusdt
nameInLocalLanguageNoAccount holder name in the local language (e.g. Chinese characters for CNY)
bankAddressPostalCodeNoPostal code of the beneficiary's bank
destinationPaymentRailNofiat_to_crypto and crypto_to_crypto, required: blockchain network the payout address belongs to
nationalIdentificationNumberNoNational identification number of the account holder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.6.15

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, idempotentHint=false and readOnly=false, so the description's job is to add operational context — and it does: it discloses that deposit handling 'is set server-side and defaults to auto_payout', that certain accounts are 'not in the customer's name', that crypto addresses are permanent, that archived beneficiaries are refused, and what a SWIFT collection account settles in (USDT on Tron). What it does not add is what a failed or duplicate creation looks like, or whether re-calling with the same inputs creates a second route given idempotentHint=false.

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?

It is correctly front-loaded with the core action, and virtually every clause carries real information with no marketing filler. However, the substance is delivered as a handful of very long run-on sentences mixing workflow selection, entitlement rules, settlement currency, and sibling routing, which makes it hard to scan. Breaking the three workflow types into separate labeled lines would preserve the content while sharply improving retrieval.

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

Completeness4/5

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

For a 51-parameter, no-output-schema creation tool this covers the decision-critical surface: which workflow to pick, what each variant requires, entitlement gates, and where to go next for history and updates. Gaps are secondary — there is no indication of what the created route object contains (relevant since no output schema exists) and the mobile-money, recipientType, purposeCode and address-completeness rules are left to the schema.

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?

With 100% schema description coverage the baseline is 3, but the description adds genuine conditional-requirement logic the schema only states per-field: destinationAddress and destinationPaymentRail are required for fiat_to_crypto, sourceNetwork for both crypto workflows, beneficiaryId paired with payoutType 'beneficiary', and swiftCode/bicCode 'only when payoutNetwork is swift'. This cross-parameter reasoning is exactly what an agent cannot easily assemble from 51 individually-described fields, though many bank-detail, recipientType and address parameters are left entirely to the schema.

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 opening sentence names a specific verb and resource ('Create a payment route for a customer'), then immediately enumerates the three distinct variants (fiat_to_crypto, crypto_to_fiat, crypto_to_crypto) and what each one actually issues — a virtual bank account versus a permanent deposit address. An agent can tell which mode it needs before touching the schema, and the tool is distinguished from sibling creators like create_transfer by the explicit note that route deposits are 'route transactions, read with get_payment_route_history, never transfers'.

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?

The description gives conditional routing across all three workflow types and states hard prerequisites for SWIFT ('business customers whose verification is approved and who hold the base_pay_in entitlement'), plus the constraint that crypto_to_crypto's destination must differ from source in stablecoin, network, or both. It also points forward to get_payment_route_history for reading deposits and update_payment_route for changing deposit handling after creation. It stops short of stating when NOT to use this tool versus nearby siblings such as create_transfer or create_virtual_account, so it is strong but not exhaustive.

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