Skip to main content
Glama

detect_glitches

Scan a parsed timeline to find micro-clip glitches, unintended black-frame gaps, and overlaps, returning exact timecodes for apply_edits or manual fixes.

Instructions

Scan a parsed timeline for edit artifacts: micro-clip glitches (clips shorter than minFrames, the "few frames long" flash cuts silence-removal leaves behind), unintended gaps (black frames), and overlaps. Returns artifacts with exact timecodes; feed them to apply_edits or fix manually.

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": {
      "fcpxmlPath": "<fcpxmlPath>"
    },
    "name": "detect_glitches"
  }
}

Input Schema

NameRequiredDescriptionDefault
minFramesNoClips shorter than this many frames are flagged as glitches
fcpxmlPathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the load and does disclose useful behavior: the detection categories, the meaning of the threshold, and that results come back as artifacts with exact timecodes. It never explicitly states the tool is read-only / does not modify the timeline, though 'feed them to apply_edits' strongly implies it.

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 single sentence listing the artifact classes, followed by one short sentence on output and next step. Efficient with no filler, though the parenthetical explanation of 'few frames long' flash cuts is slightly verbose.

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 two-parameter detection tool with no output schema and no annotations, the description covers purpose, detection semantics, and the shape of the returned data well enough to invoke correctly. The only real gap is the undocumented fcpxmlPath semantics and the absence of an explicit non-mutating guarantee.

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 coverage is only 50%: minFrames is already documented in the schema and the description merely restates the threshold idea in prose, while fcpxmlPath gets no explanation of expected format (path to an exported .fcpxml). Partial compensation, not full.

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?

Specific verb (scan) plus resource (a parsed timeline) plus an enumerated set of what it detects: micro-clip glitches, gaps/black frames, and overlaps. The framing as detection-only with results to hand off clearly separates it from a sibling like fix_glitches.

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?

States the context of use (scan a parsed timeline) and the follow-up path (feed artifacts to apply_edits or fix manually), which effectively tells the agent this is the diagnostic step before remediation. No explicit when-not or named alternative is given, so it stops short of a 5.

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