Skip to main content
Glama

detect_language

Identify the spoken language in an audio file without transcription, returning the predicted language, ISO code, confidence score, and duration for review.

Instructions

Identify the spoken language of one audio file. No transcription.

The result is a model signal. The audio is uploaded to Modulate's Velma API. Only the first 30 seconds are analyzed. Allowed formats: the wide audio/video list (for example wav, mp3, m4a, flac, ogg, opus, mp4, webm, mov). Max 100 MB. Returns predicted_language (name, such as 'English'), predicted_language_code (ISO 639-1, such as 'en'), confidence (0 to 1) and duration_ms.

file_path: path to the audio file, relative to VELMA_MCP_BASE_PATH or absolute inside it.

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>"
    },
    "name": "detect_language"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses that audio is uploaded to a third-party API (Modulate's Velma), that only the first 30 seconds are analyzed, the 100 MB cap, and the accepted container formats. It also notes the output is a 'model signal', which correctly frames confidence as probabilistic rather than authoritative.

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-loaded with purpose and the key exclusion, then grouped into environment, limits, return shape, and parameter notes. The allowed-format list is long but operationally useful; a small amount of tightening is possible but nothing is genuinely wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter detection tool, the definition covers environment, upload destination, duration truncation, size limit, formats, and return fields — more than an output schema alone would imply. Nothing an agent needs to invoke it correctly or interpret the result is missing.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate, and it does: file_path is defined as relative to VELMA_MCP_BASE_PATH or absolute within it, which is resolution behavior the bare 'File Path' title does not convey. This is exactly the missing meaning an agent needs to call the tool without a failed path.

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 ('Identify the spoken language of one audio file') plus a negative scope marker ('No transcription') that separates it from the transcribe_* siblings. An agent can distinguish it from detect_accent or transcribe_audio without opening any 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?

'No transcription' explicitly rules out the most likely wrong sibling, and the opening sentence pins the use case to language identification only. It never names a positive alternative (e.g. transcribe_audio when you need the words, detect_accent when you need accent), so the routing guidance is clear but not complete.

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