Skip to main content
Glama

godot_analyze_shader

Analyze a .gdshader file to extract uniforms, varyings, and functions with complexity metrics and performance hints so you can review and optimize shader code.

Instructions

Deep analysis of a .gdshader file - uniforms, varyings, functions, complexity metrics, and performance hints.

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": {
      "file": "<file>"
    },
    "name": "godot_analyze_shader"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesShader file path (.gdshader)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full load: it discloses the output categories (uniforms, varyings, functions, complexity metrics, performance hints), which is real value since there is no output schema. It does not state that the operation is strictly read-only/non-mutating, what happens on a missing or unparsable file, or whether #include dependencies are resolved.

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?

One front-loaded sentence with the resource and the return categories in priority order; no filler, no redundancy.

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 single-parameter, read-only analysis tool with no output schema, enumerating return categories covers most of what an agent needs before calling. Remaining gaps (mutability confirmation, error behavior) are minor given the low complexity.

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% for the single 'file' parameter, so the schema already documents path semantics and the required .gdshader extension; the description's mention of '.gdshader file' only restates it. Baseline 3 applies when the schema does the heavy lifting.

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+resource ('Deep analysis of a .gdshader file') and enumerates the categories it surfaces (uniforms, varyings, functions, complexity metrics, performance hints), so the agent knows exactly what it gets. It does not, however, explicitly distinguish itself from close siblings like godot_lint_shader, godot_shader_performance, or godot_get_shader_docs.

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 adjective 'deep' implies a broader inspection pass than a lint or a performance check, which is meaningful implied guidance. But there is no explicit when-to-use, no when-not-to-use, and no named alternative for the overlapping shader tools in the sibling set.

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