Skip to main content
Glama

语音转文字(同步,短音频)

speech_to_text

Transcribes short audio (up to 60 seconds and 8 MB) from a public URL and synchronously returns text plus segmented results. Use for speech-to-text conversion of remote wav, mp3, or m4a files.

Instructions

转写 ≤ 60 秒、≤ 8MB 的短音频,同步返回文本与分段。计费工具(占 1 次当日 ASR 额度,失败不扣)。audioUrl 必须是公网可访问 URL(wav/mp3/m4a);本地文件路径无法使用。更长的音频改用 submit_asr_job 提交异步任务。

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": {
      "audioUrl": "<audioUrl>"
    },
    "name": "speech_to_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNo语种,auto 自动判定(默认)
engineNo引擎:默认 standard(免费);premium 需付费档,商业模型按积分计费
audioUrlYes音频公网 URL,≤ 8MB 且 ≤ 60 秒

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), it discloses that the call consumes one daily ASR quota unit, that failures are not charged, that execution is synchronous, and that the result contains text plus segments. Those quota, failure-handling, and reachability constraints are not derivable from the structured fields and materially affect how an agent should call the tool.

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 description is four short sentences, front-loaded with the core capability and limits, followed by billing, URL requirements, and the alternative tool. Each sentence contributes a distinct constraint with no redundancy.

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, and the description compensates by stating that the tool returns text and segments. Given the tool's simplicity (3 parameters, 1 required), the stated limits, formats, billing behavior, and fallback route make the definition complete enough that an agent can call it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description adds real meaning for audioUrl: the accepted formats (wav/mp3/m4a) and the negative constraint that local paths cannot be used. It does not add detail for lang or engine beyond what their enum and description fields already say, which keeps it from a 5.

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 a precisely bounded resource: transcribe short audio of ≤60s/≤8MB synchronously, returning text and segments. It also names the sibling tool to use for longer audio, so an agent can distinguish this tool from submit_asr_job without opening either 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 states concrete qualifications (≤60s, ≤8MB, publicly accessible URL, wav/mp3/m4a) and explicitly excludes local file paths. It also routes the agent to submit_asr_job when the audio is longer, providing an explicit alternative for the one condition that rules this tool out.

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