Skip to main content
Glama

Translate text (M2M100, 100 languages)

ai_translate

Translates text between about 100 languages with Meta M2M100 1.2B: pass the text and the target language (ISO code like es, fr, de, zh, ja, or its English name); the source language is detected if omitted. Long texts are split by sentence, so paragraphs keep their order and line breaks. Up to 2000 characters per call. Pairs with speech-to-text: translate a transcript, then read it aloud. You are only charged if the translation is delivered. No API key, no account. $0.005 per call, paid over x402 (USDC).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesTarget language: ISO code (es, fr, de, zh, ja...) or English name (spanish).
fromNoOptional source language; detected when omitted.
textYesWhat to translate, up to 2000 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/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 so richly: it discloses the 2000-character cap, sentence-level splitting that preserves order and line breaks, that billing occurs only if the translation is delivered, the $0.005 price, the x402/USDC payment path, and that no API key or account is needed. These are exactly the traits an agent needs to invoke a paid metered tool safely.

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?

Front-loads purpose and the two core arguments before secondary facts, and each later sentence (chunking, limits, pricing, auth) carries real information. It is on the long side, but virtually every sentence earns its place for a paid external API call.

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?

Covers constraints, cost, and auth for a 3-parameter tool with no output schema and no annotations, which is the right coverage level. It does not describe the response shape at all (no output schema to lean on), leaving a small gap about what a delivered translation looks like.

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 baseline is 3, and the description largely restates the schema (target as ISO code or English name; source detected when omitted) rather than adding new syntax or format detail. The 'es, fr, de, zh, ja' examples appear in both places, so marginal added value only.

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?

States a specific verb and resource ('Translates text') plus the engine (Meta M2M100 1.2B) and scope (~100 languages), which cleanly distinguishes it from siblings like ai_transcribe and ai_speech. An agent can tell what this does without opening the schema.

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 concrete workflow cue ('Pairs with speech-to-text: translate a transcript, then read it aloud') and explains source auto-detection, so the agent knows the typical context. It stops short of explicit when-not guidance or naming alternatives (e.g. llm_completion could also translate), so it is clear context without exclusions.

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