Skip to main content
Glama

validate_shader_graph

Validates a Shader Graph asset by forcing a synchronous import and failing when deserialization, target resolution, Shader loading, or compiler checks report errors.

Instructions

Force synchronous import and fail unless GraphData deserializes, at least one target exists, no recognized serialized object is unresolved, a Shader asset loads, and ShaderUtil reports no compiler errors.

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": {
      "assetPath": "<assetPath>"
    },
    "name": "validate_shader_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetPathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.7.7

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose key behavior: the import is forced synchronous and the tool fails hard on five specific conditions. However, it says nothing about what is returned on failure (error text vs. exception), how long the forced sync import takes, or whether forcing import mutates/dirties project assets — material gaps for an unannotated mutation-adjacent tool.

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?

A single dense sentence with no filler, and the side effect (forced synchronous import) is front-loaded ahead of the pass/fail conditions. It is long but every clause carries a distinct validation rule.

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 validation tool with no annotations and no output schema, the description covers the validation semantics well but omits the return contract entirely — an agent cannot tell whether a failure surfaces as a thrown error, a structured result, or console output — and leaves the lone parameter undocumented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it contributes nothing about the single required parameter. The agent can only infer from the tool name that assetPath is a .shadergraph path, and must rely on the schema's regex for format constraints.

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 names the specific operation — force a synchronous import and fail unless a list of concrete conditions holds (GraphData deserializes, at least one target, no unresolved serialized objects, Shader asset loads, no ShaderUtil compiler errors). That is far more specific than a tautology, but it never frames the tool as a validation gate nor distinguishes it from siblings like validate_vs_graph or inspect_shader_graph.

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?

Usage is only implied: the enumerated failure conditions tell an agent this is a pre-flight/pre-commit check, but there is no explicit 'use this when', no 'do not use when', and no named alternative such as inspect_shader_graph for read-only inspection.

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