Skip to main content
Glama

fix_glitches

Repair FCPXML edit artifacts by dropping micro-clip flash frames or absorbing them into the previous clip; writes a new file and leaves the original untouched.

Instructions

Repair detected edit artifacts in an FCPXML: removes micro-clip flash frames (strategy "drop") or extends the previous clip over them (strategy "absorb"). Writes a NEW file — the original is never touched. Refuses non-linear timelines (compound clips, nested stories, attached effect clips) unless force=true, because regeneration flattens those structures.

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>",
      "outputPath": "<outputPath>"
    },
    "name": "fix_glitches"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoProceed even if the timeline contains structures regeneration would flatten
strategyNodrop
minFramesNo
fcpxmlPathYes
outputPathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses non-destructive behavior (writes a NEW file, original untouched), a hard refusal condition with its cause (regeneration flattens compound clips, nested stories, attached effects), and the escape hatch (force=true). It omits idempotency, whether audio-only artifacts are handled, and any post-write validation.

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?

Three sentences, each carrying distinct information — behavior, output safety, refusal conditions — with the most load-bearing facts front-loaded. No filler and no 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?

For a five-parameter mutation tool with no annotations and no output schema, the description covers the risky behaviors an agent most needs to know before calling it. The remaining gap is minFrames and what the agent gets back after the new file is written.

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 20%, and the description compensates for strategy and force with real semantics (what each strategy does physically to the timeline). However minFrames — an integer 1-120 with default 5 — is never explained, so the agent cannot tell whether it is a frame threshold, a minimum clip length, or a per-artifact cap.

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 (repair), a specific resource (detected edit artifacts in an FCPXML), and the concrete defect class (micro-clip flash frames). The wording also positions it downstream of detection work, which distinguishes it from candidate siblings like detect_glitches or validate_dtd.

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 explicit decision guidance between the two strategies (drop vs absorb) and states the preconditions for the force override. It does not name detect_glitches as the required predecessor or say what to do if no artifacts were detected, so the pipeline ordering is only implied.

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