Skip to main content
Glama

Translate text

translate
Read-only

Translates up to 8000 characters into the target language. The source language is detected automatically. Markdown, line breaks and placeholders are preserved. Paid tool: $0.008 per call in USDC via x402 at POST https://x402-tools.com/v1/translate. Calling it here returns the endpoint, price and how to pay.

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": "<target>"
    },
    "name": "translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to translate (max 8000 characters).
sourceNoOptional source language. Detected if omitted.
targetYesTarget language, as a name or code (e.g. 'Dutch' or 'nl').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnly and openWorld; the description adds material behavior: the 8000-character cap, automatic source detection, markdown/line-break/placeholder preservation, per-call pricing, and critically that invocation returns endpoint, price and payment instructions instead of a translation. The only gap is what the eventual translation payload looks like, which is moot since no output schema exists.

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?

Four compact sentences, front-loaded with capability then constraints then payment mechanics, with no filler. Slight deduction because the opening 'Translates...' statement sits in mild tension with the later 'Calling it here returns the endpoint', which an agent could misread as translate-now.

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 three-parameter, no-output-schema tool this covers capability, constraints, cost and actual return behavior, which is what an agent needs to decide whether to call it. Missing only a pointer to a paid-call workflow or alternative payment-check tool.

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 description coverage is 100%, with each of text, source and target already documented, so the schema carries the parameter burden. The description adds only the length limit and auto-detection note, both of which duplicate the schema. 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?

Opens with a specific verb and resource ('Translates up to 8000 characters into the target language'), which immediately distinguishes it from every sibling (none of which are translation tools). The scope limit and auto-detection add precision rather than restating the name.

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?

Cost ($0.008/call), payment rail (USDC via x402) and the fact that calling here returns the endpoint rather than a translation are stated, implying this is a discovery step. However, no sibling is named (e.g. x402_check or x402_preflight) and no explicit when/when-not rule is given.

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