Skip to main content
Glama

godot_lint_shader

Lint .gdshader files to detect errors, warnings, deprecations, and performance issues before running your Godot project.

Instructions

Lint a shader file for errors, warnings, deprecations, and performance issues.

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

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. It usefully discloses the classes of findings returned (errors, warnings, deprecations, performance issues), which hints at the result shape, but it says nothing about whether the operation mutates anything, whether the shader must belong to the open project, or how results are structured or ordered.

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 front-loaded sentence with no filler; the scope and the categories of findings come first. Slightly more structure could have separated scope from the enumerated checks, but nothing is wasted.

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?

No output schema and no annotations, so the description should do more to explain what a lint run returns and when it is the right tool. Enumerating finding categories partially compensates, but the return format and the choice against sibling lint/analyze tools remain unspecified.

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?

Only one parameter and schema coverage is 100%, with the schema already stating 'Shader file path (.gdshader)'. The description adds no meaning beyond that — no notes on path resolution (absolute vs project-relative) or handling of missing files — so the 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?

States a specific verb (lint) and resource (a shader file) and enumerates the finding categories: errors, warnings, deprecations, performance issues. That is clear enough to distinguish a lint pass from analysis siblings in spirit, but it never names or contrasts with godot_lint_all_shaders, godot_lint_project, or godot_analyze_shader.

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?

No when-to-use guidance, no prerequisites, no alternatives. The singular 'a shader file' faintly implies single-file scope versus the sibling lint_all_shaders/lint_project tools, but the definition never states that routing, so an agent must infer it from names alone.

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