Skip to main content
Glama

sarvam_speech_to_text

Transcribe local WAV/MP3/OGG/FLAC audio to text in Indic languages and English, with optional auto-detection, timestamps, speaker labels, and transliteration/codemix modes.

Instructions

Transcribe a local audio file (WAV/MP3/OGG/FLAC). Saarika v2.5 default; Saaras v3 for translit/codemix/diarization.

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": {
      "audio_path": "<audio_path>"
    },
    "name": "sarvam_speech_to_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoSaarika is the default transcriber. Saaras supports translit/codemix modes.saarika:v2.5
audio_pathYesAbsolute path to a local audio file (WAV/MP3/OGG/FLAC). Max 30 seconds for sync.
language_codeNoBCP-47 source language. "unknown" lets Sarvam auto-detect.unknown
with_timestampsNo
with_diarizationNoSpeaker labels (Saaras only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 full disclosure burden. It conveys that this reads a local file and that capabilities vary by model, but it does not state authentication requirements, rate limits, whether the call is synchronous only, or what the caller receives back. The model-dependent behavior note is useful but the operational profile is thin.

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?

Two front-loaded sentences with no filler, and the primary purpose comes first. The second sentence is telegraphic ("Saarika v2.5 default; Saaras v3 for translit/codemix/diarization"), which trades a little readability for density.

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 output schema and no annotations, the description is adequate on purpose and model choice but silent on the returned transcript structure, especially when timestamps or diarization are enabled. Nothing an agent needs to select the tool is missing, but invoking it fully informed requires guessing at the output shape.

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 coverage is 80%, so the schema already explains audio_path, language_code, and with_diarization. The description adds meaningful model-selection semantics (when Saaras v3 is warranted) that the enum alone doesn't convey, but with_timestamps remains unexplained in both places.

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 opens with a specific verb and resource ("Transcribe a local audio file") plus the supported formats, which is enough for an agent to distinguish it from siblings like sarvam_text_to_speech or sarvam_translate. It does not explicitly name those siblings, but the transcription framing is unmistakable.

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?

It gives clear conditional guidance for model selection (Saarika as default, Saaras for translit/codemix/diarization), which is the main decision an agent faces. It gives no tool-level guidance about when to choose this tool over sibling capabilities such as language detection or translation.

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