Skip to main content
Glama

Run the Rive CLI (headless)

rive_cli

Run the Rive CLI to create, verify, and build interactive Rive animations from text .rml project files without the editor, including headless screenshots and input simulation.

Instructions

Run the Rive command-line tool to make interactive Rive animations from text project files (Rive Markup Language, .rml), without the Rive editor. Common: ["create", ""] scaffolds a project (it includes AGENTS.md/CLAUDE.md: read them first); ["", "--verify"] checks it compiles; ["", "--once"] builds build/.riv; ["--help"] or ["", "--help"] for everything else (rendering frames, tests). Headless captures: [".", "--screenshot", "--advance=1"] renders build/.png; add --pointer/--touch/--key/--data to simulate input, --data-dump/--semantics for state. Anything that opens a window (the previewer, --serve/--device without --headless-serve, rive open) is refused. push/pull/login touch the user's Rive account: only when asked.

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": {
      "args": "<args>",
      "cwd": "<cwd>"
    },
    "name": "rive_cli"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYesFolder to run in, usually the job's rive/ folder
argsYesArguments after `rive`, e.g. ["mascot", "--verify"]
timeoutMinutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true and destructiveHint=false; the description adds far more: which commands are refused for headless safety, that scaffolded projects contain AGENTS.md/CLAUDE.md which should be read first, that builds land in build/<name>.riv and screenshots in build/<name>.png, and that push/pull/login reach the user's Rive account. Nothing here contradicts the annotations — mutation of build artifacts is consistent with readOnlyHint=false and destructiveHint=false.

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?

Front-loaded purpose sentence followed by a dense but organized list of command patterns; nearly every clause carries operational information. The bracketed array-literal notation is terse to the point of requiring the schema to parse cleanly, and the long push/pull/login caveat could be tightened.

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 free-form CLI wrapper with no output schema, the description covers invocation patterns, side-effect locations, refusals, and account-touching risk well. It never says how output or errors are surfaced (stdout capture, non-zero exit) or how timeoutMinutes behaves, which leaves a modest gap for an agent debugging a failed run.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the description compensates well for the free-form `args` parameter by spelling out concrete argument vectors in the same array-of-strings shape the schema expects, including input-simulation flags (--pointer/--touch/--key/--data) and state flags (--data-dump/--semantics). It does not touch `timeoutMinutes`, the one undocumented parameter, which keeps it from a 5.

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?

Opens with a specific verb and resource: 'Run the Rive command-line tool to make interactive Rive animations from text project files (Rive Markup Language, .rml), without the Rive editor.' It names the input format and the excluded alternative (the editor), so an agent can distinguish this from sibling CLI runners like godot_cli without inspecting 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 Guidelines5/5

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

Gives explicit when-to-use recipes ('create' to scaffold, '--verify' to check compilation, '--once' to build, '--screenshot'/'--advance=1' to capture, '--help' for everything else) plus an explicit when-not: window-opening commands (previewer, --serve/--device without --headless-serve, `rive open`) are refused. It also gates account-touching operations (push/pull/login) behind 'only when asked'.

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