Skip to main content
Glama
UrbanDiver

Local DeepWiki MCP Server

by UrbanDiver

get_file_context

Read-onlyIdempotent

Retrieves imports, callers, related files, and type definitions for any source file to clarify its role in the codebase.

Instructions

Get rich context for a source file: imports, callers (who uses this file), related files, and type definitions used. Helps understand a file's role in the codebase.

Requires: index_repository must be called first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYesPath to the indexed repository
file_pathYesFile path relative to repo root (e.g., 'src/local_deepwiki/server.py')
detail_levelNoOutput detail: standard (default) or full (adds entities, related tests, recent commits)
Behavior4/5

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

Annotations already indicate readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds the prerequisite requirement, which is a behavioral disclosure. No contradictions with annotations.

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 concise sentences that clearly convey purpose and prerequisite with no wasted words.

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?

Without an output schema, the description mentions what the tool returns (imports, callers, etc.), providing adequate completeness. Could include more about response structure but sufficient for context.

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 coverage is 100% with detailed descriptions for all three parameters, including an enum for detail_level. The description does not add significant extra meaning 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 the tool's purpose: to get rich context for a source file, listing specific elements (imports, callers, related files, type definitions). This distinguishes 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 Guidelines4/5

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

The description explicitly states a prerequisite (index_repository must be called first), which provides clear usage guidance. However, it does not compare with alternative sibling tools for similar tasks.

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