Skip to main content
Glama

Agent402.Tools: payments and trust for AI agents

Speech-to-text

audio.transcribe

Paid ($0.030/call): Transcribe audio to text with the gpt-transcribe model. Provide a URL to an audio file (mp3, wav, m4a, etc.) and get back the transcript. Add diarize:true for speaker labels, word timestamps and a language confidence score (the scribe-v2 model, same price). No API key needed; pay per call via x402.

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": {
      "url": "<url>"
    },
    "name": "audio.transcribe"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the audio file to transcribe (mp3, wav, m4a, ogg, flac, webm)
modelNoOptional: a model to transcribe with in place of gpt-transcribe, one of mistralai/voxtral-mini-transcribe-3-0, mistralai/voxtral-small-transcribe-3-0, microsoft/mai-transcribe-2 (model-backed; same price and cap; not with diarize). The answer names the model that served it.
diarizeNotrue: transcribe with the scribe-v2 model and add speaker labels and word timestamps (`words`, `speakers`) and `language_confidence` (0 to 1, the model's confidence in the detected language). Same price and cap. Default false
languageNoOptional ISO-639-1 language code (e.g. 'en', 'es', 'fr') for better accuracy

Output Schema

NameRequiredDescriptionDefault
textYes
modelNo
durationNo
languageNo
providerNo
durationUnconfirmedNoPresent (true) only with trimmedToCapSeconds: the file's full length was not confirmed
trimmedToCapSecondsNoPresent only when the file's length could not be confirmed: the audio was transcribed up to this many seconds (the tier's cap)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / model / description
      Previous value: -"Optional: a model to transcribe with in place of gpt-transcribe, one of mistralai/voxtral-mini-transcribe-3-0, mistralai/voxtral-small-transcribe-3-0 (model-backed; same price and cap; not with diarize). The answer names the model that served it."New value: +"Optional: a model to transcribe with in place of gpt-transcribe, one of mistralai/voxtral-mini-transcribe-3-0, mistralai/voxtral-small-transcribe-3-0, microsoft/mai-transcribe-2 (model-backed; same price and cap; not with diarize). The answer names the model that served it."
  2. Changed1 schema field changed
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "Optional: a model to transcribe with in place of gpt-transcribe, one of mistralai/voxtral-mini-transcribe-3-0, mistralai/voxtral-small-transcribe-3-0 (model-backed; same price and cap; not with diarize). The answer names the model that served it.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • addedOutput schema / properties / durationUnconfirmed
      Added value: +{
      +  "description": "Present (true) only with trimmedToCapSeconds: the file's full length was not confirmed",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / trimmedToCapSeconds
      Added value: +{
      +  "description": "Present only when the file's length could not be confirmed: the audio was transcribed up to this many seconds (the tier's cap)",
      +  "type": "number"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / diarize / description
      Previous value: -"true: transcribe with the scribe-v2 model and add speaker labels and word timestamps (`words`, `speakers`). Same price and cap. Default false"New value: +"true: transcribe with the scribe-v2 model and add speaker labels and word timestamps (`words`, `speakers`) and `language_confidence` (0 to 1, the model's confidence in the detected language). Same price and cap. Default false"
  5. Changed1 schema field changed
    • changedInput schema / properties / diarize / description
      Previous value: -"true: transcribe with ElevenLabs Scribe v2 and add speaker labels and word timestamps (`words`, `speakers`). Same price and cap. Default false"New value: +"true: transcribe with the scribe-v2 model and add speaker labels and word timestamps (`words`, `speakers`). Same price and cap. Default false"
  6. Changed1 schema field changed
    • addedInput schema / properties / diarize
      Added value: +{
      +  "description": "true: transcribe with ElevenLabs Scribe v2 and add speaker labels and word timestamps (`words`, `speakers`). Same price and cap. Default false",
      +  "type": "boolean"
      +}
  7. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the price ($0.030/call), the payment mechanism (x402, no API key), and the model-switching behavior including that the response names the model that served it. These are exactly the operational facts an agent needs before committing to a paid openWorld call; nothing here conflicts with the supplied hints.

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?

Three dense sentences, cost front-loaded in the first phrase, then the core action, then the optional diarize upgrade and payment note. Every clause carries information; nothing is padding.

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

Completeness4/5

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

An output schema exists, so return-value documentation is correctly omitted, and the description still covers pricing, auth, and model behavior. The only residual gap is the repeated mention of 'the same price and cap' without ever defining what the cap is, leaving a quota question unanswered.

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 100%, so all four parameters are already documented with meanings, enums-by-example, and output effects. The description restates the diarize behavior and the default model already present in the schema rather than adding syntax or constraints beyond it, so the baseline 3 applies.

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?

Names a specific verb and resource (transcribe audio to text), the serving model (gpt-transcribe), and the input form (a URL to an audio file). Nothing in the sibling list performs transcription, so an agent can route here unambiguously without opening the 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?

Gives concrete usage context: supply a URL, add diarize:true when speaker labels/timestamps are wanted, and no API key is required because payment is via x402. It stops short of explicit when-not-to-use guidance or cost-based routing advice, which is why it falls short of a 5.

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.