Skip to main content
Glama

Localize text

localize_text

Adapt supplied text for a target language and audience, including culturally appropriate phrasing, tone, and regional conventions rather than literal translation. Use for localized product UI, marketing copy, documentation, or customer communications; use translate_text for a closer translation. Set required targetLanguage and optionally locale (e.g. 'es-MX'), audience, and tone. Returns JSON containing localized text, targetLanguage, locale, provider, and model. Requires an active trial or Pro. Review sensitive, legal, and technical output with a qualified local reviewer.

Input Schema

NameRequiredDescriptionDefault
textYesOriginal nonempty copy to adapt for the target culture, region, and audience.
toneNoDesired writing style, such as 'friendly', 'formal', or 'concise'.
localeNoOptional regional locale, such as 'es-MX', 'fr-CA', or 'en-GB'; affects regional spelling and conventions.
audienceNoIntended readers or customers, e.g. 'first-time mobile app users' or 'enterprise developers'.
targetLanguageYesRequired output language name or code, e.g. 'Arabic' or 'ar'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / audience / description
      Added value: +"Intended readers or customers, e.g. 'first-time mobile app users' or 'enterprise developers'."
    • addedInput schema / properties / locale / description
      Added value: +"Optional regional locale, such as 'es-MX', 'fr-CA', or 'en-GB'; affects regional spelling and conventions."
    • addedInput schema / properties / targetLanguage / description
      Added value: +"Required output language name or code, e.g. 'Arabic' or 'ar'."
    • addedInput schema / properties / text / description
      Added value: +"Original nonempty copy to adapt for the target culture, region, and audience."
    • addedInput schema / properties / tone / description
      Added value: +"Desired writing style, such as 'friendly', 'formal', or 'concise'."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the plan prerequisite ('Requires an active trial or Pro'), the return shape, and a review caveat for sensitive/legal/technical output. It omits rate limits and reversibility, but for a non-destructive text adaptation tool those gaps are 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?

Front-loads the differentiating purpose in the first sentence, then usage, params, return, and prerequisites in sequence. Dense but each sentence earns its place; slightly long with the trailing reviewer caveat, though that adds real value.

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?

No output schema exists, and the description compensates by enumerating the returned JSON fields (localized text, targetLanguage, locale, provider, model). Combined with the plan requirement and review caveat, an agent has everything needed to call and interpret this tool.

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 schema already documents all five parameters with examples. The description reinforces required vs optional (targetLanguage required; locale, audience, tone optional) but adds no syntax or format detail beyond what the schema provides, 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+resource (adapt text for localization) and immediately distinguishes itself from literal translation, naming the sibling translate_text as the alternative. An agent can route between localize_text and translate_text 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use list (localized product UI, marketing copy, documentation, customer communications) and an explicit when-not with the named alternative ('use translate_text for a closer translation'). Nothing is left to inference.

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