Skip to main content
Glama

translate_text

Read-only

$0.002 via x402: Translate one text (up to 2,000 characters) from a source language to a target language (ISO 639-1 codes such as en, es, fr, de, zh, ja, ar; 100 supported, list at https://translate.agentexchange.work/languages.json). Returns the translation, the languages and the character count. Pay 0.002 USDC through https://store.agentexchange.work/gw/translate/text?text=Hello+world&from=en&to=es Via the Agent

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

Input Schema

NameRequiredDescriptionDefault
toYestarget language code
fromYessource language code
textYestext
x_paymentNoSigned x402 payment payload (optional; without it the answer is the price)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.6/5.0
Behavior4/5

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

With readOnlyHint and openWorldHint already declared, the description still adds genuine value: it discloses the $0.002 USDC price, the x402 payment mechanism, the character cap, and the exact return fields. That is meaningful economics and side-effect context the annotations cannot express; only the vague trailing 'Via the Agent' fragment is unclear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and price are correctly front-loaded, but the body crams a URL, ISO code examples, a second URL with query-string examples, and an orphaned 'Via the Agent' fragment into one run-on block. The payment example URL could be trimmed without losing meaning.

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 four-parameter, non-destructive translation tool with no output schema, the description covers cost, inputs, limits, and returned fields adequately. The only real gap is the handling of the optional x_payment payload when absent.

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 baseline is 3, and the extra detail (ISO 639-1 examples, a 100-language list URL) is useful but mild. The description does not explain x_payment behavior or formatting beyond the schema's own hint.

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 one text ... from a source language to a target language') and bounds the input at 2,000 characters, plus it names the output fields. 'One text' implicitly separates it from the batch sibling translate_batch, though that sibling is never named explicitly.

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?

There is useful context about pricing and the x402 payment flow, but no explicit statement of when to choose this over translate_batch or read_text, and no note on what happens when x_payment is omitted beyond the schema's parenthetical. Usage is implied rather than prescribed.

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.