Skip to main content
Glama

describe_module

Read-onlyIdempotent

Describes a module by ID, path, or keyword, returning its definitions, imports, dependents, and architecture layer to understand code before reading files or find where a feature lives.

Instructions

Describes one module in full: what it defines (functions, types and constants with their lines), what it imports, who depends on it and its architecture layer. Use it to understand a module before reading its file, or to find where a feature lives: module is a module ID or a file path, and given a keyword instead it describes the best matching module. For what a change reaches use analyze_impact; for the text of the file use read_source. Returns one line per fact. A long list stops at 200 items unless all is true. A name the graph does not hold is answered with an error line, with suggestions when similar names exist.

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": {
      "module": "<module>"
    },
    "name": "describe_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoList everything instead of stopping at 200 items.
moduleYesModule ID, file path, or a word from a module path, file name or entity name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0

TDQS

A4.7/5.0
Behavior4/5

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

With readOnlyHint, idempotentHint, and openWorldHint=false already declared, the description still adds real behavior: a 200-item truncation cap that `all` lifts, a one-line-per-fact return shape, and an error line with suggestions for unknown names. It stops short of describing ordering of facts or whether the 200 limit applies per section or in total, which is the only meaningful gap.

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?

Front-loaded with purpose and output enumeration, then usage, then routing, then behavior caveats — a sensible information hierarchy with no filler sentences. It is dense and packs four distinct concerns into one paragraph, which slightly raises parsing cost, but every clause carries information.

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

Completeness5/5

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

There is no output schema, and the description compensates by stating the return format ('one line per fact'), the truncation limit and its escape hatch, and the failure mode for unknown names. For a two-parameter read-only lookup tool, nothing an agent needs in order to call it correctly is missing.

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

Parameters5/5

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

Schema coverage is already 100%, yet the description still adds meaning: it clarifies the fuzzy resolution behavior ('given a keyword instead it describes the best matching module') and pairs `all` with the actual 200-item threshold, which the schema alone does not connect. It exceeds the baseline 3 for high-coverage schemas.

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?

States a specific verb and resource ('Describes one module in full') and immediately enumerates exactly what the description contains: definitions with lines, imports, dependents, and architecture layer. That enumeration lets an agent distinguish it from find_definitions, list_dependencies, or query_graph without opening a schema.

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

Usage Guidelines5/5

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

Gives concrete when-to-use triggers ('before reading its file', 'to find where a feature lives') and explicitly routes two competing needs elsewhere: analyze_impact for change reach and read_source for file text. Both the positive guidance and the exclusions are present.

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