Skip to main content
Glama

compileEffect

Compiles shader effects and returns per-pass diagnostics for WebGL2 or WebGPU backends, with batch validation from comma-separated effect IDs.

Instructions

Compile a shader effect. Return diagnostics for each pass. Use comma-separated effect IDs for a batch.

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

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

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description bears the full disclosure burden. It reveals the return shape ('diagnostics for each pass') but says nothing about whether compilation is expensive, whether it caches or mutates anything, how failures surface, or whether compilation is required before renderEffectFrame.

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 sentences, front-loaded with the action and the return value, with no filler. Nothing is redundant, though the final sentence is closer to schema echo than description-level insight.

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 three-parameter tool with no output schema and no annotations, the definition covers the basic action and return category but leaves the dual-ID parameter model and failure behavior unexplained. It is minimally adequate rather than complete.

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 coverage is 100%, so backend, effects, and effect_id are already documented in structured form; baseline is 3. The description reinforces the comma-separated batch format for 'effects' but leaves the relationship between 'effect_id' and 'effects' (precedence or mutual exclusivity) unstated in both places.

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?

States a specific verb and resource ('Compile a shader effect') and adds what the call returns ('diagnostics for each pass'), which separates it from analysis-style siblings such as analyzeEffect or checkShader. It stops short of naming which sibling to use when compilation is not what's needed.

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?

The only usage-like sentence is 'Use comma-separated effect IDs for a batch', which is parameter mechanics rather than when-to-use guidance. There is no statement of when to compile versus check, analyze, or render, and no prerequisites such as whether an effect must exist in the library first.

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