Skip to main content
Glama

Follow the import graph

snapshot_dependents
Read-onlyIdempotent

Shows a file's imports and which files import it, so you can see what breaks if you change it without reading the code.

Instructions

For one file in the snapshot: what it imports, and which files import it. Answers "what breaks if I change this?" without reading the parts.

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": "snapshot_dependents"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSnapshot-relative path, exactly as snapshot_locate or manifest.files[] reports it.
rootNoRepository root. Defaults to the directory this server was started in.
limitNoMaximum entries per direction.
outDirNoSnapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir.
directionNoWhich edges to return.both

Output Schema

NameRequiredDescriptionDefault
pathNo
importsNo
importedByNo
unresolvedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds only the implicit trait that file contents are not read. It says nothing about truncation behavior at the limit cap, cost, or ordering of results.

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

Conciseness5/5

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

Two sentences, front-loaded with the subject and scope, followed by one concrete use case. No filler, no restatement of the tool name.

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?

An output schema exists, so return-shape explanation is unnecessary, and all five parameters are documented in the schema. The description is nearly complete, missing only a note that results are capped per direction by limit, which matters when the graph is large.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with per-parameter descriptions and an enum for direction, so baseline is 3. The description does add a small amount of meaning by framing the two directions as a paired question ('what it imports, and which files import it'), reinforcing the default both behavior.

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 pair: it returns a single file's outgoing imports and its incoming importers, scoped to 'one file in the snapshot'. That is clearly distinguishable from general code-reading tools, though it never names a sibling (e.g. snapshot_neighbors) that might return a similar graph view.

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?

The phrase 'Answers "what breaks if I change this?"' gives a motivating scenario for use, and 'without reading the parts' hints at a lightweight alternative to reading files. However, it never explicitly states when to prefer this over alternatives, nor that the impact-analysis case specifically requires direction=imported-by.

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