Skip to main content
Glama

Translate Text

translate_text
Read-onlyIdempotent

Translate text between 100+ languages.

Args: text: The text to translate. target_lang: Target language code. source_lang: Source language code; omit to auto-detect.

Returns: dict with the translated text (key: translated_text) and the detected source language if auto-detected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to translate
source_langNoSource language code; omit to auto-detect
target_langYesTarget language code (e.g. 'pt', 'es', 'fr', 'de', 'ja')

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already carry the safety profile (readOnlyHint=true, idempotentHint=true, destructiveHint=false), and the description adds genuine context beyond them: the auto-detect behavior of source_lang and the return shape (dict with translated_text key, plus detected source language when auto-detected). No contradiction with annotations — 'translate' is consistent with readOnlyHint as a non-destructive transform. The description enriches, rather than repeats, the 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.

Conciseness4/5

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

Well-structured: a one-line purpose statement followed by labelled Args and Returns sections, with the purpose front-loaded. The Returns section earns its place by disclosing output format absent from the schema (no output schema exists). Minor deduction for the Args block redundantly restating schema text, which adds bulk without value.

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?

Since no output schema exists, the description carries the burden of explaining return values — and it does, specifying the dict key and the conditional detected-language behavior. For a low-complexity tool (3 flat params, no nesting), this is nearly complete. Minor gaps: language code format is only implied by examples, and error behavior on invalid target_lang is unspecified, but these are marginal against an otherwise adequate definition.

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 three parameters. The description's Args section mirrors the schema nearly verbatim (e.g., 'source_lang: Source language code; omit to auto-detect' duplicates the schema text), adding no new meaning. Per the baseline rule, with full schema coverage a 3 is appropriate — the schema does the heavy lifting and the description adds no marginal parameter insight.

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 ('Translate'), resource ('text'), and scope ('between 100+ languages'). The purpose is unambiguous and clearly distinguishable from all siblings — none of the 21 sibling tools perform translation, so an agent can confidently select it.

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 Args section implies the usage pattern (provide text + target lang, omit source to auto-detect), but the description never explicitly routes the agent to or away from alternatives. Notably, sibling detect_language overlaps with the auto-detect behavior — the description doesn't tell the agent that pure language identification should use detect_language instead of translate_text. This is a missed opportunity for a tool with a directly overlapping sibling.

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

A3.6/5.0
Disambiguation4/5

Most tools map cleanly to distinct capabilities, and the descriptions make the intended use clear. A few adjacent pairs—extract_entities vs link_entities_to_wikidata and detect_pii vs detect_conversational_pii—require careful selection, but they are distinguishable by their stated outputs.

Naming Consistency4/5

Names are uniformly lowercase snake_case and mostly follow a verb_object pattern, such as analyze_*, detect_*, extract_*, summarize_text, and translate_text. A few outliers like aspect_sentiment, fraud_feedback, and knowledge_ingest break the verb-first feel, but the overall pattern remains predictable.

Tool Count3/5

At 22 tools, this is on the heavy side of the borderline range. Each tool has a distinct job, but the mix of core NLP, safety, fraud, health-checking, and knowledge-base management makes the surface feel sprawling rather than tightly scoped.

Completeness3/5

The core NLP coverage is broad: sentiment, toxicity, PII, entities, QA, summarization, translation, and groundedness are all present. However, the knowledge-base tools support ingest/list/query but no delete or update, creating a dead end when documents need correction or removal.

Resources