Skip to main content
Glama

Buscar país ISO 3166-1

iso-country-lookup
Read-onlyIdempotent

Busca países ISO 3166-1 alfa-2 por código o por nombre en español o inglés (sin importar tildes, coincidencia parcial) y devuelve código, ambos nombres y la bandera. Nombres del CLDR de Unicode incluido en Node.js; 249 códigos. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: buscar códigos de idioma ISO 639-1 de dos letras por código o por nombre en español o inglés (iso-language-lookup). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Looks up ISO 3166-1 alpha-2 countries by code or by name in Spanish or English (accent-insensitive, partial match) and returns the code, both names and the flag emoji. Names come from the Unicode CLDR data bundled with Node.js; 249 codes. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (integer; optional; default 10; min 1; max 50).
queryYesCode (CO) or name (Colombia, alemania, United States…) (string; required; at least 1 chars; up to 80 chars).

Output Schema

NameRequiredDescriptionDefault
countNo
sourceNo
resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / query / examples
      Added value: +[
      +  "co"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Looks up ISO 3166-1 alpha-2 countries by code or by name in Spanish or English (accent-insensitive, partial match) and returns the code, both names and the flag emoji. Names come from the Unicode CLDR data bundled with Node.js; 249 codes. When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: looking up ISO 639-1 two-letter language codes by code or by name in Spanish or English (iso-language-lookup). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so restating 'sin efectos secundarios' earns nothing. The description does add real context beyond annotations: CLDR-sourced names, 249 codes, determinism, and explicit limits (1 s per call, 1 MB result). The 'JSON input up to 64 KB' limit is suspicious boilerplate since the tool takes a string query, which slightly muddies the picture.

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?

The content is front-loaded and useful, but the same text is delivered twice (full Spanish block then full English block) plus a self-referential pointer to 'inputSchema.description'. That duplication roughly doubles length without adding information, and the structured-data 'Cuándo' sentence is filler.

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 values need not be explained, yet the description still names them (code, both names, flag emoji). Coverage of source data, cardinality, matching rules, side effects and limits is sufficient for an agent to call this correctly on the first try.

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 baseline is 3, but the description adds matching semantics the schema does not state: accent-insensitivity, partial matching, and that names are accepted in Spanish or English. It says nothing about the `limit` parameter's behavior (truncation vs. ranked results), which is the one remaining gap.

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 (look up ISO 3166-1 alpha-2 countries) plus the lookup key modes (code, Spanish/English name, accent-insensitive, partial match) and the returned fields. It explicitly separates itself from the sibling iso-language-lookup, so an agent can pick the right tool without opening either 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?

The 'No para' clause names the alternative (iso-language-lookup) and the exact condition that selects it, which is strong routing guidance. The 'Cuándo' clause, however, is generic boilerplate about transforming/comparing structured data and does not describe a concrete country-lookup scenario, so the positive case is weaker than the negative one.

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