Skip to main content
Glama

renderEffectFrame

Render a single shader frame to compute mean RGB values, variance, and blank or monochrome detection, with optional PNG capture for visual verification.

Instructions

Render one frame. Compute mean RGB, variance, and monochrome/blank detection. Optionally capture a PNG.

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": "renderEffectFrame"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeNoTime in seconds at which to pause and render the frame
backendNoRendering backendwebgl2
effectsNoComma-separated effect IDs
uniformsNoValues that override uniforms
effect_idNoOne effect ID, such as "synth/noise"
resolutionNoViewport resolution as [width, height]
capture_imageNoCapture the frame as a PNG data URI
warmup_framesNoFrames to wait before capture

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the computed metrics and that PNG capture is optional, which is genuinely useful behavior beyond the schema, but it omits whether rendering has side effects, where the captured data lands, and any GPU/performance cost of rendering a frame.

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 short sentences with the core action front-loaded and zero filler. It is terse to the point of being telegraphic, but no sentence is wasted.

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?

For an eight-parameter rendering tool with nested objects, no annotations, and no output schema, the description says nothing about the shape of the returned metrics, how a captured data URI is returned, or defaults/constraints on time and resolution. It is under-specified relative to the tool's 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 100%, so all eight parameters are documented in the schema and the baseline is 3. The description only loosely echoes capture_image via "Optionally capture a PNG" and adds nothing about how effects/uniforms/time interact.

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 opens with a specific verb and resource ("Render one frame") and then names the outputs (mean RGB, variance, monochrome/blank detection), which distinguishes it from siblings like describeEffectFrame and analyzeEffect. It does not explicitly name any sibling as an alternative, so it stops short of a 5.

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 when-to-use or when-not-to-use guidance, and no mention of the many analysis siblings (analyzeEffect, benchmarkEffectFPS, testPixelParity) that an agent must choose between. The only implied context is that this is for single-frame inspection, leaving routing entirely to inference.

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