Skip to main content
Glama

checkShader

Analyzes GLSL/WGSL shader source to return advisory findings for Noisemaker effects without blocking compilation or changing files.

Instructions

Advisory GLSL/WGSL source findings for Noisemaker effects. Findings never block compilation or change a file.

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

Input Schema

NameRequiredDescriptionDefault
fileNoExisting shader file inside SHADE_EFFECTS_DIR or SHADE_PROJECT_ROOT. Relative paths use the project root.
sourceNoShader source text. Provide exactly one of source or file.
languageNoRequired for source text; otherwise inferred from .wgsl, .glsl, .frag or .vert.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

A3.5/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, and it does disclose two important traits: results are advisory and the tool never mutates files or blocks compilation. It stops short of describing finding severity/shape, behavior when a file is missing or invalid, or whether analysis is syntactic or semantic.

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 with zero filler; the scope statement leads and the non-blocking guarantee follows. Nothing is redundant or misplaced.

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 3-param, no-output-schema tool, the description covers the safety profile but leaves the return value under-described ('findings' is undefined in form or severity) and gives no indication of what a clean result looks like. Adequate but with clear gaps given there is no output schema to fall back on.

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% and each of the three parameters already documents its meaning and the exactly-one-of source/file constraint. The description adds no further parameter meaning, so the baseline 3 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?

Identifies the resource (GLSL/WGSL source for Noisemaker effects) and the operation (producing advisory findings), which distinguishes it from siblings like checkEffectStructure or checkAlgEquiv that operate at a different level. The verb is nominal ('findings for') rather than an explicit 'checks/lints', keeping it just short of maximally specific.

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?

The word 'Advisory' plus 'never block compilation or change a file' implies this is a pre-flight lint step rather than a gate, which is useful implied guidance. However, it never states when to prefer this over checkEffectStructure or compileEffect, nor any prerequisites or exclusions.

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