Skip to main content
Glama

Translate text between 19 languages (Korean, Japanese, Chinese, English, European), source auto-detected by script

ai_translate

Use when an agent must translate text (replies, documents, transcripts). Input: text (max 1500 chars, GET or POST JSON), target language code, optional source (auto-detected for Korean, Japanese, Chinese, Cyrillic, Arabic, Hindi, Thai; Latin script defaults to English). Output: translatedText, source, target, model. Not stored. Example: ?text=Hello%2C%20how%20are%20you%3F&target=ko Price: $0.002 USDC (Base or Solana) via x402.

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

Input Schema

NameRequiredDescriptionDefault
textYesText to translate (1-1500 chars). Empty or longer → 400 before payment (not charged)
sourceNoSource language (default auto: detected from the script; give it for Latin-script languages other than English)
targetYesTarget language code

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / text / description
      Previous value: -"Text to translate (1-5000 chars). Empty or longer → 400 before payment (not charged)"New value: +"Text to translate (1-1500 chars). Empty or longer → 400 before payment (not charged)"
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that nothing is stored, that input is capped at 1500 chars, that empty/oversized input returns 400 before payment (not charged), and that invocation costs $0.002 USDC via x402 on Base or Solana. It omits rate limits and other error behaviors, so it is not exhaustive.

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

Conciseness5/5

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

Telegraphic but tightly organized: trigger, input, output, retention, example, price — each sentence earns its place and the most decision-relevant facts (what it does, cost, limits) come first. No filler wording.

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, the description compensates by listing the return fields (translatedText, source, target, model). For a 3-param tool it covers limits, retention, payment, and detection rules; only the valid target-code set is missing.

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 already 100%, so baseline is 3; the description adds invocation-level meaning by showing a concrete GET query-string example and clarifying that Latin script defaults to English while other scripts auto-detect. It never enumerates the valid target language codes, which is the one meaningful semantic gap.

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+resource ('translate text') and scopes it to concrete agent artifacts (replies, documents, transcripts). The title further pins down language coverage and script-based auto-detection, which cleanly separates it from siblings like ai_transcribe or ai_embed.

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?

Gives a clear trigger condition ('Use when an agent must translate text') and notes the case where the source must be supplied explicitly (Latin-script languages other than English). It does not name alternatives or exclusions, so it stops short of full routing guidance.

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