Skip to main content
Glama

validate_dtd

Checks an .fcpxml file against Apple's official FCPXML DTD using xmllint to confirm Final Cut Pro import compatibility.

Instructions

Validate an .fcpxml against Apple's official FCPXML DTD using xmllint. The DTD is auto-discovered inside your Final Cut Pro install (redistribution is not permitted), or set the CUTSMITH_DTD environment variable to a local copy. This is the strongest correctness check available: if a generated timeline passes this, FCP will import it.

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

Input Schema

NameRequiredDescriptionDefault
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 full burden and does disclose real prerequisites: an external xmllint dependency, DTD auto-discovery inside the FCP install, a CUTSMITH_DTD override, and the licensing constraint. It omits failure semantics, i.e. whether errors are returned as text, thrown, or truncated, which is the main remaining gap.

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, front-loaded with the action, followed by dependency/environment details and then the value proposition. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Prerequisites and environment configuration are well covered, but with no output schema and no annotations the description should say what a validation run returns (pass/fail, error listing) and what happens on schema violations. For a tool whose whole purpose is producing a verdict, that omission leaves the agent guessing about the result shape.

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 0% for the single required parameter fcpxmlPath, and the description only implies it is a path to an .fcpxml file. It adds no detail on absolute vs relative paths, extension requirements, or readability expectations, so it only partially compensates for the coverage gap.

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 plus the mechanism: 'Validate an .fcpxml against Apple's official FCPXML DTD using xmllint.' That is clearly distinct from siblings such as import_xml_into_fcp or check_fcp_available, so an agent can select it 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 clear context for when this is the right check ('the strongest correctness check available: if a generated timeline passes this, FCP will import it'), which implies pre-import verification. It does not explicitly name a sibling alternative or state when not to use it, so it falls short of the top band.

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