Skip to main content
Glama

Translate text, translation API: translate text into another language, about 100 languages

ai_translate
Read-only

Translate text into another language with OpenAI's open-weight gpt-oss-20b, detecting the source language. Long text is split at sentence ends and checked, so a cut-off translation is an uncharged 502, never a success. Give the target as an ISO code such as en, sv, de, fr, es, zh or ja; less common languages use Meta's M2M100. Use to localise messages and documents. Example: text=Payment received, thank you!, to=sv. Price $0.01/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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>",
      "to": "<to>"
    },
    "name": "ai_translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget language code, e.g. sv
fromNoSource language code (default: detected)
textYesText, up to 4,000 characters

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / from / description
      Previous value: -"Source language code (default en)"New value: +"Source language code (default: detected)"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true and idempotentHint=false; the description goes beyond them by disclosing the sentence-splitting/validation behavior, that a cut-off result returns an uncharged 502 rather than a false success, and that every call is billed so repeats cost money. That is genuinely useful operational context. It stops short of describing response shape or latency.

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-loaded with the verb and model, then failure semantics, then parameter guidance, then pricing. It is dense but each clause carries information; the payment/billing sentence is long but materially affects whether an agent retries.

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 3-parameter, no-output-schema tool, the definition covers what it does, the failure mode, cost implications for retries, and parameter conventions. An agent can call it correctly and knows not to blindly repeat calls.

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 100%, so the baseline is 3, but the description adds meaning the schema lacks: ISO code examples (en, sv, de, fr, es, zh, ja), the note that less common targets route through M2M100, and confirmation that source detection is automatic unless 'from' is supplied. This is a modest but real improvement over the structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 into another language') and adds implementation detail (gpt-oss-20b, M2M100 fallback), so the agent knows exactly what the tool does. It does not, however, contrast itself with nearby siblings such as subtitles_translate or text_language, so the sibling-differentiation bar for a 5 is not met.

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?

Provides a use case ('Use to localise messages and documents') and a worked example, which implies when the tool applies. It gives no when-not guidance and never names an alternative (e.g. subtitle-specific translation), leaving routing 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