Skip to main content
Glama

testPixelParity

Renders an effect using both WebGL2 and WebGPU, then compares the outputs pixel by pixel within an epsilon tolerance to verify backend parity.

Instructions

Render with both WebGL2 and WebGPU. Compare the output pixel by pixel within the epsilon tolerance.

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

Input Schema

NameRequiredDescriptionDefault
seedNoRandom seed for reproducible noise
effectsNoComma-separated effect IDs
epsilonNoAllowed per-channel difference (0-255)
effect_idNoOne effect ID, such as "synth/noise"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the two-backend render-and-diff mechanism and that epsilon governs tolerance, but it does not say what a run returns (boolean, diff count, image), whether a mismatch throws or is reported, or how expensive a dual-backend render is. Those are meaningful gaps for a test tool with zero annotation coverage.

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?

Two short sentences, zero filler, with the mechanism front-loaded and the tolerance condition following. Nothing is redundant and nothing needs trimming.

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?

Given four optional parameters, no nested objects, no annotations, and no output schema, the description covers the core mechanism adequately. The main missing piece is what the comparison produces and how failures surface, which matters more here because no output schema documents the return value.

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 four parameters (seed, effects, epsilon, effect_id) are already documented, including epsilon's per-channel 0-255 range. The description echoes epsilon's role but adds nothing about seed, the effect selection parameters, or how effects and effect_id interact. Baseline 3 is appropriate when the schema does the work.

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 names a concrete verb and mechanism: render the same content through both WebGL2 and WebGPU, then diff the two outputs pixel by pixel. That is specific enough to distinguish it from source-level siblings like compareShaders or checkAlgEquiv. It stops short of naming those alternatives explicitly, so the agent must infer the boundary itself.

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 only implied: an agent can infer this is the cross-backend rendering parity check, as opposed to structural or algebraic checks. There is no explicit statement of when to prefer it over compareShaders or checkShader, and no mention of preconditions such as the effect needing to compile first.

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