Skip to main content
Glama

ai_translate_batch

Read-only

Batch translator for app strings (placeholder-safe) — Translate up to 25 short strings (UI text, product copy, notifications) into one target language in a single call. texts = JSON array of strings or strings separated by ||; to = target language code or name. Optional from=, tone= (formal, casual...) and context= (what the strings are for). Every translation is checked offline: placeholders ({name}, {{count}}, %s, %1$s, %.2f), HTML tag names, URLs and digit runs must survive; identical-to-source output and odd length ratios are flagged. Returns per-string status, issues, a source-to-translation map and a verdict OK / MOSTLY_OK / REVIEW. Workers AI (Llama 3.3 70B). Price: $0.012 USDC (Base, 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": {
      "texts": "<texts>",
      "to": "<to>"
    },
    "name": "ai_translate_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYese.g. es
textsYese.g. Hello {name}, you have %d new messages||Save changes||Your order ships in 3 days

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 readOnly/openWorld annotations it discloses a lot an agent could not otherwise know: an offline validation pass with specific placeholder patterns checked ({name}, %s, %1$s, %.2f), HTML/URL/digit preservation, identical-output and length-ratio flagging, the verdict vocabulary, the backing model, and a $0.012 USDC x402 price. Payment cost and validation semantics are exactly the kind of behavior annotations cannot express.

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?

Purpose, input formats, validation guarantees, return shape and price are all front-loaded in a compact block with no filler sentences. It runs long for a two-parameter tool mainly because of the placeholder enumeration, which is arguably justified but could be tightened.

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 carries the return contract and does so adequately: per-string status, issues, source-to-translation map and an OK/MOSTLY_OK/REVIEW verdict. The only completeness defect is the phantom optional parameters, which are described but absent from the schema.

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 texts and to are already documented, and the description usefully adds the '||' alternative delimiter and 'language code or name' flexibility. However, it advertises optional from=, tone= and context= parameters that do not exist in the input schema, which is a real mismatch that could mislead an agent at call time.

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 names a specific verb and resource ('Batch translator for app strings') and bounds the scope precisely: up to 25 short strings, one target language, single call. That scope implicitly separates it from translation siblings like ai_subtitle_translate or ai_translate_json, but no sibling is 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The guidance is clear about context — UI text, product copy, notifications, max 25 strings, one target language per call — so an agent can judge fit. It stops short of any when-not or explicit alternative routing (e.g. 'use ai_translate_json for structured payloads'), leaving the comparison 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.

Resources