Skip to main content
Glama

Agent Toolbox

Translate Text

translate_text
Read-only

Translate text (up to 5,000 characters) between 100 languages with M2M100 1.2B. Costs USD 0.002 per call, paid with x402 (USDC on Base); calls that fail are not charged.

Input Schema

NameRequiredDescriptionDefault
textYes
source_langNoDefault english
target_langYesLanguage name or code, e.g. french or fr

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, non-idempotent, and non-destructive behavior. The description adds valuable context annotations don't cover: per-call pricing, the x402/USDC payment mechanism, and that failed calls are not charged. It stops short of describing return shape or latency, though the latter is minor.

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 tight sentences, front-loaded with the core action and scope, with pricing as the secondary clause. No wasted words.

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 three-parameter tool with no output schema, the description covers limits, model, cost, payment, and failure billing, which are the main non-obvious facts. It leaves output format and source-language handling implicit, but those are either obvious or covered by the schema.

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

Parameters4/5

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

Schema coverage is 67%; the description adds the 5,000-character text limit and the 100-language scope for language parameters, which the schema only partially conveys. It does not explain source-language inference behavior, but adds real meaning beyond the schema.

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 (translate text), names the model (M2M100 1.2B), and gives scope (100 languages, 5,000 character limit). This clearly distinguishes it from siblings like summarize and embed_text.

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?

The purpose implies when to use it, but there is no explicit guidance on when to choose it versus alternatives such as summarize or embed_text, and no stated prerequisites beyond the cost line. Usage is inferred rather than instructed.

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