Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

dependency_graph

Read-onlyIdempotent

Analyze import relationships and dependencies across files or directories to reveal what each file imports and what imports it, helping you understand code architecture and assess change impact.

Instructions

Analyze import relationships and dependencies. Shows what each file imports and what imports it. Useful for understanding code architecture and impact of changes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dependency_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoAnalyze dependencies for a specific file
languageNoFilter by language
directoryNoAnalyze all files in a directory
max_filesNoMax files to analyze (default: 100)

Output Schema

NameRequiredDescriptionDefault
fileYes
importsYes
importersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and closed-world behavior, so safety is covered. The description adds genuinely useful behavioral context by stating the result covers both import directions, but it says nothing about how a large codebase is handled, whether the graph is truncated at max_files, or what happens when no scope argument is supplied.

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?

Three short sentences: purpose first, output shape second, use case last. Nothing is redundant, though the third sentence is the weakest and could carry more specific routing value.

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

Completeness3/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-value explanation is unnecessary, and annotations cover safety. The gap is that all four parameters are optional and the description never says what an argument-free call does (whole repository? current directory?), which is a meaningful behavioral question for an analysis tool of this scope.

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 four parameters (file, language, directory, max_files) are already fully documented and the baseline is 3. The description adds no meaning beyond the schema, such as how the parameters interact when both file and directory are supplied or what the default unscoped behavior is.

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 gives a specific verb and resource ('Analyze import relationships and dependencies') and clarifies the output shape ('what each file imports and what imports it'), which is more than a restatement of the name. It does not, however, distinguish itself from plausible siblings such as call_graph, find_references, or change_impact, so the agent must infer 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 through 'Useful for understanding code architecture and impact of changes', which hints at architectural study and change-impact analysis. There is no explicit when-to-use vs. when-not guidance and no named alternative for impact analysis or reference lookup, leaving the agent to guess.

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