Skip to main content
Glama
RaviIITk
by RaviIITk

get_dependencies

Retrieve all files that a Python file transitively imports, enabling dependency analysis for a given file.

Instructions

Every file (workspace-relative path) that file transitively depends on via its import edges.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the core behavior: transitive dependency resolution via import edges. However, it omits details like cycle handling or response shape, though the output schema exists to cover return values.

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?

The description is a single, clear sentence with no wasted words. It is front-loaded with the key action and resource.

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?

Given one parameter, no annotations, and an existing output schema, the description adequately explains the tool's function. It could mention what the returned list contains (file paths), but the output schema likely covers that.

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?

The only parameter 'file' has no schema description (0% coverage), so the description compensates by specifying it expects a 'workspace-relative path', which adds meaningful context beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it returns every file a given file transitively depends on via imports. It distinguishes itself from siblings like get_callers and get_class_hierarchy by focusing on import dependencies, not callers or class hierarchy.

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 description implies use for dependency analysis but lacks explicit guidance on when to use this tool versus its siblings (e.g., get_callers, get_context). No mention of when not to use or alternatives.

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/RaviIITk/code-index'

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