Skip to main content
Glama
fabkho
by fabkho

Get Translations

get_translations

Retrieve translation values for specific key paths from a locale. Use '*' to read all locales and get compact summaries without loading entire files.

Instructions

Get translation values for given key paths from a specific locale and layer. Use "*" as locale to read from all locales.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keysYesDot-separated key paths to read. Example: ["common.actions.save", "auth.login.title"].
layerYesLayer name from discover (e.g., "root", "app-admin"). Call discover to discover available layers.
localeYesLocale code, locale file name, or "*" to read all locales. Examples: "en", "en-US", "en-US.json", "*".
compactNoWhen true and locale is "*", returns a compact summary grouped by key instead of per-locale detail. Default: false.
projectDirNoAbsolute path to the Nuxt project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: "/home/user/my-app".
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. The verb 'Get' implies a non-destructive read operation, but the description never explicitly confirms read-only behavior, response format, pagination, or other operational traits. The wildcard note about reading all locales is the only behavioral detail beyond the obvious, which is thin given zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero wasted words. The first sentence states the core purpose and the second adds the single most useful operational tip. Front-loaded and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The schema is rich (100% parameter coverage) and this is a straightforward getter, so the minimal description is mostly adequate. However, with no annotations and no output schema, the description could clarify the response shape or explicitly confirm there are no side effects. It's functional but doesn't compensate for what structured fields don't cover.

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 baseline of 3 applies. The description's wildcard note ('Use "*" as locale to read from all locales') is already captured in the schema's locale parameter description, so the description adds no new parameter semantics beyond the structured fields. Baseline 3 is appropriate.

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 uses a specific verb ('Get') with a specific resource ('translation values for given key paths from a specific locale and layer'). It clearly communicates this is a read operation for specific keys, which distinguishes it from sibling write tools like write_translations. However, it doesn't explicitly differentiate from closest siblings like get_missing_translations or search_translations, leaving some differentiation implicit.

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?

The description implies usage context: 'for given key paths' suggests this is the right tool when you have specific keys in mind rather than broad searches. The explicit tip about using '*' as locale provides practical operational guidance but relates to parameter usage rather than tool-selection guidance versus alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fabkho/the-i18n-kit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server