Skip to main content
Glama
pdogra1299

Dependency Tracer MCP Server

by pdogra1299

get_test_context

Retrieve a function or module along with its dependencies (to mock), callers (usage examples), type definitions, and file paths to write accurate tests.

Instructions

Get everything needed to write tests for a function or module: the function itself, all its direct dependencies (what to mock), all its callers (usage examples), type definitions it uses, and file paths for all involved code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codebaseYesCodebase name (the name you used when calling index_codebase)
symbolYesFully qualified symbol name or partial name for search
include_sourceNoInclude source code snippets
callee_depthNoHow deep to trace callees
caller_depthNoHow deep to trace callers
Behavior4/5

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

With no annotations provided, the description carries full burden. It transparently lists what the tool returns (function, dependencies, callers, types, file paths) and mentions depth parameters control tracing depth. It does not disclose side effects or auth needs, but for a read-only tool this is sufficient.

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?

The description is a single sentence that is efficient but slightly run-on. It front-loads the purpose but could be split for clarity. Every part is informative, but structure could be improved.

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?

Given 5 parameters, no output schema, and no annotations, the description does a decent job explaining what is returned but does not specify the output format or structure. It is adequate but not fully complete for an agent to know exactly what to expect.

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 baseline is 3. The description adds minimal new meaning beyond the schema, only reiterating that depth parameters control tracing. It does not provide additional context for parameters like codebase or symbol beyond what the schema already states.

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: 'Get everything needed to write tests for a function or module' and lists specific items returned (function, dependencies, callers, types, file paths). This distinguishes it from sibling tools like get_symbol or trace_callees which focus on individual aspects.

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 usage for test writing but does not explicitly state when to use this tool versus alternatives like impact_analysis or trace_callees. No exclusions or comparative guidance are provided.

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/pdogra1299/dep-tracer-mcp'

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