Skip to main content
Glama

Extract Sound Effect

extract_sound_effect

Pull one described sound out of your video, like "keyboard clicks", "camera shutter" or "page turning", and split it into single effects to hear, trim and save. Use the video already in the chat: put its file id or name in video_url; when it was sent earlier, not with the latest words, find it first among what was sent before. Never ask the person to send it again. Give the sound in a few words, and start_seconds and end_seconds when the person says where it is (leave them out to search the whole video). Priced at 1 token for each 10 seconds searched. It answers with a job_id: the clips come into the chat by themselves when done (about a minute). For where a job is, or to stop it, use sound_extraction_status with the job_id. The same request again answers the job already made and charges nothing. Clips are split where the sound goes quiet, which is a suggestion: music or speech under the sound can leave traces. When separation keeps too little of the sound (more than 10 dB under that part of the video) or fails, the clips are cut straight from the video's own sound instead: the answer says from "cut from the video", tell the person that anything else playing at that moment is in them too. A cut holds every sound in that part, one clip per sound, whatever words were asked: never ask again for other sounds in the same part, and give each clip its own name from where it sits. A failed separation is not charged.

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": {
      "video_url": "<video_url>",
      "sound": "<sound>"
    },
    "name": "extract_sound_effect"
  }
}

Input Schema

NameRequiredDescriptionDefault
againNotrue only when the person asks to run the same extraction again (charged again).
soundYesThe sound to pull out in the person's own words, unchanged (they become the clip's name), e.g. "keyboard clicks".
video_urlYesThe video in this chat by its file id or name, or an https link., or the asset_id upload_reference_asset gave for a video you added.
end_secondsNoOptional, where it ends, in seconds.
start_secondsNoOptional, where the sound starts in the video, in seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / video_url / description
      Previous value: -"The video in this chat by its file id or name, or an https link."New value: +"The video in this chat by its file id or name, or an https link., or the asset_id upload_reference_asset gave for a video you added."
  2. Changed1 schema field changed
    • changedInput schema / properties / sound / description
      Previous value: -"The sound to pull out in a few words, e.g. \"mechanical keyboard clicks\"."New value: +"The sound to pull out in the person's own words, unchanged (they become the clip's name), e.g. \"keyboard clicks\"."
  3. Added

TDQS

A4.5/5.0
Behavior4/5

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

Goes well past the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false) by disclosing cost ('1 token for each 10 seconds searched'), latency (~1 minute), idempotent replay with no charge, and that failures are not charged. It also documents the fallback path when separation is weak (>10 dB under that part) and the caveat that cut-from-video clips retain other concurrent audio. The only unexploited gap is that it never states permissions or what happens to partially successful separations.

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?

Purpose and the video-location rule are front-loaded, and nearly every sentence carries an operational rule, but the block is long and repeats the 'never ask again' instruction twice. Some fallback detail (naming each clip from where it sits) could be tightened without losing meaning.

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?

For a paid, asynchronous, fallback-prone extraction tool with no output schema, the description supplies the return contract (a job_id, clips arriving in chat automatically), the cost model, the fallback semantics, and the pointer to the status/cancel tool. Nothing an agent needs to call this correctly or explain the result appears to be missing.

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, but the description adds real meaning: video_url accepts a chat file id/name or a prior asset, sound should be given 'in a few words' and becomes the clip's name, and start_seconds/end_seconds should only be supplied when the person states a location. It does not explicitly explain the 'again' flag's re-charge interaction beyond implying that a repeat request is free, which is a small residual ambiguity.

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?

Opens with a concrete verb and resource ('Pull one described sound out of your video... split it into single effects'), with examples ('keyboard clicks', 'camera shutter') that pin down the granularity. It is clearly distinct from the named sibling sound_extraction_status and from generation/library siblings, which produce or fetch sound rather than isolating it from existing footage.

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?

Explicit when-to-use rules: use the video already in the chat, locate it among earlier messages if it wasn't in the latest turn, never ask the user to resend, omit start_seconds/end_seconds to search the whole video. It also routes to the alternative ('For where a job is, or to stop it, use sound_extraction_status with the job_id') and states when not to re-request other sounds from the same cut.

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