Skip to main content
Glama

DevX Agent Hub

Translate text (100 languages)

translate_text
Read-onlyIdempotent

Translate text / machine translation between 100 languages (M2M100 1.2B) with automatic source-language detection. Up to 5,000 characters. LibreTranslate-style alias at /v1/translation. $0.001 USDC per started 1,000 characters on Base via x402; failures are not charged. Price: $0.001 per started 1,000 characters. First call returns the x402 PaymentRequired (no charge); retry with payment in _meta["x402/payment"].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to translate
requestKeyNoOptional idempotency key: same payer + requestKey + input returns the stored result without a second charge (7 days).
source_langNoSource language ISO 639-1 or "auto" (default)
target_langYesTarget language, ISO 639-1 (e.g. de, fr, es, ar, hi, ur, zh, ja)
x402_paymentNoOptional. Base64 x402 v2 PaymentPayload, for clients that cannot set params._meta["x402/payment"]. Omit on the first call to get the exact price.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly, idempotent, openWorld): it discloses the 5,000-character cap, the exact price ($0.001 per started 1,000 characters on Base via x402), that failures are not charged, and that the first call is a free PaymentRequired probe. This is exactly the kind of cost/failure/retry context an agent needs before spending money.

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 purpose and limits, then pricing and payment mechanics – a sensible order. The price is stated twice ('$0.001 USDC per started 1,000 characters ... Price: $0.001 per started 1,000 characters'), which is one wasted sentence in an otherwise dense block.

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?

For a paid, annotation-covered tool with full schema coverage and no output schema, the description covers cost, retry semantics, size limits and idempotency. It leaves the shape of the successful response (where the translated text appears) unstated, which is the one gap an agent might hit after payment succeeds.

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; the description still adds value by explaining that source-language detection is automatic (matching the source_lang default) and by clarifying the two-step payment parameter flow via _meta["x402/payment"]. It does not add unit/format detail beyond what the schema notes for requestKey idempotency.

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?

Opens with a specific verb+resource ('Translate text / machine translation between 100 languages'), names the underlying model (M2M100 1.2B) and the auto-detect behavior, which is unambiguous. However, it never distinguishes itself from the sibling translate_text_demo, so the agent has no textual basis for choosing between the paid and demo variants.

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?

Gives a clear operational sequence for the paid flow (first call returns PaymentRequired, retry with _meta["x402/payment"]), which is genuinely useful call guidance. But there is no guidance on when to choose this over translate_text_demo, nor any exclusion or precondition statement beyond the payment handshake.

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