Skip to main content
Glama

util_locale

Read-only

Locale info (CLDR) — Everything an app or agent needs to localize for a BCP 47 locale, offline from Unicode CLDR: canonical tag, likely script/region (maximize/minimize), language/region/script names in English (or display=fr etc.) and in the native language, text direction, first day of week + weekend days, 12/24-hour clock, default and available calendars, numbering systems, collations, IANA time zones for the region, region currency (ISO 4217, name, local symbol), decimal/group separators, date/time patterns (e.g. M/d/yy, dd.MM.yy), plural categories (cardinal + ordinal), measurement system, paper size (Letter vs A4), and formatted samples (number, percent, compact, currency, dates, time, relative time, lists). Params: locale= (required; en-US, pt-BR, zh-Hant-TW, sr-Latn-RS, ja-JP-u-ca-japanese; underscores accepted; comma-separate up to 5), display= (language for names, default en). 400 on a malformed tag. Price: $0.001 USDC (Base, via x402).

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": {
      "locale": "<locale>"
    },
    "name": "util_locale"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeYesde-CH

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint, so safety is covered; the description still adds real context: the data is served offline from Unicode CLDR, malformed tags return 400, and calls cost $0.001 USDC on Base via x402 (a payment prerequisite worth flagging). It does not describe pagination or response envelope, but for a single-lookup read tool that is minor.

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?

The purpose and key operational facts are front-loaded, and the long field enumeration is mostly justified because there is no output schema to convey returns. It is still one dense run-on sentence, and a short field list or line breaks would scan better.

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?

With no output schema, the description does the heavy lifting and does it well: it covers return contents, input formats and batching, error behavior, and cost. The only completeness gap is the phantom display parameter, which is a schema mismatch rather than missing information.

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% but the schema entry is nearly content-free ('de-CH'), so the description carries real weight: BCP 47 syntax, underscore tolerance, and comma-separated batching up to 5 tags. One defect: it documents a display= parameter that does not exist in the input schema, which could mislead an agent composing a call.

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-like resource (Locale info / CLDR data for a BCP 47 locale) and then enumerates the concrete fields returned, so an agent knows exactly what it gets. It is clearly distinguishable from the numeric/string utility siblings, none of which overlap with locale data.

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 by 'Everything an app or agent needs to localize' and by the rich example tags (en-US, pt-BR, sr-Latn-RS, ja-JP-u-ca-japanese), which show the intended inputs. However, there is no explicit when-to-use statement or exclusion, and no alternative is named for the cases this tool doesn't cover.

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