Skip to main content
Glama
devladinci
by devladinci

Get import dependencies

get_deps

Map import dependencies for a file or directory to reveal what it imports and what depends on it, supporting impact analysis before refactoring.

Instructions

Import graph for one file OR a whole directory/package: what it imports and who imports it. Directory mode aggregates edges (N files -> target). Use for impact analysis before refactoring ("what breaks if I change this package?").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesFile or directory path relative to the repo root.
directionNoWhich edges to show.both

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden, and it explains important behavior: directory mode aggregates edges (N files -> target) and the graph includes both imports and importers. It doesn't detail result shape or directory-scale caveats, but for a non-mutating read tool it is fairly transparent.

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?

Three tight sentences; core behavior is front-loaded, then the special directory-mode behavior, then one practical use case. No repetition or filler.

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 two-parameter read-only graph query with no output schema, the description plus schema covers the caller's main needs: path semantics, edge direction options, directory aggregation, and a motivating scenario. The main gap is that no explicit return structure or size/performance caveat is given.

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 already 100%, so the baseline is 3; the description adds extra meaning by explaining that 'what it imports' corresponds to outgoing edges and 'who imports it' to incoming edges, and by clarifying directory mode as an aggregation behavior for the file parameter.

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 description clearly identifies the tool as an import-graph query covering both outgoing and incoming edges for a file or directory/package. It is specific about what it does, though it doesn't explicitly contrast it with siblings like get_references or find_symbol.

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?

It gives a concrete use case ('impact analysis before refactoring') and when directory mode applies, which orients the agent toward selecting this tool. It doesn't state when not to use it or name alternatives, so it falls just short of full guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devladinci/hebros-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server