Skip to main content
Glama

Global Trade Codes and Countries MCP

Look up country by ISO-3166 code

get_country_by_iso_code
Read-onlyIdempotent

Resolve an ISO-3166 alpha-2 (US), alpha-3 (USA), or numeric (840) code to standardized country metadata.

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": {
      "code": "<code>"
    },
    "name": "get_country_by_iso_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesISO-3166 alpha-2, alpha-3, or 3-digit numeric code (e.g. "US", "DEU", "840").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered elsewhere. The description adds only one behavioral note beyond that — that inputs are normalized to 'standardized country metadata' regardless of format — and says nothing about invalid-code handling or lookup failure behavior.

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?

A single well-formed sentence that front-loads the verb and input formats with zero filler. It is appropriately sized for a one-parameter lookup tool, though the parenthetical examples duplicate the schema.

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 trivial single-parameter lookup this covers the essential invocation contract. The one real gap is that 'standardized country metadata' is never unpacked and there is no output schema, so the agent cannot predict which fields come back (name, alpha codes, calling code, etc.).

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 description coverage is 100%, so the single `code` parameter is already fully documented, including the same examples (US, DEU, 840) the description repeats. The description adds no constraint, format edge case, or normalization rule beyond what the schema states, so the baseline of 3 applies.

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 description pairs a specific verb ('Resolve') with a specific resource ('country metadata') and enumerates the three accepted code formats, so the operation is unambiguous. It does not, however, explicitly contrast itself with siblings like search_countries_by_name or get_countries_by_region, so the agent must infer the distinction from the name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the phrasing 'Resolve an ... ISO-3166 ... code' makes clear the tool is for code-based lookup, which implicitly excludes name search or region/currency listing. There is no explicit when-to-use or when-not-to-use sentence, and no pointer to search_countries_by_name for agents that only have a country name.

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.