Skip to main content
Glama

List available interface locales

list_languages
Read-onlyIdempotent

List available interface locales

Returns the user interface locales the platform ships, for populating a language picker or for validating a value before writing it to a profile or an agent. The list is read from the locale directories on disk, so it reflects the running build rather than a database table; reseller-specific locale folders are excluded. If that directory cannot be read the handler falls back to en and de instead of failing. Note two things about the shape: the response is a bare JSON array, not the usual { data: [...] } envelope, and each entry carries only a code, with no display name. The route requires a valid API key but checks no scope.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description adds substantially more: the list comes from locale directories on disk so it reflects the running build, reseller-specific folders are excluded, and unreadable directories fall back to `en` and `de` rather than erroring. It also discloses the auth profile (valid API key required, no scope check), which is behavior no annotation conveys.

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 is front-loaded in the first clause and the remaining sentences each add distinct information (source of truth, exclusions, fallback, response shape, auth). It is dense but slightly long, with the 'Note two things about the shape' framing adding a little scaffolding weight.

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?

There is no output schema, and the description compensates by documenting the return shape precisely: a bare JSON array rather than a `{ data: [...] }` envelope, entries containing only a `code` with no display name. Combined with the fallback and auth notes, nothing an agent needs to call or interpret this tool is missing.

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?

The tool takes zero parameters, so there is nothing to disambiguate and the baseline is 4. The description correctly implies no input is needed and spends its space on response shape instead.

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 specific verb and resource ('List available interface locales') and immediately narrows the scope to 'user interface locales the platform ships', which separates it from the similarly named sibling list_agent_languages. It also names concrete use cases (language picker, validating a value before writing to a profile or agent), so an agent knows exactly what data it gets.

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 gives two explicit when-to-use conditions: populating a language picker and validating a locale value before persisting it. It does not name an alternative tool or state when not to use it, which keeps it short of a 5.

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.