Skip to main content
Glama

testUniformResponsiveness

Tests whether each shader effect uniform changes the rendered output by comparing frames after setting alternate values, revealing controls that fail to respond.

Instructions

For each uniform control the tool finds two values that differ from the value the loaded program set: a range control's farther 25%/75% point and its 38.2% point, a dropdown's other choices, a boolean's opposite, or a vector moved a quarter of its range. It first opens the control's ui.enabledBy gate by setting the gate params (enabled_with). It captures the output twice (the second against the first measures how much the output changes between renders on its own), then sets each value and compares at paused t=0 and t=0.37. A control responds when the luma, a per-channel mean or the per-pixel mean (64x64 grid) changes by more than 0.002, or more than 0.05% of all pixels change by more than 16/255 (strong_fraction); when the output changes on its own, only well beyond that change. A control that does not respond is retried with one other control moved (context). Results per uniform: pass, fail, error, gated (a compile-time define or a gate that cannot be opened), unstable (no verdict: the output changes between renders by more than the thresholds), or untested (no other value can be set at run time). Status is ok when at least one control was measured and every measured control responded; error when one could not be measured or got no verdict (unstable); otherwise fail when one did not respond; skipped when no control could be set at run time (every control gated or untested). Async overlays are awaited, up to the session timeout (settle_timed_out).

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

Input Schema

NameRequiredDescriptionDefault
backendNoRendering backendwebgl2
effectsNoComma-separated effect IDs
effect_idNoOne effect ID, such as "synth/noise"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

B3.2/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 so unusually well: it discloses detection thresholds (0.002 luma, 0.05% pixels > 16/255), the two-timepoint comparison at t=0 and t=0.37, the self-change baseline render, the one-control retry for context, and full status semantics including settle_timed_out. The notable omission is side effects on the loaded program – it sets values and opens gates but never says whether original uniform/gate state is restored afterwards, nor that this is non-read-only and render-heavy.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

A single dense run-on block with the actual purpose buried mid-sentence and numeric implementation trivia (38.2% point, 64x64 grid) interleaved with result semantics. Much of the detail is legitimately useful for interpreting verdicts, but the lack of front-loading and any structural separation makes it hard to scan.

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 complex, stateful, render-driven test tool with no output schema, the description defines every result status and the conditions producing them, which is what an agent most needs. The gaps are prerequisites (program loading, effect selection) and side-effect/reversibility disclosure rather than result interpretation.

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 the backend enum, effects, and effect_id are already documented in structured form; baseline 3 applies. The description adds no meaning about parameter usage – it never ties the outcome to which effects are tested or how scope selection affects the run.

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 does convey a specific resource (uniform controls) and operation (probe two differing values and compare renders to see whether the control responds), and the pass/fail/gated/unstable taxonomy makes the intent recoverable. However, the purpose is never stated in a single plain opening clause – the agent has to reconstruct 'tests whether uniforms affect output' from the mechanism described. No sibling differentiation is offered even though testPixelParity and testNoPassthrough sit nearby.

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 explicit when-to-use, when-not-to-use, or alternative named. The text references 'the loaded program' and a 'session timeout' without explaining prerequisites, and never says how to choose between the effect_id and effects parameters or whether a prior compile/load step is required.

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