Skip to main content
Glama

checkAlgEquiv

Compare GLSL/WGSL shader pairs semantically with AI to flag divergent algorithms while ignoring syntax differences.

Instructions

Compare the semantics of GLSL/WGSL pairs with AI. Flag divergent algorithms. Ignore syntax differences.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "effect_id": "<effect_id>"
    },
    "name": "checkAlgEquiv"
  }
}

Input Schema

NameRequiredDescriptionDefault
effect_idYesEffect ID (e.g., "synth/noise")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

B3.4/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 burden. It does disclose genuinely useful behavior: the comparison is AI-driven (implying non-deterministic, likely slower/costlier than a static check) and it reports divergent algorithms rather than syntax deltas. It omits what happens when an effect lacks one of the variants, and it does not describe the response shape despite there being no output schema.

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, front-loaded fragments with no filler; the comparison scope and the output intent come first. 'With AI' is the only slightly vague phrase, but it earns its place by signalling the semantic approach.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter tool with no annotations and no output schema, the definition covers what is compared and what is reported, but not the failure mode when one shader variant is missing or how results are returned. Adequate to trigger the tool, not complete enough to predict its behavior.

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?

There is a single parameter with 100% schema description coverage, so the baseline is 3. The description adds nothing about how an effect_id resolves to a GLSL/WGSL pair; if anything, the word 'pairs' raises a question the schema does not answer.

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 gives a specific verb and resource: compare the semantics of GLSL/WGSL pairs and flag divergent algorithms. An agent can tell it is a semantic, not textual, comparison. However, it never distinguishes itself from the closely named sibling compareShaders, and it says 'pairs' while the schema takes a single effect_id, leaving the pairing mechanism unexplained.

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?

'Ignore syntax differences' implies when this tool is appropriate (semantic rather than textual equivalence checking), which contrasts implicitly with a diff-style comparison. But there is no explicit when-to-use, when-not-to-use, prerequisite list, or named alternative against the many sibling tools such as compareShaders or checkShader.

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