Skip to main content
Glama

The project's files as a graph: unused, why used, what a scene loads

godot_deps
Read-onlyIdempotent

Trace what loads what in a Godot project: find unused files, see why a file is reached, list a scene's dependencies, and detect ext_resource cycles. Read-only.

Instructions

Follow what loads what, from where the game starts (main scene, autoloads, every res:// path in project.godot, export include filters, the shipped file list from godotwright.json, add-ons, tests, editor scripts), through ext_resource, preload, load, class_name, folders and file names the code builds paths from, textures next to models and import settings. op unused: files nothing reaches, biggest first, whole folders as one line (when in doubt a file counts as used, so the list can be trusted). op why (file): the chain from the game to the file, before you delete or move it. op of (file): what a scene or resource loads with it, biggest first, what it can load later, and paths that do not exist. op cycles: scenes or resources that load each other through ext_resource, which Godot cannot load (it reports "[ext_resource] referenced non-existent resource" for a file that is there). Read-only.

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": {
      "op": "<op>"
    },
    "name": "godot_deps"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYesunused, why, of or cycles
fileNowhy and of: the res:// file
pathNoproject folder, or a file or folder inside it (relative to the server's folder; default: the current project)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / properties / path / description
      Previous value: -"The project folder, or any file or folder inside it (Godotwright walks up to project.godot). Relative paths start at the server's folder. Default: the current project."New value: +"project folder, or a file or folder inside it (relative to the server's folder; default: the current project)"
  2. Addedv0.2.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, so the description is not obliged to repeat safety. Instead it discloses how reachability is computed (main scene, autoloads, project.godot paths, export include filters, shipped file list, add-ons, tests, editor scripts) and the conservative heuristic that doubtful files count as used — exactly the caveat an agent needs before trusting an `unused` list. It also explains the misleading Godot error for cycles, which is real diagnostic context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core statement is front-loaded, but the first sentence is a single sprawling clause whose parenthetical list of a dozen discovery roots is hard to parse on first read. The op definitions are at least delimited by backticks and each explains its output ordering ("biggest first", "whole folders as one line"). Content earns its place, but the packaging would benefit from breaking the root enumeration out.

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?

With no output schema, the description carries the burden of describing returns and does so per op: sorted-by-size results with folder collapsing, the chain to a file, forward and deferred loads plus missing paths, and mutually-referencing scenes. That covers all four enum branches with no orphaned case. The only gap is the `path` scoping behavior, which is left to the schema.

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%, so the schema already documents `op`, `file`, and `path`. The description binds `file` to the `why` and `of` ops, which is a modest addition, but it says nothing about the `path` parameter (project root, file, or folder) beyond what the schema states. Baseline 3 is appropriate 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?

The opening states a concrete analytical action ("Follow what loads what") over a specific resource (the project's files as a graph), and the title reinforces the three payloads: unused, why, what a scene loads. The four ops are named with individual meanings, so an agent can tell this apart from a plain scan. It stops short of 5 because it never names a sibling (e.g. godot_usages, godot_scan) to draw the boundary explicitly.

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

Usage Guidelines4/5

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

Each op carries its own trigger: `why` is framed as the pre-check "before you delete or move it", `unused` is framed as trustworthy because "when in doubt a file counts as used", `cycles` is tied to the specific Godot error it diagnoses. That is genuine when-to-use guidance at the sub-command level. There are no explicit when-not-to-use statements or routing to alternative tools, which keeps it below 5.

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