Skip to main content
Glama

Aigentra x402 API

ai_translate

Read-only

Machine translation between English, Indonesian, Japanese, Chinese, Korean, Arabic, Spanish, French, German, Portuguese, Russian, Thai, Vietnamese and Malay (open M2M100 model; good for short sentences, quality varies on long or idiomatic text). Text up to 1,500 characters. Price $0.005 USDC per call (x402, Base).

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>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "ai_translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget language code
fromYesSource language code (en, id, ja, zh, ko, ar, es, fr, de, pt, ru, th, vi, ms)
textYesText to translate (max 1500 chars)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds material facts not in the schema: the 1,500-character input ceiling, the open M2M100 model's quality profile, and — critically — that each call costs $0.005 USDC via x402 on Base. That pricing/payment disclosure is exactly the kind of operational context an agent needs before invoking. It does not say what happens on over-limit input or on unsupported language codes.

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?

A single dense paragraph that front-loads the capability, then limits, then cost — every sentence carries information. The long language list is somewhat redundant with the schema's code enumeration and could be trimmed.

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 simple 3-parameter, all-required, non-destructive tool with no output schema, the description covers capability, input limits, model quality, and payment mechanics. The only omission is any statement of what the response contains, which is a minor gap for a translation call.

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%, so the three parameters and their language-code list are already documented. The description's language enumeration largely restates what the schema's 'from' field provides, adding no syntax, casing, or fallback behavior beyond it. Baseline 3 applies when the schema carries the parameter burden.

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?

The description names a specific verb+resource (machine translation) and enumerates the supported language set, plus the underlying model. No sibling tool (embeddings, ai_summarize, wiki_summary) overlaps with translation, so an agent can identify this immediately.

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?

It gives a concrete quality context: 'good for short sentences, quality varies on long or idiomatic text', which tells the agent when this tool is a sound choice. It stops short of naming alternatives or explicit when-not conditions, so it is clear context without 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.