Skip to main content
Glama
UrbanDiver

Local DeepWiki MCP Server

by UrbanDiver

get_cross_module_dependencies

Read-onlyIdempotent

Analyze Python repository structure by building an inter-module import dependency graph. Identifies heavily depended-on modules and outputs a Mermaid diagram.

Instructions

Build an inter-module import graph for a Python repository. Returns module nodes (with file counts and line counts), weighted directed edges, most-depended-on and most-dependent modules, and a Mermaid graph LR diagram.

No prior indexing required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYesPath to the repository
module_filterNoRestrict to modules whose label starts with this prefix (e.g. 'core' to scope to the core package)
include_externalNoInclude third-party and stdlib imports (default: false)
min_edge_weightNoMinimum import count for an edge to appear (default: 1)
top_nNoLimit output to the top N modules sorted by total edge count (default: 20, max: 500)
summary_onlyNoReturn only stats (module/edge counts) without full lists (default: false)
Behavior4/5

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

The description adds the key behavioral insight 'No prior indexing required,' which goes beyond the annotations (readOnlyHint, idempotentHint) to inform the agent about prerequisites. It also outlines the return structure, though it omits potential performance considerations for large repositories.

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 extremely concise: two sentences that cover purpose, outputs, and a key benefit (no indexing). No redundant information is present.

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 the complexity (6 parameters, no output schema), the description provides a good overview of what the tool returns (modules, edges, diagram, stats). It lacks an example output structure but is otherwise sufficient for an agent to understand the tool's capabilities.

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?

All parameters have schema descriptions (100% coverage), so the description adds no additional parameter-level meaning. It focuses on outputs rather than parameter details, so a baseline score of 3 is appropriate.

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 explicitly states the tool builds an inter-module import graph for a Python repository, listing specific outputs (nodes, edges, stats, Mermaid diagram). This clearly differentiates it from sibling tools like get_call_graph or get_inheritance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description does not mention scenarios where other tools (e.g., get_call_graph for call-level analysis) would be more appropriate.

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/UrbanDiver/local-deepwiki-mcp'

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