Skip to main content
Glama

Language batch translate

language.batch_translate
Read-onlyIdempotent

Translate multiple texts into a target language in one call to avoid separate requests and enable multi-market reach.

Instructions

Translate many texts into a target language in one call for multi-market reach. Incurs Cloud Translation API cost per text.

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>",
      "target_language": "<target_language>"
    },
    "name": "language.batch_translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
textsYes
source_languageNo
target_languageYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so safety is covered. The description adds genuinely useful context beyond that: it discloses that each text incurs Cloud Translation API cost, a billing trait the annotations do not convey. It omits batch-size limits and how empty source_language is handled, keeping it below a 5.

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?

Two short sentences with the core action front-loaded and the cost caveat second. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the cost note is a welcome extra. However, for a tool whose parameters are entirely undocumented in the schema, the description leaves meaningful gaps: source_language semantics and any per-call text limits.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden of explaining parameters, and it largely does not. It mentions only "target language"; the texts array shape and especially source_language (default empty, presumably auto-detect) receive no explanation anywhere.

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 ("Translate many texts into a target language") and scopes it as a batch operation ("in one call"), which distinguishes it from the single-text sibling language.translate by implication. It is clear what the tool does, though it never names the alternative 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?

"for multi-market reach" hints at the use case, but there is no explicit when-to-use or when-not-to-use guidance, and no mention of preferring language.translate for a single string. The agent must infer that this is the bulk path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools