Skip to main content
Glama
ilinxa-capture

ilinxa-capture

Official
by ilinxa

capture_shots

Detect video shot boundaries, get start and end times, and extract first, middle, or last frames labeled by shot and timestamp for composing contact sheets.

Instructions

Detect the shots in a video: where each starts and ends and how long it lasts, with first, middle or last frames from each, labeled by shot and real timestamp. Compose the frames with capture_compose and this job_id. Finds hard cuts well; lower scene_threshold if dissolves are missed. Decodes the whole range, so for long videos pass async: true and poll capture_job_status.

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": {
      "source": "<source>"
    },
    "name": "capture_shots"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoEnd of the range to process: seconds, MM:SS or HH:MM:SS
asyncNoReturn a job immediately instead of waiting for the result
startNoStart of the range to process: seconds, MM:SS or HH:MM:SS
widthNoCustom width in pixels (only with preset=custom)
formatNoOutput format (only with preset=custom)
presetNoQuality preset: llm (1024px JPEG 80%), high (original PNG), customllm
sourceYesVideo file path or URL
qualityNoJPEG quality 1-100 (only with preset=custom)
frame_positionsNoFrames to capture from each shot. Empty for the shot list only
scene_thresholdNoScene change score that counts as a cut, 0.01-1. Lower finds more cuts
min_shot_secondsNoShortest shot to keep. Closer cuts are ignored

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true, so the description must supply the rest, and it usefully discloses that the whole range is decoded (a cost/latency warning), that a job_id is produced, and that frames carry shot labels and timestamps. It still omits where frames are written, whether files persist, and what failure modes look like, so the behavioral picture is helpful but incomplete for a mutation-flagged tool.

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?

Front-loaded with the outcome first, then the compose handoff, then tuning and async advice. Four sentences with no filler, though the phrasing 'where each starts and ends and how long it lasts' is slightly redundant since duration follows from boundaries.

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?

With 11 parameters, no output schema, and open-world URL support, the description does enough: it describes the returned artifacts, the job_id handoff, and the cost of full decoding. It leaves the file destination and polling cadence to the sibling tools rather than spelling them out.

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 practical tuning meaning beyond the schema for scene_threshold (raise/lower for dissolves) and explains the async parameter's operational consequence. It does not add meaning for start/end range formats or the preset/custom interaction, which the schema already handles.

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?

States a specific verb and resource (detect shots in a video) and enumerates the concrete deliverable: start/end boundaries, duration, and first/middle/last frames labeled with shot index and real timestamp. This is far more than a restatement of the name and lets an agent distinguish it from extraction/audio/compose siblings 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 Guidelines4/5

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

Gives explicit conditional guidance: use async:true for long videos and poll capture_job_status, then feed this job_id to capture_compose. It also gives a tuning rule (lower scene_threshold when dissolves are missed). It does not explicitly say when to prefer capture_extract or another sibling for the same source, so it stops short of full alternative routing.

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