Skip to main content
Glama

media_tools_extract_audio

Pull the sound out of a video as MP3, OGG, Opus, M4A, WAV or FLAC: all of it or a part, with optional mono and sample rate (16 kHz mono WAV is what speech-to-text wants). Price: $0.02 USDC via x402, charged only on success. Part of Media tools: Video and audio chores for sites, apps and docs: turn a clip into a small GIF or animated WebP, compress video to web-ready MP4/WebM with a poster, pull thumbnails and a contact sheet, extract or convert audio with loudness normalization, draw waveforms, and probe a file for what will not play in browsers..

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "media_tools_extract_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
startNoWhere to start, in seconds.
videoNoVideo file as base64 (MP4, MOV, WebM, MKV, AVI or GIF).
formatNomp3
channelsNo1 downmixes to mono.
durationNoHow many seconds to keep. To the end when omitted.
videoUrlNoLink to the video.
sampleRateNo
bitrateKbpsNoFor mp3, ogg, opus and m4a. A sensible default per format when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does disclose a real behavioral trait: pricing of $0.02 USDC via x402, charged only on success, which an agent needs before invoking. It also notes per-format default bitrates and that duration omitted means 'to the end'. It stops short of describing the response payload or any file-size/processing limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is well front-loaded and dense with useful specifics. The trailing 'Part of Media tools: ...' catalog runs long, describes six other tools, and earns little place in this tool's definition.

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?

For an 8-parameter, zero-required tool with no output schema, the definition covers output formats, partial extraction, mono/sample-rate intent, and cost. What is missing is modest: input size limits and any note on how the two input channels (video base64 vs. videoUrl) interact, though the schema handles that with descriptions.

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 75%, so the schema already documents most parameters. The description still adds value by explaining the mono downmix intent, the speech-to-text 16 kHz mono WAV combination, and the 'all of it or a part' framing for start/duration. It adds nothing about bitrateKbps beyond the schema, and the format/bitrate interaction is only lightly covered.

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?

States a concrete verb and resource ('Pull the sound out of a video') and enumerates output formats, so the operation is unambiguous. It does not, however, steer the agent away from the closely named sibling media_tools_audio_convert, so extraction vs. conversion remains a guess.

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?

Usage is only implied by the phrase 'out of a video' and by the parenthetical that 16 kHz mono WAV is what speech-to-text wants, which is a genuinely useful when-to-use hint. There is no explicit statement of when to choose this over media_tools_audio_convert or media_tools_probe, and no prerequisites (size limits, base64 vs. URL) are given.

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