Skip to main content
Glama

searchShaderKnowledge

Search curated shader documentation by meaning to find DSL grammar, GLSL techniques, effect patterns, and fixes for common errors. Filter results by category to resolve shader questions.

Instructions

Search curated shader documentation by meaning: DSL grammar, GLSL techniques, effect patterns, common errors, and the shader-craft references (workflow, subject routing, SDF modeling, noise, terrain, water, rendering pipeline, library functions, recreating a reference video).

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": {
      "query": "<query>"
    },
    "name": "searchShaderKnowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results
queryYesNatural language query
categoryNoFilter by category (dsl, glsl, technique, errors, shader-craft, etc.)

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 provided, so the description carries the full disclosure burden. 'By meaning' is genuinely valuable behavioral information that signals semantic rather than keyword matching and implies ranked relevance results. It says nothing about ranking, result size/shape, or whether the corpus is static, which leaves meaningful gaps for an unannotated tool with 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?

Front-loaded with verb, resource and matching mode in the first few words, which is the right ordering. The trailing parenthetical enumeration is long but each item maps to an actual corpus domain, so it mostly earns its place rather than being padding.

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?

Three simple parameters with full schema coverage make this a low-complexity tool, and the description covers what is searchable. Still, with no annotations and no output schema, it never characterizes what a result is (documentation chunks, ranked passages, citations), leaving the agent to guess the return shape.

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 three parameters are already documented, making 3 the baseline. The description's domain list lightly reinforces what the category filter accepts (dsl, glsl, technique, errors, shader-craft), but adds no query syntax or limit behavior beyond the schema.

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 ('Search') plus a specific resource ('curated shader documentation') and adds the distinguishing mechanism 'by meaning', then enumerates the content domains covered. An agent knows exactly what corpus is being queried. It stops short of naming how it differs from siblings like searchShaderLibrary or searchShaderSource, so it is clear but not sibling-differentiated.

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 enumerated domains (DSL grammar, GLSL techniques, errors, shader-craft references) implicitly tell the agent when this tool applies, which is real signal. However there is no explicit when-to-use/when-not guidance and no routing statement pointing at searchShaderLibrary or searchShaderSource for other corpus types.

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