Skip to main content
Glama

godot_analyze_dependencies

Analyze a GDScript file to identify preloads, loads, signals, and autoloads it uses, clarifying dependencies for safe refactoring or debugging.

Instructions

Analyze script dependencies - preloads, loads, signals, autoloads used.

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

Input Schema

NameRequiredDescriptionDefault
fileYesScript file to analyze

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?

No annotations are supplied, so the description carries the full burden; it does disclose the categories of dependency examined, which is real behavioral content. However, it is silent on whether the analysis is direct-only or transitive/recursive, whether it reads the file or the whole project, and whether the operation is purely read-only. Those omissions matter for a dependency analyzer.

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 front-loaded sentence with zero filler; the enumeration of dependency types earns its place. It is efficient but borderline thin, since a single extra clause on scope or output would have materially improved it.

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, non-mutating analysis tool with no annotations and no output schema, the description covers the core question of what is analyzed. It leaves open the depth/scope of the analysis and the shape of the result, which are the main remaining unknowns for this tool.

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% with a single documented 'file' parameter, so the baseline is 3. The description adds no format, path-resolution, or relative-vs-resolved-path detail beyond the schema's 'Script file to analyze'.

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?

Specific verb+resource ("Analyze script dependencies") with an explicit enumeration of what counts as a dependency: preloads, loads, signals, autoloads. That enumeration meaningfully separates it from siblings like godot_analyze_scene or godot_find_references. It stops short of naming a sibling it is not, so it is a 4 rather than a 5.

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 or when-not-to-use guidance, no stated prerequisites, and no pointer to an alternative such as godot_analyze_autoloads or godot_find_references, both of which overlap in scope. The agent must infer the use case purely from the purpose statement.

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