Skip to main content
Glama

translate_text

Translate text between 13+ languages with an LLM. Arabic-first quality, with formality control (formal/informal) and optional context to disambiguate meaning. Handles both short dictionary-style word lookups and full documents. Returns the translation and, when available, alternative phrasings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to translate.
api_keyNoOptional key (nsk_live_...). Auto-provisioned if omitted.
contextNoOptional background text that improves accuracy (it is not translated).
formalityNoOptional register for the output.
target_langYesTarget language, as a name or code (e.g. English, Arabic, ar, ja, fr).

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description must fully convey behavioral traits. It discloses that it returns translations and alternative phrasings, mentions auto-provisioned API keys, and notes formality control. However, it does not address rate limits, logging, or whether it is read-only (though translation is typically non-destructive).

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?

The description is a concise three-sentence paragraph that front-loads the main purpose and key features. Every sentence adds value without redundancy.

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?

The description covers the primary purpose, supported features, and return value (translation plus optional alternatives). For a tool with no output schema, this is adequate. However, it could improve by mentioning error handling or the list of supported languages.

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 the baseline is 3. The description adds some value by explaining the 'context' parameter's role in disambiguation and the 'formality' parameter's register control, but does not significantly augment the schema descriptions for other parameters.

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 clearly states the tool translates text between 13+ languages, highlighting Arabic-first quality, formality control, and context support. This distinguishes it from sibling tools like ocr_and_translate (which handles images) and extract_document (which extracts text from documents).

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?

The description provides clear context for when to use the tool (text translation, both short lookups and full documents) but does not explicitly state when not to use alternatives. It implies that for text without images this tool is appropriate, but lacks direct exclusions.

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.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool has a clear, distinct purpose: key provisioning, structured extraction, usage checking, combined OCR+translation, plain OCR, and translation. No overlap that would confuse an agent.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with underscores (e.g., create_api_key, ocr_image, translate_text). Even the compound name 'ocr_and_translate' fits the pattern.

Tool Count5/5

With 6 tools, the server is well-scoped for an OCR service, covering key management, usage monitoring, multiple OCR modes, structured extraction, and translation without being over-fragmented.

Completeness4/5

The tool set covers core OCR workflows well, but lacks a tool for revoking API keys or listing existing keys, which is a minor gap for full lifecycle management.