Skip to main content
Glama

Trim Media or Extract Audio Locally

media_trim_extract_audio

Trim a local video or audio clip and extract clean MP3, WAV, M4A, or OGG audio using local FFmpeg, keeping files on disk.

Instructions

Trim a local audio/video clip or extract clean MP3/WAV/M4A/OGG audio using local FFmpeg.

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": {
      "inputPath": "<inputPath>"
    },
    "name": "media_trim_extract_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNoextract_audio
startSecNoStart offset in seconds
inputPathYesLocal audio or video file path
outputPathNo
audioFormatNomp3
durationSecNoClip duration in seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavior burden. 'Local FFmpeg' is a genuine trait (no upload, requires a local file and FFmpeg), but it omits the critical mutation semantics: whether outputPath is overwritten, where output goes by default, what happens on failure, or whether trim requires startSec/durationSec.

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?

A single front-loaded sentence with no filler; the operation and the local-processing trait come first. It is lean to the point of being terse for a 6-parameter tool, but nothing is wasted.

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

Completeness2/5

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

For a 6-parameter mutation tool with no annotations and no output schema, the definition is thin: output destination/overwrite behavior and the per-action parameter requirements are unaddressed in both schema and description.

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

Parameters2/5

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

Schema coverage is 50%, and the description only echoes the audioFormat enum via 'MP3/WAV/M4A/OGG'. It adds nothing for outputPath (undocumented in schema) or the interaction between action and startSec/durationSec, so it fails to compensate for the coverage gap.

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?

Names specific verbs (trim, extract) and resources (local audio/video clip, MP3/WAV/M4A/OGG audio), so the agent knows exactly what operation it performs. It does not explicitly contrast with siblings like media_audio_normalize or media_extract_frames, but the verb+resource pairing is clear enough to distinguish.

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

Usage Guidelines2/5

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

No guidance on when to choose this over alternatives, or when to pick action=trim_video versus action=extract_audio. The only contextual hint is 'local FFmpeg', which implies on-device processing, not a use-case condition.

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