Skip to main content
Glama

checkEffectStructure

Detects shader effect structure issues such as unused files, broken references, naming violations, leaked or undefined uniforms, missing descriptions, parity problems, and GLSL name collisions.

Instructions

Detect these effect issues:

  • unused files

  • broken references

  • naming violations

  • leaked or undefined uniforms

  • missing descriptions

  • structural parity issues

  • GLSL name collisions: uniforms versus functions, reserved words, or built-in shadowing.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

C2.9/5.0
Behavior2/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, yet it never states whether the check is read-only or mutates files, whether it requires a built effect, or how results are surfaced. Enumerating check categories is useful scope information, but for an unannotated tool with no output schema this leaves the mutation/safety profile entirely undisclosed.

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?

The bulleted list is compact and each item earns its place by naming a distinct check. It would be stronger with a single lead sentence stating the overall purpose before the enumeration, since the list currently has to carry the framing on its own.

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 lint-style tool with no annotations and no output schema, the description covers what is checked but not what comes back (a list of findings? a boolean?) or whether it is safe to call repeatedly. The scope enumeration is solid; the result-shape and safety gaps keep it at minimum-viable completeness.

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?

Only one parameter (effect_id) exists and the schema already documents it at 100% coverage with an example format ('synth/noise'). The description adds no additional meaning about the identifier, so the baseline 3 for full schema coverage applies.

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 concrete verb ('Detect') and enumerates the seven specific issue classes it inspects in an effect (unused files, broken references, naming violations, uniform leaks, missing descriptions, structural parity, GLSL name collisions). That is far more specific than a restated name. It does not, however, distinguish itself from siblings like checkShader or checkAlgEquiv, leaving the agent to infer which checker covers which concern.

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 guidance on when to call this versus checkShader, analyzeEffect, or compileEffect, and no stated preconditions (e.g. must the effect compile first?). The list of detected issues implies a linting use case but never says so explicitly or names an alternative.

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