Skip to main content
Glama

Translate text with AI

ai_translate
Read-only

Translate text into a target language (en, zh-CN, ja, ko, fr, de, es) with the platform AI. Use this when the user wants a translation; pass extracted PDF text first if needed.

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
textYes
targetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered structurally. The description adds only "with the platform AI," which conveys that this is a hosted model call, but says nothing about latency, cost/credits (credits_usage is a sibling), or how non-idempotent repeated calls behave.

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?

Two compact sentences with the purpose front-loaded and the PDF prerequisite second. The enumerated language list duplicates the schema enum verbatim, which is a small amount of wasted space.

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?

For a two-parameter tool with no output schema, the description covers when to call it and the extraction prerequisite, but omits the input length limit, expected return (a translated string), and failure modes. Adequate but with clear gaps.

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 0%, so the description must carry the load. It does restate the target-language enum values and implies text is the source string, but never mentions the 4000-character cap or the minLength=1 constraint, both of which affect whether a call will succeed.

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 (Translate) and resource (text) plus the target-language set, so the agent immediately knows the operation. It does not explicitly contrast itself with the nearby sibling ai_summarize, but the verb alone makes the distinction obvious.

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?

"Use this when the user wants a translation" gives an explicit trigger, and "pass extracted PDF text first if needed" adds a concrete prerequisite pointing at pdf_extract_text. No when-not guidance or alternative tools are named, so it falls short of a 5.

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