Skip to main content
Glama

inspect

Checks a video script for missing media, clipped text, script errors, cue drift, off-beat sounds, and physics issues; fails at the configured fail-on level.

Instructions

Problems: missing media and fonts, clipped or overlapping text, NaN, script errors, unused options, cues that drift, sounds off the music's beat, physics bodies that overlap, leave or never settle; fails at the fail-on level.

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": {
      "script": "<script>"
    },
    "name": "inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowNothe wall clock at the video's first frame (Lua: f.now, seconds since 1970): an RFC 3339 time with its zone (2026-11-02T14:05:00Z, 2026-11-02T15:05:00+01:00) or seconds since 1970; preview --live runs on the system clock instead (default: 0, 1970-01-01T00:00:00Z)
setNoscript arguments (Lua: arg.K, a string) that also set props.K (a number when it looks like one); they win over a batch row, which wins over the props file
infoNolist informational findings too
everyNothe distance between checked frames (and every scene's first and last frame and the first frames after each cue and scene start, where a slam overshoots) (default: 0.25s)
mediaNofonts, images and sounds (default: media/ beside the script)
propsNoa JSON object the script reads as the table props (props.title, ...)
rangeNoframes a..b (end exclusive), a.., ..b, all, or a scene name; times like 3.2s, 1:05.5, 50%, Intro@1.5s, a cue: drop, drop@0.5s (default: all)
scaleNooutput resolution factor, e.g. 0.5 for half resolution (rounded to an even size)
scriptYesthe video script (.lua)
fail_onNothe findings that fail the check (default: error)
softwareNodraw on the CPU instead of the GPU
all_framesNocheck every frame (once before delivering: a motion between the checked frames goes unseen otherwise)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose real scope — the concrete defect classes checked and that findings "fail at the fail-on level" — which is genuine behavioral information, but it omits whether the Lua script is executed, whether rendering/GPU resources are consumed, side effects, and what the findings output looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is compressed into one long comma/semicolon list with no lead sentence stating the tool's job, so the most important information (what this tool is for) is buried among defect examples. It is short but poorly structured and not front-loaded.

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

Completeness2/5

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

For a 12-parameter tool with nested objects, no annotations, and no output schema, the description is thin: it never characterizes the returned findings, the cost of a full run, or how the script/media/props/range parameters combine. It enumerates checks but leaves the operational picture incomplete.

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 100%, so the schema already documents all 12 parameters in detail (range syntax, now, set, every). The description adds no parameter meaning beyond that and does not explain how the parameters interact, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states a verb and resource outright — it opens with the fragment "Problems:" and enumerates failure modes (clipped text, NaN, physics overlaps). An agent can infer this is a validation/lint pass over a video script, but the purpose is reconstructed from examples rather than declared, and no sibling (preview, probe, render) is differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says to run this before delivering, instead of preview, or alongside probe. Only the schema's all_frames text hints at a pre-delivery workflow, and the description offers no exclusions or alternative-selection advice.

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