Skip to main content
Glama

Create GLSL shader

create_glsl_shader

Generate a GLSL shader TOP by supplying fragment shader code; optionally add vertex shader, bind uniforms, and set output resolution.

Instructions

Create a GLSL TOP with a fragment shader (and optional vertex shader) supplied via Text DATs, with optional uniform binding and output resolution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parent_pathYesParent COMP to create the GLSL TOP inside.
nameNoName for the GLSL TOP (default 'glsl1').
fragment_shaderYesGLSL fragment (pixel) shader source.
vertex_shaderNoOptional GLSL vertex shader source.
uniformsNoOptional uniform declarations to best-effort bind on the GLSL TOP.
resolutionNoinput
Behavior4/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, so creating a new node aligns. The description adds that it creates a TOP with optional features, but does not disclose details like overwriting behavior or permissions. Still, it provides sufficient transparency for a non-destructive creation tool.

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?

Single sentence, no redundancy, front-loaded with key action and resource, every word adds value.

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?

The description covers all major aspects (creation, shader inputs, uniforms, resolution) but lacks details on return value or error states. Given no output schema and moderate complexity, it is fairly complete.

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 description coverage is 83%, so the schema already explains most parameters. The description adds context beyond the schema by mentioning 'Text DATs' and 'uniform binding', enriching parameter understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description specifies the verb 'Create', the resource 'GLSL TOP', and distinct features (fragment/vertex shader, uniforms, resolution) that differentiate it from sibling shader tools like apply_shader_from_vault.

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 description does not explicitly state when to use this tool over alternatives; usage is implied by the tool's specific functionality but no exclusion or comparison is provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Pantani/tdmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server