Skip to main content
Glama

media_clip

Cut a small MP4 clip (720p, 30 fps) from a video range for Gemini media analysis, using local ffmpeg with no model required.

Instructions

Cut a small mp4 (720p, 30 fps by default) of a range, to hand to gemini_analyze_media.

30-60 s clips work best (e.g. to check whether BGM suits a scene). Local ffmpeg; no model.

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_path": "<video_path>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "media_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
fpsNo
audioNo
startYes
heightNo
out_pathNo
session_idNo
video_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that processing is local via ffmpeg with no model, and notes default 720p/30 fps output. However, it omits output location/return behavior, audio inclusion, overwrite behavior, and failure conditions for an 8-parameter file-producing 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 two short sentences, front-loaded with the core operation and followed by practical clip-length advice. Every sentence adds useful information without repetition or filler.

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?

The tool has 8 parameters, no annotations, no output schema, and 0% schema description coverage. The description covers purpose and a few defaults but leaves the return value, out_path behavior, audio setting, and session handling unexplained, which is insufficient for correct invocation.

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 description coverage is 0%, so the description must compensate for all 8 parameters. It explains the range concept and the 720p/30 fps defaults, but says nothing about video_path, audio, out_path, or session_id, leaving half the parameters without semantic guidance.

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 gives a specific verb and artifact: cut a small mp4 clip from a video range. It also names the intended downstream sibling, gemini_analyze_media, so the tool's role is distinguishable from analysis and generation siblings.

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

Usage Guidelines4/5

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

It gives clear usage context: produce a clip to hand to gemini_analyze_media, and recommends 30-60 s clips with an example use case (checking whether BGM suits a scene). It does not state when not to use it or compare against media_frames/media_audio alternatives, so it falls short of full explicit guidance.

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