Skip to main content
Glama
Stables MCP Server

Stables MCP Server

Official

Validate payment method

validate_payment_method
Read-onlyIdempotent

Check payout details against a corridor's rules before creating a transfer, so you know which fields a currency and network require instead of losing a quote to rejection.

Instructions

Check payout details (a bank account or a mobile money wallet) against the corridor's rules without creating anything. Use it before create_transfer to find out which fields a currency and network need (beneficiary address, date of birth, bank codes, wallet details), instead of spending a short-lived quote on a rejected transfer. Networks: 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. A CNY bank payout needs nameInLocalLanguage and nationalIdentificationNumber, and for goods trade (purposeCode GENERAL_GOODS_TRADES) logisticsTrackingDetails and items.

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": {
      "network": "<network>"
    },
    "name": "validate_payment_method"
  }
}

Input Schema

NameRequiredDescriptionDefault
ibanNoIBAN (EU/international)
cnapsNoCNAPS (China)
itemsNoGoods the payout pays for, as invoice lines. Required, with logisticsTrackingDetails, for a CNY bank payout with purposeCode GENERAL_GOODS_TRADES
payIdNoPayID alias (AUD only). Requires payIdType
phoneNoBeneficiary phone number in E.164 format (e.g. '+5215512345678')
bicCodeNoBIC (EUR/GBP international)
bsbCodeNoBSB code (Australia)
networkYesPayout network to validate against: bank (default domestic scheme), swift, payid (AUD), mobile_money, or a named domestic scheme
quoteIdNoValidate against this quote's corridor
bankCodeNoBank code / institution number (CAD)
bankNameNoName of the destination bank. Required unless paying a mobile money wallet
ifscCodeNoIFSC code (India)
sortCodeNoSort code (UK)
documentsNoSupporting documents for the payout, such as an invoice or contract
payIdTypeNoPayID alias type. Required when payId is given
swiftCodeNoSWIFT code
branchCodeNoBranch code / transit number (CAD)
branchNameNoBank branch name
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
purposeCodeNoThe purpose the transfer will carry. Some corridors ask for different supporting details per purpose (CNY: logisticsTrackingDetails and items for goods trade, a document for services); without it every such detail is required
addressStateNoBeneficiary state or region
bankCurrencyNoPayout currency, ISO 3-letter (e.g. 'EUR')
accountNumberNoBank account number, if not using IBAN
addressStreetNoBeneficiary street address. Needed, with addressCountry, whenever an address is sent
recipientTypeNoBeneficiary type. Required for AED, CAD, EUR, GBP, MXN, USD
routingNumberNoABA routing number (US)
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
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
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
nameInLocalLanguageNoAccount holder name in the local language (e.g. Chinese characters for CNY)
bankAddressPostalCodeNoPostal code of the beneficiary's bank
logisticsTrackingDetailsNoShipment tracking for the goods the payout pays for. Required, with items, for a CNY bank payout with purposeCode GENERAL_GOODS_TRADES
nationalIdentificationNumberNoNational identification number of the account holder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changedv2.6.15
    • changedInput schema / properties / addressStreet / description
      Previous value: -"Beneficiary street address"New value: +"Beneficiary street address. Needed, with addressCountry, whenever an address is sent"
    • addedInput schema / properties / bankAddressCity
      Added value: +{
      +  "description": "City of the beneficiary's bank",
      +  "type": "string"
      +}
    • addedInput schema / properties / bankAddressCountry
      Added value: +{
      +  "description": "Country of the beneficiary's bank, ISO 2-letter",
      +  "type": "string"
      +}
    • addedInput schema / properties / bankAddressPostalCode
      Added value: +{
      +  "description": "Postal code of the beneficiary's bank",
      +  "type": "string"
      +}
    • addedInput schema / properties / bankAddressState
      Added value: +{
      +  "description": "State or region of the beneficiary's bank",
      +  "type": "string"
      +}
    • addedInput schema / properties / bankAddressStreet
      Added value: +{
      +  "description": "Street 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",
      +  "type": "string"
      +}
    • changedInput schema / properties / bankCountry / description
      Previous value: -"Bank country, ISO 2-letter (e.g. 'AU', 'US')"New value: +"Bank country, ISO 2-letter (e.g. 'AU', 'US'). For mobile money, the country of the wallet"
    • changedInput schema / properties / bankName / description
      Previous value: -"Name of the destination bank"New value: +"Name of the destination bank. Required unless paying a mobile money wallet"
    • addedInput schema / properties / branchName
      Added value: +{
      +  "description": "Bank branch name",
      +  "type": "string"
      +}
    • addedInput schema / properties / documents
      Added value: +{
      +  "description": "Supporting documents for the payout, such as an invoice or contract",
      +  "items": {
      +    "properties": {
      +      "base64Url": {
      +        "description": "The document as a base64 data URI (e.g. 'data:application/pdf;base64,...')",
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Document type",
      +        "enum": [
      +          "invoice",
      +          "contract",
      +          "other"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "base64Url"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / items
      Added value: +{
      +  "description": "Goods the payout pays for, as invoice lines. Required, with logisticsTrackingDetails, for a CNY bank payout with purposeCode GENERAL_GOODS_TRADES",
      +  "items": {
      +    "properties": {
      +      "description": {
      +        "description": "Free-text description of the goods",
      +        "maxLength": 512,
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Name of the goods",
      +        "maxLength": 512,
      +        "type": "string"
      +      },
      +      "quantity": {
      +        "description": "Number of units",
      +        "maximum": 9007199254740991,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "unitPrice": {
      +        "description": "Price of one unit in the destination currency, major units, as a decimal string (e.g. '20.00')",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "quantity",
      +      "unitPrice"
      +    ],
      +    "type": "object"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / logisticsTrackingDetails
      Added value: +{
      +  "description": "Shipment tracking for the goods the payout pays for. Required, with items, for a CNY bank payout with purposeCode GENERAL_GOODS_TRADES",
      +  "items": {
      +    "properties": {
      +      "logisticsProvider": {
      +        "properties": {
      +          "code": {
      +            "description": "Logistics provider code",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Logistics provider name",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "trackingNumber": {
      +        "description": "Logistics tracking number",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / nameInLocalLanguage
      Added value: +{
      +  "description": "Account holder name in the local language (e.g. Chinese characters for CNY)",
      +  "type": "string"
      +}
    • addedInput schema / properties / nationalIdentificationNumber
      Added value: +{
      +  "description": "National identification number of the account holder",
      +  "type": "string"
      +}
    • changedInput schema / properties / network / description
      Previous value: -"Payout network: local bank rails, SWIFT, or PayID (AUD)"New value: +"Payout network to validate against: bank (default domestic scheme), swift, payid (AUD), mobile_money, or a named domestic scheme"
    • changedInput schema / properties / network / enum
      Previous value: -[
      -  "bank",
      -  "swift",
      -  "payid"
      -]New value: +[
      +  "swift",
      +  "bank",
      +  "payid",
      +  "mobile_money",
      +  "ach",
      +  "fedwire",
      +  "fps",
      +  "chaps",
      +  "sepa",
      +  "sepa_instant",
      +  "fast",
      +  "chats",
      +  "unionpay"
      +]
    • addedInput schema / properties / paymentRail
      Added value: +{
      +  "description": "USD payouts only: prefer ACH or wire. Omit for the account's default. A rail that is not available is refused",
      +  "enum": [
      +    "ach",
      +    "wire"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / phone
      Added value: +{
      +  "description": "Beneficiary phone number in E.164 format (e.g. '+5215512345678')",
      +  "type": "string"
      +}
    • addedInput schema / properties / purposeCode
      Added value: +{
      +  "description": "The purpose the transfer will carry. Some corridors ask for different supporting details per purpose (CNY: logisticsTrackingDetails and items for goods trade, a document for services); without it every such detail is required",
      +  "enum": [
      +    "PAYMENT_FOR_SERVICES",
      +    "PAYMENT_FOR_SOFTWARE",
      +    "PAYMENT_FOR_IMPORTED_GOODS",
      +    "TRAVEL_SERVICES",
      +    "VENDOR_CONTRACTOR_PAYOUTS",
      +    "TRANSFER_TO_OWN_ACCOUNT",
      +    "INVESTMENT_IN_SHARES",
      +    "PURCHASE_OF_PROPERTY",
      +    "REPAYMENT_OF_LOANS",
      +    "SALARY",
      +    "PAYMENT_OF_PROPERTY_RENTAL",
      +    "INFORMATION_SERVICE_CHARGES",
      +    "ADVERTISING_PR_EXPENSES",
      +    "ROYALTY_FEES",
      +    "BROKER_COMMITMENT_FEES",
      +    "ADVISOR_TECHNICAL_FEES",
      +    "REPRESENTATIVE_OFFICE_EXPENSES",
      +    "TAX_PAYMENT",
      +    "TRANSPORTATION_FEES_FOR_GOODS",
      +    "CONSTRUCTION_COSTS",
      +    "INSURANCE_PREMIUM",
      +    "GENERAL_GOODS_TRADES",
      +    "INSURANCE_CLAIMS_PAYMENT",
      +    "FAMILY_MAINTENANCE",
      +    "EDUCATION_EXPENSES",
      +    "MEDICAL_TREATMENT",
      +    "DONATIONS",
      +    "MUTUAL_FUND_INVESTMENT",
      +    "CURRENCY_EXCHANGE",
      +    "USER_WITHDRAWAL",
      +    "ADVANCE_PAYMENTS_FOR_GOODS",
      +    "VENDOR_CONTRACTOR_SOFTWARE_PAYOUTS",
      +    "MERCHANT_SETTLEMENT",
      +    "REPATRIATION_FUND_SETTLEMENT",
      +    "PERSONAL_REMITTANCE",
      +    "RETURN_OF_FUNDS"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / walletAccount
      Added value: +{
      +  "description": "Mobile money only: the wallet's identifier, such as its mobile number (e.g. '+233241234567'). Required with walletProvider",
      +  "maxLength": 64,
      +  "type": "string"
      +}
    • addedInput schema / properties / walletAccountType
      Added value: +{
      +  "description": "Mobile money only: the kind of identifier in walletAccount. Only needed where the wallet provider accepts more than one",
      +  "enum": [
      +    "mobile_number"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / walletProvider
      Added value: +{
      +  "description": "Mobile 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",
      +  "maxLength": 128,
      +  "type": "string"
      +}
  2. Changed1 schema field changedv2.6.11
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Addedv2.4.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the description's 'without creating anything' is reinforcement rather than new information. It does add real behavioral context beyond the annotations: unavailable named schemes are 'refused', unionpay requires the cny_unionpay entitlement, and mobile_money forbids bank fields. It stops short of saying what a failed validation returns, which is the one gap.

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 purpose and the create_transfer comparison, then organized by network. It is dense and long, but each sentence carries a distinct rule; the network rules could be tighter but nothing is filler.

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 44-parameter, non-annotated-output validator the description covers the highest-risk conditional paths and says the call reveals which fields a corridor needs. With no output schema, a brief note on what a validation response or rejection looks like would close the remaining gap.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3; the description goes well past it by encoding cross-field conditionals the schema cannot express — mobile_money needs walletProvider and walletAccount with no bank fields, unionpay restricts purposeCode to PERSONAL_REMITTANCE or USER_WITHDRAWAL, and CNY bank payouts need nameInLocalLanguage plus nationalIdentificationNumber, with logisticsTrackingDetails and items only for GENERAL_GOODS_TRADES.

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 ('Check payout details ... against the corridor's rules without creating anything') and immediately distinguishes itself from create_transfer and from spending a quote. An agent can tell this is a dry-run validator, not a mutator.

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?

Explicit sequencing guidance: 'Use it before create_transfer ... instead of spending a short-lived quote on a rejected transfer.' It names the alternative it replaces (quote consumption) and the pre-condition for calling it.

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