Skip to main content
Glama

Alomo: Lookups

Language, country, script and currency code lookup

locale_code_lookup
Read-onlyIdempotent

Looks up ISO codes using Unicode CLDR data: language tags (fr, pt-BR, zh-Hant), country/region codes (DE, 419), scripts (Cyrl) and currencies (JPY). Returns the name in any display language, validity, canonical form, and for languages the native name and likely script and region. Can also search by English name to find a code.

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": "locale_code_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoOptional: language, region, script or currency (default: guessed from each code's shape).
codesNoCodes to look up, e.g. ['pt-BR', 'DE', 'Cyrl', 'JPY'].
searchNoFind codes by English name instead, e.g. 'Portug'.
display_languageNoLanguage for the names, e.g. 'de' (default 'en').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds useful behavior beyond that: it names the underlying dataset (CLDR) and describes exactly what each result carries — display name in a chosen language, validity, canonical form, native name, likely script and region — which is the main thing annotations cannot convey.

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?

Two sentences, tightly front-loaded with the resource and scope before the return-value detail. The code enumerations in the first sentence are dense but each earns its place by showing which input shapes are accepted; the parenthetical detail about native names is slightly clunky but informative.

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 correctly spends its second sentence defining return content, and annotations cover the safety profile. Minor omissions remain: the 25-item batch cap exists only in the schema, and invalid-code error behavior is not distinguished from the returned 'validity' flag.

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 four parameters already carry their own descriptions, including the default-guessing behavior of 'kind'. The description adds only implicit context (that 'display_language' controls the returned names) and concrete example values that largely mirror the schema examples, so baseline 3 applies.

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 (looks up), a specific resource (ISO codes via Unicode CLDR), and enumerates all four code families with concrete examples (fr, pt-BR, zh-Hant, DE, 419, Cyrl, JPY). No sibling tool in the list does code resolution, and the description makes the domain unmistakable.

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?

Clearly indicates the two usage modes: bulk lookup by code versus finding a code from an English name ('Can also search by English name to find a code'). It does not state whether 'codes' and 'search' are mutually exclusive or what happens if both are supplied, so a small inference is left to the agent.

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