Skip to main content
Glama

Transcribe speech (speech-to-text)

speech_transcribe
Idempotent

Start transcribing a recording (speech to text) with an AIMLAPI speech-to-text model, from a URL the platform downloads. To read text aloud use speech_generate. Billed to your AIMLAPI balance at the model's price, usually per second of audio (see model_get); the job result does not include the cost, which the AIMLAPI dashboard and GET /v2/logs show. Returns at once with job_id, kind, model and status "processing": check it with job_status and, once it is "complete", fetch the transcript with job_result — result.text, marked untrusted: true because it is the recording's content; job_result with include_raw: true adds the provider document (speakers, timestamps) as result.raw. Long recordings give large documents. The same request again within 24 hours returns the job already started instead of a second billed transcription; send a new idempotency_key to transcribe again on purpose.

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": {
      "model": "<model>",
      "audio_url": "<audio_url>"
    },
    "name": "speech_transcribe"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesAIMLAPI speech-to-text model id or alias, e.g. "deepgram/nova-2-general" or "openai/gpt-4o-transcribe". Find others with jev_model_search (kind "stt").
paramsNoModel-specific request fields, sent to the model as they are, e.g. { "language": "en" }, or { "diarize": true } for Deepgram models. Field names and allowed values differ by model: see its API reference on docs.aimlapi.com.
audio_urlYesURL of the recording; the platform downloads it (sent as the request `url`). A public URL, or a speech_generate output.
idempotency_keyNoOptional key that makes a resubmit safe: the same key returns the same job without starting (or charging) a second generation. Without a key, the same request within 24 hours is deduplicated the same way; send a new key to generate again on purpose.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), and the description adds substantial context beyond them: billing to the AIMLAPI balance at the model's per-second price, cost being absent from the result and visible only in the dashboard or GET /v2/logs, and the 24-hour deduplication window that returns an existing job rather than charging again. It also flags transcript content as untrusted and warns that long recordings produce large documents. The main omission is any statement about failure modes or how the platform behaves if the URL download fails.

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?

The lifecycle, cost, and dedup facts are front-loaded in a single dense paragraph with no filler sentences. It runs long and packs several distinct concerns into one block, which slightly hurts scannability, but no sentence is redundant.

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?

There is no output schema, yet the description compensates fully by naming the immediate return fields (job_id, kind, model, status 'processing') and the eventual job_result shape (result.text with untrusted: true, and result.raw under include_raw). For an asynchronous, billed transcription job that is everything an agent needs to call it and retrieve the result.

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 structured data, setting the baseline at 3. The description reinforces the URL-download behavior and the 24-hour dedup rule for idempotency_key, but those points are already present in the schema and it says nothing further about the model-specific 'params' object. It adds little 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?

The description opens with a specific verb and resource ('Start transcribing a recording (speech to text)') and names the model family it runs on. It explicitly distinguishes itself from the sibling speech_generate by routing read-aloud use there, so an agent can separate the two without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It spells out the full usage path: call this, poll with job_status while status is 'processing', then fetch with job_result, adding include_raw to get the provider document. It also states when to use speech_generate instead and how to intentionally re-transcribe by supplying a new idempotency_key.

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