Skip to main content
Glama

motion

Measure how fast drawn elements move at specified video times, returning pixels-per-frame speeds, movement directions, drawing script lines, and shutter visibility for animation checks.

Instructions

How fast what is drawn moves at the given times: each thing's speed in video pixels a frame where it moves most and its centre's direction, with the script line that drew it, and what appears within the shutter. Speeds are measured over the opening half of a 180° shutter (a quarter frame before the frame).

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>",
      "specs": "<specs>"
    },
    "name": "motion"
  }
}

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
mediaNofonts, images and sounds (default: media/ beside the script)
propsNoa JSON object the script reads as the table props (props.title, ...)
scaleNooutput resolution factor, e.g. 0.5 for half resolution (rounded to an even size)
specsYescomma-separated times: 120 (frame), 3.2s, 1:05.5, 50%, start, end, Intro, #3, Intro@1.5s, Intro@50%, a cue: drop, drop@0.5s
scriptYesthe video script (.lua)
softwareNodraw on the CPU instead of the GPU

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose meaningful behavior: the exact measurement window (opening half of a 180° shutter, a quarter frame before the frame) and the shape of each reported result. It does not mention cost, failure modes, or whether the script is evaluated or only analysed, which keeps it below a 5.

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?

Two sentences with no filler; the output shape is front-loaded and the shutter sentence defines a measurement rule rather than padding. The opening clause ('How fast what is drawn moves at the given times') is grammatically tangled and takes a second read to parse.

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 an eight-parameter analysis tool with no output schema, the description explains what is returned and how speed is measured, which is what an agent most needs. The remaining gaps are invocation context—script-evaluation cost, error behavior, and how this relates to sibling analysis tools—rather than missing parameter or return information.

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% and every parameter is documented in the schema, so the baseline is 3. The description reinforces that results are keyed to the times supplied in 'specs' but adds no syntax or interpretation beyond what the schema already gives for 'now', 'set', 'media', 'scale', and the rest.

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

Purpose4/5

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

The description states concretely what the tool produces: per-object speed in video pixels per frame at its peak, the centre's direction of travel, the script line responsible, and what falls inside the shutter window. That is a specific resource and measurement, not a restatement of the name 'motion'. It never names a sibling (frame, timeline, inspect) to contrast against, so differentiation is left implicit.

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 explicit when-to-use or when-not-to-use guidance and no named alternative. An agent must infer from 'at the given times' that this is the analysis tool for per-frame motion rather than the playback or timeline tools. Implied usage only, with no exclusions.

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