Skip to main content
Glama

Extract thumbnail / frames

thumbnail

Capture a single video frame at a chosen timestamp or extract frames at fixed intervals for previews and analysis.

Instructions

Capture a single frame at a given time, or extract frames at a fixed interval. For a single frame, output is an image path (e.g. out.jpg). For interval mode, output must contain a printf pattern (e.g. frame_%04d.jpg).

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": "thumbnail"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoTimestamp for a single frame. Default 0 if no interval given.
inputYesPath to the source video.
widthNoScale output width in pixels (height auto, keeps aspect).
outputYesImage path for single frame, or printf pattern (e.g. frame_%04d.jpg) for interval mode.
overwriteNoOverwrite the output file if it already exists.
everySecondsNoExtract one frame every N seconds (interval mode).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It reveals the output-path semantics that differ per mode, which is genuinely useful behavior, but says nothing about overwrite behavior when a file already exists, supported image formats, or what the tool returns on success/failure.

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 sentences, front-loaded with the two modes, each followed by its format requirement. No redundant or filler wording.

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 6-parameter tool with a fully documented schema and no output schema, the description covers the mode distinction and output-naming requirement that a caller most needs. Remaining gaps – overwrite/failure behavior, and whether `width` applies in interval mode – are modest but real.

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 description coverage is 100%, so every parameter is already documented in the schema. The description's examples for `output` (out.jpg vs frame_%04d.jpg) mirror the schema text rather than adding new meaning, so the baseline 3 applies.

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?

A specific verb+resource pairing ('Capture a single frame', 'extract frames at a fixed interval') with the two operating modes explicitly separated. It does not distinguish this from siblings like probe or trim, but the tool's identity as a frame-extraction operation is unambiguous.

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?

The description tells the agent which mode to pick: use a plain image path for a single frame, or a printf pattern for interval mode. It doesn't cover when to reach for this tool over alternatives or what happens if the wrong mode/argument combination is supplied, so the guidance is clear but not exhaustive.

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