Skip to main content
Glama

Translate

translate

Translate content into another language, using the tenant's translation cache (a cached translation costs nothing). Either pass free text, or entity_type+entity_id+field of a stored record (page|news|event|knowledge|document) to translate and cache that field. Never translates ids, e-mails, urls or phone numbers.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target_lang": "<target_lang>"
    },
    "name": "translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoFree text to translate (use this OR entity_type+entity_id+field)
fieldNoField name of the record, e.g. title, excerpt, content_json
entity_idNo
entity_typeNopage|news|event|knowledge|document
source_langNoOptional source language code; translation is skipped when it equals target_lang
target_langYesTarget language code, e.g. en, fr, es, pt
target_tenant_idNoPlatform super-admins only: operate on this tenant instead of your own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false. The description supplies the missing why: the call writes to the translation cache ('translate and cache that field') and discloses a cost model ('a cached translation costs nothing'), which explains both the non-read-only and non-idempotent hints. It does not describe the response payload, but the side-effect disclosure is substantive.

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 dense sentences with the primary capability and cache benefit front-loaded, followed by the two input modes and the exclusion. No redundant restatement of the title or name.

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?

With 7 parameters, no output schema, and a write side effect, the definition covers inputs well but never says what comes back (translated string? per-field map? cache-hit flag?), which matters for an agent chaining the result. The cost and caching disclosures partially compensate, but the return contract 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?

Schema coverage is already 86%, so the baseline is 3; the description adds the mutually exclusive mode framing (text vs. entity_type+entity_id+field) and names which record types are valid targets, plus the class of content deliberately left untranslated. It does not elaborate source_lang/target_lang format or target_tenant_id, but the schema covers those.

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) plus the resource (content) and the mechanism (tenant translation cache), and immediately enumerates the two input modes. An agent knows exactly what the tool does and what it produces a translated variant of.

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?

Explicitly tells the agent to either pass free text OR entity_type+entity_id+field for a stored record, and adds a clear exclusion ('Never translates ids, e-mails, urls or phone numbers'). It lacks an explicit when-not-to-use-this-tool-instead clause, but no transliteration sibling exists so the gap is minor.

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