Skip to main content
Glama

Render an animation to GIF

riv_render_gif

Generate animated GIF previews from Rive .riv animations or state machine idle states, so you can visually verify your files without opening the Rive editor.

Instructions

Render a .riv animation (or state machine idle playback) to an animated GIF file for preview.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fpsNoFrames per second (default 20)
pathYesPath to the .riv file
widthNoOutput width (default: artboard width, capped 800)
outPathNoOutput GIF path (default: alongside the .riv)
artboardNo
durationNoSeconds to render (default 2)
animationNoAnimation name (default: first state machine or animation)
backgroundNoCSS background color (default white — GIF has no alpha)
stateMachineNo
Behavior2/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. However, it only states the output format and purpose, omitting side effects such as file creation/overwriting, default output location, behavior with missing animations, or performance considerations. This is a significant gap for a tool that writes files.

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?

The description is a single sentence that front-loads the main action and outcome, with no redundant or unnecessary information. It is appropriately concise given the moderate complexity of the tool.

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?

Given the tool has 9 parameters, no output schema, and no annotations, a one-sentence description is insufficient. It does not explain return behavior, output file handling (e.g., default outPath), or the meaning of 'preview' in practical terms. The description is too sparse to fully guide an agent for a tool of this complexity.

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 78%, which is above the 80% threshold, so the baseline is 3. The description adds minimal context by mentioning 'state machine idle playback', which helps clarify the stateMachine parameter, but it does not significantly enhance understanding of the other parameters beyond what the schema already provides.

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?

The description clearly states the tool renders a .riv animation to an animated GIF, using the verb 'Render' and specifying the resource and output format. It distinguishes from sibling tools like riv_render_frame, riv_render_apng, and riv_render_video by explicitly targeting GIF output, and mentions 'for preview' as the intended use.

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

Usage Guidelines3/5

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

The phrase 'for preview' implies a context of use, but the description does not explicitly state when to choose this tool over alternatives like riv_render_apng or riv_render_video, nor does it mention any exclusions or when not to use it. Thus, usage guidance is only implicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ODU33104/rive-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server