Skip to main content
Glama

godot_detect_dead_code

Find potentially unused functions, variables, and signals across a Godot project or a specified path to help you identify dead code and clean up your codebase.

Instructions

Find potentially unused functions, variables, and signals across the project.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "godot_detect_dead_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath to analyze (default: project root)

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 behavioral burden. The hedge "potentially" is genuinely useful — it tells the agent results are heuristic and may contain false positives rather than being a definitive dead-code list — but nothing is said about cost, project-wide scan scope limits, or whether files are modified.

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 the resource list, with zero filler. It is arguably too terse rather than padded, which is a completeness concern rather than a structural one.

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 an analysis tool with no annotations and no output schema, the definition leaves the agent guessing about the result shape (a flat list? grouped by symbol type? file locations?) and any false-positive caveats beyond the word "potentially". It is minimally sufficient to select the tool but not to interpret its output.

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% and there is a single optional path parameter already documented as "default: project root", so the schema does the work. The phrase "across the project" slightly reinforces that omitting path means a whole-project scan, which is marginal added meaning.

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?

"Find" supplies a specific verb and the description enumerates the resources it covers in GDScript terms (functions, variables, signals) plus the scope (across the project). An agent can distinguish this from file-level tools like godot_find_unused_files, though the description never names a sibling to sharpen the boundary.

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 when-to-use statement, no prerequisite (e.g. project must be parseable), and no mention of alternatives such as godot_find_references for confirming a suspected dead symbol. The only usage signal is implicit in "potentially unused".

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