Skip to main content
Glama
@particlr/mcp
by brac

Render Effect

render_effect
Read-onlyIdempotent

CPU-rasterize a .prt particle effect into a PNG contact sheet or separate frames for deterministic, headless preview and iteration without a browser or GPU.

Instructions

CPU-rasterize a .prt effect to PNG image(s): by default one contact-sheet PNG of 16 frames evenly spaced over [0, completion||duration], auto-framed. All builtin + embedded-PNG textures, all five blend modes, flipbook, stretch/velocity-align/flip, per-particle + connect-ribbon TRAILS, and layer draw order are rendered; DISSOLVE is NOT rasterized (a dissolve doc still renders its sprites). Deterministic: frames snap to the same 1/60 trajectory as simulate_effect. Returns image block(s) + a renderHash, the snapped times, the viewport, and the grid. An invalid doc returns validate-shaped errors.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "render_effect"
  }
}

Input Schema

NameRequiredDescriptionDefault
docNoThe .prt document as a JSON string.
fpsNoFrames at 0, 1/fps, 2/fps … up to the range end (max 240). Overrides `frames`.
seedNoOverride the doc's authored seed. Default: the doc's seed.
timesNoExplicit render times in seconds (snapped to 1/60 boundaries). Max 64 entries, each <= 60s. Overrides frames/fps.
widthNoFrame width in px. Default 256; cap 1024 longest edge.
framesNoNumber of evenly-spaced frames over [0, completion||duration]. Default 16; max 64.
handleNoA handle from open_effect — use instead of doc to avoid resending the document.
heightNoFrame height in px. Default 256; cap 1024 longest edge.
layoutNo"sheet" (default): one contact-sheet PNG. "separate": one PNG per frame (same caps).
viewportNoExplicit world-space viewport. Auto-framed from a bounds scan (+12% margin) when omitted.
backgroundNoBackground: "checker" (default), "transparent", or a hex color (#rgb / #rrggbb / #rrggbbaa).
supersampleNoAnti-alias by rendering at 2x/4x then downsampling. Default off (crisp, byte-golden).
overrunSecondsNoRender past the loop seam: extends the frames/fps time range to duration + overrunSeconds. Looping docs only; ignored (with a warning) otherwise. Explicit `times` already accept any time.

Output Schema

NameRequiredDescriptionDefault
gridYesContact-sheet grid; null in separate mode.
layoutYes
viewportYes
warningsYes
frameWidthYes
imageCountYes
renderHashYeshex8 over normalizedDoc + seed + snapped times + size + viewport + bg — distinct from the sim statehash.
frameHeightYes
snappedTimesYesThe actual step-snapped render times (seconds).
completionTimeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds real context: what is and is not rasterized (DISSOLVE skipped, sprites still rendered), determinism at 1/60 snapping, and the returned payload (images, renderHash, times, viewport, grid). It stops short of noting cost or output size limits.

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?

Three dense sentences with the core action, the coverage caveats, and the return contract in that order — well front-loaded. The capitalized emphasis (NOT, DISSOLVE) is slightly noisy but serves a real warning.

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 13-parameter renderer with a full output schema and annotations, this covers the important gotchas: dissolve exclusion, deterministic trajectory, and error shape. Minor gaps like relative cost of supersample or how large 'separate' output grows are left to the schema.

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 is already documented, and much of the description (default 16 frames, 'sheet' default, auto-framing) repeats schema text. The one genuine addition is the '[0, completion||duration]' range semantics for frame spacing, which is worth having but does not exceed the baseline.

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+resource+output: 'CPU-rasterize a .prt effect to PNG image(s)', with the default output form (one contact-sheet PNG of 16 frames) named up front. It is clearly distinct from simulate_effect, which it names as the source of the same trajectory.

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?

Usage is implied through the default path and the note that handle can replace doc, and the mention of validate-shaped errors hints at validate_effect. But there is no explicit statement of when to pick this over simulate_effect or get_effect, and no exclusions beyond the DISSOLVE note.

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