Skip to main content
Glama

Critique a .riv: filmstrip + onion skin + motion vectors + metrics + checklist

riv_critique

Review Rive animations with filmstrip frames, onion-skin overlays, motion metrics, and a 7-axis scoring checklist to find and fix spatial or directional issues before delivery.

Instructions

One-call review bundle for the render→critique→revise loop. Returns (1) a FILMSTRIP image — N frames left→right across the duration, so motion is readable as a sequence, (2) an ONION-SKIN image — all frames ghost-overlaid so every mover leaves a visible trail (use it to check trajectories and travel direction vs the artwork's facing), (3) a MOTION REPORT — net displacement/rotation vector per animated object computed from the file data, (4) objective design metrics + lint findings, and (5) a fixed 7-axis scoring checklist (incl. spatial/directional coherence). LOOK at the images, score each axis 1-5, fix anything below 4 (riv_edit / regenerate), then re-run. Iterate at least twice before delivering any non-trivial scene.

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": {
      "path": "<path>"
    },
    "name": "riv_critique"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the .riv file
widthNoWidth of each filmstrip cell (default 200 — keep small, it saves tokens)
framesNoFrames to sample across the duration (default 6)
artboardNoArtboard name (default: first artboard)
animationNoAnimation to sample (default: first)
stateMachineNoState machine name (takes precedence over animation)
individualFramesNoAlso return each sampled frame as a separate full-size image (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.8.0
    • addedInput schema / properties / artboard / description
      Added value: +"Artboard name (default: first artboard)"
    • addedInput schema / properties / stateMachine / description
      Added value: +"State machine name (takes precedence over animation)"
  2. First observedv0.5.0

TDQS

A4.4/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 well: it discloses all five return artifacts and what each is for (onion skin for trajectories/direction vs facing, motion vectors computed from file data, objective metrics + lint). It stops short of stating cost/failure behavior (e.g. what happens if the path is invalid or the scene has no animation), 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.

Conciseness5/5

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

Front-loaded with the one-line purpose, then a numbered enumeration of returns, then the workflow imperative. Dense but every sentence earns its place — no restating of the tool name, no filler.

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 7-parameter, no-output-schema tool, the description covers the return surface thoroughly and tells the agent the decision procedure. The remaining gap is that only one of the seven checklist axes ('spatial/directional coherence') is named, so the agent cannot pre-anticipate the scoring rubric without the call result.

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 100%, so every parameter (path, width, frames, artboard, animation, stateMachine, individualFrames) is already documented with defaults and ranges. The description only adds the 'N frames left→right' framing and doesn't clarify precedence between animation and stateMachine or the token tradeoff of width/frames, so baseline 3 applies.

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 ('One-call review bundle for the render→critique→revise loop') and enumerates exactly what it returns: filmstrip, onion skin, motion report, metrics/lint, and a 7-axis checklist. This clearly separates it from siblings like riv_lint, riv_visual_diff, and riv_render_gif, which each cover only a slice of this bundle.

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

Usage Guidelines5/5

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

Explicitly frames the when ('render→critique→revise loop') and the when-next ('score each axis 1-5, fix anything below 4 (riv_edit / regenerate), then re-run'). It even names the alternative tool to use for fixes and sets a minimum iteration count ('at least twice'), leaving almost no scheduling inference to the agent.

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