Skip to main content
Glama

get_module_map

Analyze a repository's local import graph by app ID to reveal module dependencies and support architecture understanding.

Instructions

Analyze local import graph inside a repository.

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": {
      "appId": "<appId>"
    },
    "name": "get_module_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
appIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations and no output schema, the description carries the full disclosure burden and mostly fails it. It does not say whether this is a read-only static analysis, whether it requires a prior session or indexed app, how expensive it is, or roughly what shape the result takes. "Local" hints at scope (not cross-repo) but nothing else is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with no filler, so nothing is wasteful. However, brevity here reads as under-specification rather than discipline — the single clause is front-loaded but leaves the agent without actionable detail.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with zero annotation coverage, no output schema, and an undocumented required parameter, the definition should do considerably more work. As written, an agent knows the general topic but not how to call it correctly or what it will get back.

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?

Schema description coverage is 0% for the single required parameter appId, and the description adds nothing — no indication of the identifier format, where to obtain it (e.g. from get_app_context or the portfolio), or what happens if it is invalid. The schema alone gives only the type "string", so the gap is unmitigated.

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?

"Analyze local import graph inside a repository" names a verb and a resource, so the agent knows the domain is module dependency analysis. But "analyze" is vague about the output — no mention of whether it returns a graph, cycles, layering violations, or coupling metrics. It also does not distinguish itself from siblings like query_graph or get_file_tree.

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 at all: no prerequisites (must the app be indexed first?), no exclusions, and no pointer to alternatives such as query_graph or grep_codebase for related questions. The agent must guess from the name alone whether this or a sibling is the right call.

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