Skip to main content
Glama

godot_shader_performance

Analyze shader complexity and grade performance issues in .gdshader files. Returns optimization recommendations to improve rendering efficiency.

Instructions

Analyze shader performance - complexity score, grade, and optimization recommendations.

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_shader_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesShader file path (.gdshader)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/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 burden, and it does disclose the shape of the output (score, grade, recommendations), which is valuable since there is no output schema. However, it says nothing about side effects, whether the file must exist or be parseable, what happens on a malformed shader, or the scale behind the 'grade' — all relevant for an unannotated 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?

One sentence, front-loaded with the verb and resource, then the payoff list. Nothing is wasted, though the extreme terseness leaves the gaps above unaddressed.

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 read-style analyzer, the description covers purpose and output contents adequately. It stops short of routing guidance against several sibling analyzers and of explaining what a 'grade' or 'complexity score' actually means, which an agent would need to interpret results.

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 coverage is 100% for the single 'file' parameter, including the .gdshader extension hint, so the schema does the documentation work. The description adds no meaning beyond it — no note on relative vs absolute paths or project-relative resolution. Baseline 3 applies.

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 pairs a specific verb ('Analyze') with a specific resource ('shader performance') and enumerates what the analysis produces: complexity score, grade, and optimization recommendations. It is clear what the tool does, though it does not distinguish itself from near-neighbors like godot_analyze_shader or godot_get_performance_guide.

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

Usage Guidelines2/5

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

There is no guidance on when to reach for this tool versus godot_analyze_shader, godot_lint_shader, or godot_get_performance_guide, and no stated prerequisites. An agent must infer from the name alone that this is the performance-specific path, which is exactly the kind of choice the description should resolve.

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