Skip to main content
Glama

get_dependencies

Read-onlyIdempotent

What a specific file imports/depends on. Use this to understand a file's place in the codebase before assuming what's available to it, or before moving/refactoring it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesRepo-relative path (e.g. "utils/knowledge_graph/graph_builder.py"). Matches by exact path first, then by suffix if no exact match (so "graph_builder.py" alone will still resolve if unambiguous).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

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

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description adds the behavioral context of returning file dependencies but does not disclose any edge cases, performance characteristics, or limitations. Since annotations handle the main safety traits, this is adequate but not rich.

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 two sentences, front-loaded with the core purpose and immediately followed by practical usage guidance. Every word earns its place, with no repetition of schema or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (1 parameter), has an output schema, and is covered by read-only/idempotent annotations. The description provides the intended use case and the schema fully documents the parameter. Together, this gives a complete picture for an agent to select and invoke the tool correctly.

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?

The input schema covers 100% of the parameter semantics, including a detailed description of file_path with resolution rules (exact match first, suffix fallback). The tool description itself adds no additional parameter detail beyond calling it a 'specific file,' which is redundant with the schema. Baseline 3 applies because the schema does the heavy lifting.

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 uses a specific verb and resource: 'What a specific file imports/depends on.' It clearly distinguishes from siblings like get_callees/get_callers by focusing on file-level dependencies rather than function-level relationships. The context ('understand a file's place in the codebase') further clarifies intent.

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?

The description provides explicit guidance on when to use this tool: 'to understand a file's place in the codebase before assuming what's available to it, or before moving/refactoring it.' It does not explicitly mention alternatives or exclusions, but the usage context is clear and actionable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a distinct aspect of code understanding: callees (outgoing calls), callers (incoming calls), dependencies (imports), symbol definitions (location/signature), and open-ended search. There is no overlap between them; search_code is explicitly positioned as the fallback for when exact symbols aren't known.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern: get_callees, get_callers, get_dependencies, get_symbol_definition, search_code. 'search_code' uses 'search' as the verb, matching the same structure. No camelCase or mixed conventions.

Tool Count5/5

Five tools is a well-scoped set for a code-intelligence server. Each tool covers a necessary query type without redundancy, and the count avoids the confusion of a large surface while being substantial enough to handle common codebase exploration tasks.

Completeness4/5

The set covers the main code navigation needs: caller/callee graphs, file dependencies, symbol definitions, and free-text search. Minor gaps exist, such as lacking direct file-content retrieval or type hierarchy queries, but these are often handled by search_code or are out of scope for a 'brain' server focused on relationships and definitions.