Skip to main content
Glama

ai_detect_scenes

Detect scene cuts in a DaVinci Resolve timeline to add cuts, or analyze a clip's source file with FFmpeg to return cut times without changing media.

Instructions

Detect scene cuts. source 'timeline' runs Resolve's DetectSceneCuts on the current timeline (adds cuts); source 'file' runs FFmpeg scene detection on a clip's source file and returns cut times (no changes).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ai_detect_scenes"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipNoMedia pool clip id, exact clip name, or file path
sourceNofile
timelineNoTimeline name or id (default: current timeline)
thresholdNo

Output Schema

NameRequiredDescriptionDefault
okYesTrue only when DaVinci Resolve confirmed the operation.
dataNo
toolYes
errorNo
sourceNoWhere the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone.
statusYes
messageYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false, which is ambiguous for a dual-mode tool; the description resolves that by clarifying that the 'file' path makes no changes and only returns cut times, while the 'timeline' path mutates the edit. That is meaningful context beyond the annotations. It does not cover side effects such as whether new cut points are appended duplicatively or how the detection is scoped.

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 compact sentences: the purpose is front-loaded and the per-mode behavior follows immediately, with parentheticals carrying the mutating/non-mutating distinction. No filler or restatement of the tool name.

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?

An output schema exists, so return values need not be described, and the description covers the critical difference between the two execution modes. The notable gap is the unexplained threshold parameter, plus no note on whether clip is required for one mode but not the other.

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?

With 50% schema coverage, the description does useful work by explaining what 'timeline' and 'file' actually do. However, the 'threshold' parameter is never mentioned in the description despite lacking schema text, and its effect on detection sensitivity (and its 0.05-0.95 range) is left entirely opaque; the clip parameter is likewise unaddressed.

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 opens with a specific verb+resource ('Detect scene cuts') and then splits the tool into two named modes with distinct effects, so an agent knows exactly what the tool computes. It is clearly separable from the ai_detect_objects / ai_detect_speakers siblings because the resource (scene cuts) is stated explicitly.

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 gives the operative distinction an agent needs to choose a mode: 'timeline' adds cuts to the current timeline, while 'file' only reports cut times. It stops short of stating explicit selection rules (e.g., 'use file when you do not want to modify the edit') or naming the default, which the schema supplies separately.

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

Deploy Server

Other Tools