Skip to main content
Glama
lingua.direct MCP Server

lingua.direct MCP Server

Official
by invenix

translate_text

Translates a single text string or a batch of up to 50 strings into a target language across 277 languages, using lingua.direct API v2 with automatic or specified source.

Instructions

Translate one text string or a batch of up to 50 strings across 277 languages using lingua.direct API v2.

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": {
      "target": "<target>"
    },
    "name": "translate_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoSingle text to translate (use either text or texts).
textsNoBatch of up to 50 texts to translate (max 20,000 total chars).
sourceNoSource language code (e.g. "en", "nl") or "auto".auto
targetYesTarget language code (e.g. "nl", "es", "de").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden and does disclose the batch ceiling (50 strings) and language coverage (277). However, it omits what actually happens on call: return shape (single string vs array for batches), whether source 'auto' detection has caveats, and any auth or rate-limit context.

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 front-loaded sentence with no filler, leading with the verb and resource and then qualifying capacity. Nothing is repeated 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?

There is no output schema, so the description should say what comes back — especially for the batch case where the result is presumably an array paired with the input. It also says nothing about error behavior for oversized or mixed inputs, leaving a real gap for a 4-parameter tool.

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 all four parameters are already documented in the schema; the description adds only the 50-item batch cap and language count. That is marginal added meaning, so baseline 3 applies.

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 ('one text string or a batch of up to 50 strings'), with concrete scale details (277 languages, API v2). The word 'text' implicitly separates it from translate_audio, though no sibling is named 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?

Usage is only implied: an agent can infer this is for plain-text translation rather than audio, but the description never states when to choose this over translate_audio or transcribe_audio, nor any prerequisites. No exclusions or alternative-routing guidance is given.

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