Skip to main content
Glama

extract_audio

Extract audio from a local video or audio file and save it as a new MP3 without overwriting existing files.

Instructions

Extract audio from a local video or audio file and save it as an MP3. Existing files are never overwritten.

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": {
      "input": "<input>",
      "output": "<output>"
    },
    "name": "extract_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesPath to the source media file
outputYesPath for the new MP3 file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It does disclose two useful behaviors: the output is always MP3 and existing files are never overwritten. It omits what actually happens when the target path exists (silent skip, error, or auto-rename), whether missing parent directories are created, and whether the call blocks on long conversions.

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?

Two short sentences with the core action first and the safety constraint second. Every clause earns its place and nothing is padded.

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 a simple two-parameter tool with full schema coverage and no output schema, the description covers the essentials, and the non-overwrite guarantee is the kind of fact an agent needs before calling. The remaining gap is the unspecified failure behavior on an existing output path, which is minor but not negligible.

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 both parameters are already documented in the input schema and the description adds no syntax, path-format, or overwrite-resolution detail beyond them. The baseline of 3 is appropriate when the schema does the heavy lifting.

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?

"Extract audio from a local video or audio file and save it as an MP3" names a specific verb (extract), a specific resource (audio track), and the output format. This is unmistakably distinct from create_thumbnail, inspect_media, and trim_video, so an agent can select it 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 Guidelines3/5

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

Usage is implied rather than stated: the word "local" quietly excludes remote URLs, and "extract audio" implies a media file that already has an audio track. There is no explicit when-not guidance (e.g. what to do if the source has no audio stream) and no named alternative, leaving the agent to infer the boundaries.

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