Skip to main content
Glama

Country Payment Codes

country_payment_codes
Read-only

Look up country-specific payment codes (KNP, purpose codes, etc.).

Use country_banking_rules first to see which code types a country requires (in the payment_requirements block), then use this tool to find the right code value.

Examples: country_payment_codes("KZ", "knp", "transport") country_payment_codes("KZ", "knp", "insurance") country_payment_codes("AE", "purpose_code", "trade") country_payment_codes("KZ", "knp") # all codes (large response)

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": {
      "country_code": "<country_code>",
      "code_type": "<code_type>"
    },
    "name": "country_payment_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoOptional page of the codes, from 1 (default). Used only when an answer says codes were left out to fit and names the page that holds them.
searchNoOptional keyword filter (e.g. "transport", "trade", "insurance"). Omit it to list every code in the table, which is a large response.
code_typeYesWhich code table to search, as named in country_banking_rules payment_requirements.required_fields[].code_type (e.g. "knp", "purpose_code"). Case-insensitive.
country_codeYesISO 3166-1 alpha-2 country code, e.g. "KZ", "AE".

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / page
      Added value: +{
      +  "default": 1,
      +  "description": "Optional page of the codes, from 1 (default). Used only when an answer says codes were left out to fit and names the page that holds them.",
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: omitting the search term returns the whole table and produces a large response, which lets the agent anticipate cost and output size.

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 the workflow prerequisite are front-loaded in the first two sentences, and the examples are compact. The repeated KZ/knp examples with varying keywords are slightly redundant, but each one demonstrates a distinct filter behavior rather than padding.

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?

An output schema exists, so return shape does not need explaining. What remains for a correct call — which code_type to use, how to filter, what happens when you do not filter, and which tool to consult before this one — is all present.

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 coverage is 100%, so the baseline is 3 and the schema already defines every field. The example invocations demonstrate argument order and the position of the optional keyword filter, and the annotated '# all codes (large response)' comment explains the consequence of leaving that filter out, which the schema describes only tersely.

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?

Description states a specific verb and resource ('look up country-specific payment codes') and enumerates the code families (KNP, purpose codes) so the agent can distinguish it from siblings like country_banking_rules or gpi_status_codes.

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?

Explicitly sets a two-step workflow: call country_banking_rules first to read payment_requirements, then call this tool for the value. The named alternative and the condition that selects it are stated outright, which is the strongest form of routing guidance.

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