Skip to main content
Glama

Dependency graph and port order

re_graph
Read-onlyIdempotent

Builds a project dependency graph from imports, includes, requires, engine resources and type references to reveal entry points, cycles, orphans and port order.

Instructions

Builds the dependency graph of a project: imports/includes/requires, Godot res:// loads and scene resources, Unity script/prefab GUIDs, and type references (C#, GDScript class_name/autoloads, Java…). JS/TS monorepos: imports of workspace packages by name, tsconfig paths aliases, package.json #imports and Deno import maps resolve to their files, and a workspace section shows which package uses which. Returns entry points, cycles, orphans, most-used files, external packages and the port order (dependencies first). format:"mermaid" adds a diagram.

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": {
      "path": "<path>"
    },
    "name": "re_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesProject folder.
limitNoFiles in portOrder (default 30; edges 15, other lists 20). Larger values return more of every list.
formatNojson (default), mermaid or both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description earns credit for disclosing the full return surface (entry points, cycles, orphans, most-used files, external packages, port order) since there is no output schema, but it says nothing about scan cost or scope limits on very large projects, which matters for a whole-project graph build.

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?

Front-loaded with the core verb and resource, then progressively more specific detail about resolution targets and outputs. It is dense and slightly list-heavy ('Java…' truncation), but nearly every clause conveys distinct capability information rather than padding.

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?

For a three-parameter analysis tool with no output schema, the description does the important work of defining the result contents and the format option. The remaining gap is behavioral cost/scale guidance on large repositories, which is minor relative to how well the return surface is described.

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 explains path, limit and format. The description only adds marginal meaning—that format:"mermaid" 'adds a diagram'—and never mentions the limit parameter's effect on list sizes. 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?

States a specific verb and resource ('Builds the dependency graph of a project') and then enumerates exactly what kinds of edges it resolves (imports, res:// loads, Unity GUIDs, type references, workspace package imports) plus what the result contains. An agent knows precisely what the tool produces, though no sibling (e.g. re_refs, re_symbols, re_scan) is named 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 Guidelines3/5

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

Usage is only implied: the enumeration of graph outputs and the 'port order (dependencies first)' framing suggest it is for understanding project structure before porting, but there is no explicit 'use this when…' or 'use X instead for narrower reference lookups'. With siblings like re_refs and re_symbols in the catalog, routing guidance would have real value.

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