Skip to main content
Glama
Repository Context MCP

Repository Context MCP

by itsaksh

get_dependencies

Read-onlyIdempotent

Inspect import statements and indexed module dependencies to map how modules reference each other in a Python repository without running code.

Instructions

Inspect import statements and indexed module dependencies.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "get_dependencies"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so safety is fully covered structurally. The description adds nothing behavioral beyond that: no mention of direct vs transitive dependencies, depth or recursion limits, or whether unindexed files are handled, which are exactly the traits an agent would want here.

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?

A single short sentence with no filler and the resource stated immediately. It is efficient, though the terseness edges into under-specification rather than pure conciseness.

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 values need not be described, and the read-only annotations cover the safety profile. That leaves the path semantics and the distinction from get_imports/get_callers unaddressed, which is the main completeness shortfall for a simple single-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter has zero schema description coverage, so the description carries the full burden and does not compensate. It never says what 'path' refers to — a repository file path, a module identifier, or a relative path — leaving ambiguity in the one field that determines success.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a resource (import statements, indexed module dependencies) with the verb 'inspect', so the general purpose is readable. However, 'indexed module dependencies' is fuzzy, and it gives no signal about how it differs from the sibling get_imports or get_callers, leaving an agent unable to tell whether this is the dependency-graph view or the raw import-list view.

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?

There is no when-to-use guidance, no prerequisite, and no named alternative. With get_imports and get_callers in the sibling set, the absence of any routing instruction is a real gap; usage can only be guessed from the tool name.

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