Skip to main content
Glama
lingua.direct MCP Server

lingua.direct MCP Server

Official
by invenix

translate_audio

Transcribes a local audio clip and translates it into a target language, with optional spoken MP3 synthesis and saving.

Instructions

Transcribe and translate a local audio clip (up to 25 MB, 120 seconds), optionally synthesizing and saving spoken audio.

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

Input Schema

NameRequiredDescriptionDefault
sourceNoSource language code or "auto".auto
speechNoReturn spoken TTS audio for the translation.
targetYesTarget language code.
file_pathYesPath to the local audio clip.
output_audio_pathNoOptional path to write the synthesized MP3 audio.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description bears the full behavioral burden, and it usefully discloses the 25 MB / 120 second limits and the optional spoken-audio synthesis. However, it omits important behavior such as whether the operation is synchronous, what the response contains, authentication or permission needs, and file-writing side effects when output_audio_path is used.

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?

The definition is a single front-loaded sentence with no wasted wording. The scope limits and optional synthesis behavior are packed in efficiently without obscuring the main action.

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 five-parameter tool with no annotations and no output schema, the description covers the key input constraints and optional audio saving. It is still incomplete because it does not explain the return values, supported language behavior, or side effects of writing audio to disk.

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 five parameters are already documented in the schema. The description adds the 25 MB and 120 second constraints, but it does not add parameter-specific meaning beyond what the schema provides, matching the baseline for full schema coverage.

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?

The description uses specific verbs (transcribe and translate) and a clear resource (a local audio clip), with useful scope limits of 25 MB and 120 seconds. It does not explicitly distinguish itself from the sibling transcribe_audio or translate_text tools, so it falls short of a 5.

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 mention of a local audio clip and the size/duration limits implies when this tool is appropriate, but there is no explicit when-to-use or when-not-to-use guidance. It does not name alternatives such as transcribe_audio or translate_text, leaving the agent to infer the choice.

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