Skip to main content
Glama

vfx_shader_write

Creates or replaces WGSL VFX shader nodes for Roblox. Uses a hash check to prevent overwriting changed files and returns validation results.

Instructions

Creates a node, or replaces one whole. Replacing needs replaces: the hash from vfx_shader_read or your last write or edit; if the file changed since, nothing is written and the current hash comes back. Answers the new hash and the verdict (state, problems with line:column in your source, parameters). Read vfx_guide node first.

Input Schema

NameRequiredDescriptionDefault
nameYesNode name in the library, like ring/shock (letters, digits, _ and -)
sourceYesWGSL that defines fn effect(uv: vec2f) -> vec4f
replacesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses optimistic concurrency behavior, that stale writes are rejected, the new hash is returned, and that verdict details include state and line:column problems. It does not cover permissions, side effects, or whether replacement is reversible.

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?

The description is compact and front-loaded: creation/replacement semantics first, then the hash requirement, then return behavior, then the prerequisite guide. Every sentence adds useful information with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write tool with no annotations and no output schema, the description is nearly complete: it explains the mutation model, concurrency guard, returned hash/verdict, and prerequisite guide. The main remaining gap is that it does not discuss permissions or broader side effects.

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

Parameters4/5

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

Schema coverage is 67%, and the description fills the main gap by explaining that 'replaces' must be a hash from vfx_shader_read or the last write/edit, plus what happens if the hash is stale. Name and source are already described in the schema, so the description adds targeted value rather than repeating them.

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 states a specific verb and resource: creates a node or replaces one whole. The phrase 'replaces one whole' implicitly distinguishes this from partial editing via vfx_shader_edit, but it does not explicitly name or contrast the sibling tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides clear context for replacement: you must pass a hash from vfx_shader_read or your last write/edit, and the write is skipped if the file changed. It also directs the agent to read vfx_guide first. It does not explicitly say when to use this versus vfx_shader_edit for partial changes.

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