Skip to main content
Glama

module_summary

Read-onlyIdempotent

Summarize a file's symbols, imports, and dependent files before opening it, so you can understand an unknown file's structure and role without reading the full source.

Instructions

A file as a unit: each symbol it defines on one line (span, signature, doc line), its imports and the files depending on it (those two need the graph). Read it instead of opening an unknown file; describe_symbol covers one symbol in it.

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": {
      "file": "<file>"
    },
    "name": "module_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesFile path or fragment, e.g. `VoxelWorld.cs`.
limitNoMax symbols to list.
sourceNoSource name. Omit when only one source applies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.12.0
    • removedInput schema / properties / source / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / source / default
      Removed value: -null
    • addedInput schema / properties / source / type
      Added value: +"string"
  2. Addedv1.9.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare read-only, idempotent, non-destructive and closed-world behavior, so the safety profile is covered. The description adds genuinely useful non-annotation context: two of the returned sections depend on the graph being available, which explains partial results, and it sketches the per-symbol line format. It does not say what the response looks like when the graph is absent, which keeps it at a 4.

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?

Two sentences, front-loaded with what the tool returns, then the usage routing, with no filler. The parenthetical "(those two need the graph)" is telegraphic and slightly slows comprehension, but overall it is dense and purposeful rather than padded.

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?

With no output schema, the description does the work of explaining the return shape, and it covers the graph prerequisite and the sibling boundary. The omissions are minor: nothing about the default 200-symbol cap or what happens when the file is not found.

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% and all three parameters (file, limit, source) are documented in the schema itself. The description adds no meaning beyond that, saying nothing about the limit's truncation behavior or when the source parameter matters, so the baseline 3 applies.

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 defines the resource precisely as a file-level unit and enumerates its return contents: each defined symbol on one line with span, signature and doc line, plus imports and dependent files. It also distinguishes itself from describe_symbol, which covers a single symbol, so an agent can separate the two tools without opening either schema.

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?

"Read it instead of opening an unknown file" gives explicit routing guidance for the intended case, and it names describe_symbol as the alternative when the agent needs one specific symbol. It also flags a prerequisite (the graph is needed for imports/dependents). It stops short of an explicit when-not condition, so it is not quite a five.

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