Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

Country lookup: ISO 3166 codes, currency, TLD, UN region and ISO 3166-2 subdivisions

country_lookup
Read-onlyIdempotent

Country lookup: find a country or territory by ISO 3166-1 alpha-2, alpha-3 or numeric code, or by name, and get the other codes, the official and common English names, the UN M49 region and sub-region, the currencies in use, the country-code TLD, and optionally the full ISO 3166-2 subdivision list with each subdivision's type. Also resolves an ISO 3166-2 subdivision code such as NL-NH directly. Names are matched case- and accent-insensitively. Price: $0.05 per successful call, paid over x402 (USDC on Base).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "country_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoISO 3166-1 alpha-2, alpha-3 or numeric code, or an ISO 3166-2 subdivision code such as NL-NH. Accepted: ISO 3166-1 alpha-2/alpha-3/numeric, or an ISO 3166-2 subdivision code.
nameNoSubstring search on country names, case- and accent-insensitive. Accepted: at most 128 characters.
includeNoComma-separated: subdivisions, m49, currency, tld. Default m49,currency,tld. Accepted: comma-separated subset of subdivisions, m49, currency, tld.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and closed-world behavior, and the description adds genuinely new operational facts: a $0.05 per-successful-call price paid over x402 (USDC on Base), and case- and accent-insensitive name matching. It does not disclose what happens on ambiguous name matches or error conditions, keeping it below a 5.

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 accepted inputs are front-loaded, and the returned fields are listed compactly without filler. The single dense paragraph is somewhat run-on, but every clause carries information an agent would otherwise have to guess.

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?

With no output schema, the description does the work of enumerating return fields (codes, official/common names, UN M49 region, currencies, ccTLD, optional subdivisions), which is exactly what is needed. The remaining gap is behavior for multi-match name searches and empty results, which an agent calling a substring-search tool would want to know.

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

Parameters3/5

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

Schema coverage is 100%, so all three parameters are already documented in structured form; the description mostly restates them. It adds marginal value by clarifying that each returned subdivision carries its type and that subdivision codes are accepted directly, but offers no extra syntax or default behavior beyond 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 description states a concrete verb and resource ('find a country or territory') and enumerates the lookup keys (alpha-2, alpha-3, numeric, name, and direct ISO 3166-2 subdivision codes) plus the exact data returned, so an agent can distinguish it from siblings like currency_lookup or nuts_region_lookup without opening a schema.

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?

It makes the two query modes clear (code-based or name-based) and notes that subdivisions are opt-in via the include list, which tells an agent how to scope a call. It stops short of naming an alternative tool or stating exclusions, so it lands at clear-context but no explicit when-not 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.