Skip to main content
Glama

Translate text API: any language to any language with detection

ai_translate_text
Read-only

Translate text between languages with an open LLM (gpt-oss-20b; M2M100 for less common languages): the source language is detected, the target is an ISO code such as en, sv, de, fr, es, zh or ja, and long text is split at sentence ends and checked so a cut-off translation is never charged. Use to localise messages, documents, product copy and support replies. Example: text=Payment received, thank you!, to=sv. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations it discloses billing ($0.01/call via x402 USDC or card key, first 25 free, failed calls free), that repeats are charged (consistent with idempotentHint=false), and the long-text handling that splits at sentence ends and verifies so a cut-off translation is never charged. These are exactly the cost and correctness traits an agent cannot get from structured fields.

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?

It is a single front-loaded paragraph that leads with the operation, then use cases, then cost. The parenthetical model names and pricing clauses make it dense, but each clause carries information an agent would otherwise lack.

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?

With no output schema and three simple parameters, the description covers cost, detection, input limits and long-text handling, which is nearly everything needed to call it correctly. It never states what the response contains (translated text, detected source language), which is the one remaining gap.

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 schema already documents all three parameters; the description mainly restates that the target is an ISO code with a longer example list (en, sv, de, fr, es, zh, ja) and that the source is auto-detected. That adds marginal meaning but no format or validation detail beyond the schema.

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?

The description opens with a specific verb+resource ('Translate text between languages') and names the underlying models and detection behavior, so the agent knows exactly what the call does. It does not differentiate itself from the sibling ai_translate, which leaves ambiguity between two similarly named tools.

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?

It gives concrete when-to-use context ('localise messages, documents, product copy and support replies') plus a worked example (text=Payment received, to=sv), which is clear guidance. There are no exclusions or pointers to alternatives such as ai_translate, so routing between the two translation tools is left 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.