Skip to main content
Glama

Translate text

translate
Read-only

Converts text between 100+ languages, auto-detecting the source and preserving formatting, names, numbers, and URLs; split text over 2,000 characters at paragraph breaks.

Instructions

Translate text between any two languages (100+). Detects the source language (or pass source_lang). Keeps formatting, names, numbers and URLs intact. Up to 2,000 characters per call; longer text is refused uncharged, so split it at paragraph breaks. Costs $0.003 per call.

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": {
      "text": "<text>",
      "target_lang": "<target_lang>"
    },
    "name": "translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to translate (up to 2,000 characters).
source_langNoSource language, if known. Detected automatically when left out.
target_langYesLanguage to translate into, as a name or code: "Spanish", "es", "Japanese", "pt-BR".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, but the description adds real behavioral context: per-call pricing ($0.003), a hard 2,000-character ceiling, the fact that over-limit input is refused without charge, and that formatting, names, numbers and URLs survive translation. Those are the facts an agent needs before deciding to call or split input.

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?

Four short sentences, front-loaded with capability, then behavior, then the limit with a workaround, then cost. No sentence is redundant and the actionable limit guidance is placed with the constraint rather than buried.

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?

For a three-parameter, single-purpose tool with no output schema, the definition covers capability, optionality, fidelity guarantees, hard limits with a remedy, and cost. Nothing an agent needs in order to call it correctly or budget for it is missing.

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 all three parameters are already documented, including the name-or-code format for target_lang. The description adds only the auto-detect fallback for source_lang and restates the 2,000-character bound already present as maxLength, so the 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 and resource ("Translate text between any two languages (100+)") and immediately narrows scope with source-language auto-detection. An agent can tell this apart from siblings like classify_text or ask_llm without opening any schema.

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?

Gives concrete operational guidance: omit source_lang to auto-detect, pass it when known, and split text longer than 2,000 characters at paragraph breaks. It stops short of naming an alternative tool for cases this one refuses, so there is no explicit when-not/use-instead routing.

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