Skip to main content
Glama
mcp-dependency-explorer
by kozer

List modules

list_modules

Lists every installed Node module across all node_modules directories, including workspace packages, with optional root and name filters.

Instructions

List all installed Node modules from all node_modules directories (including workspace packages)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_modules"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoProject root directory (defaults to cwd)
filterNoFilter by module name substring

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does state the traversal scope (all node_modules directories, including workspace packages), which is genuinely useful behavior, but it omits whether the result is deduplicated, whether nested/transitive node_modules are walked, whether it is strictly read-only, and what the response contains.

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

Conciseness5/5

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

A single, front-loaded sentence with no filler; the scope qualifier is attached directly to the resource it modifies. Nothing would be gained by restructuring it.

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?

This is a simple zero-required-parameter read tool with fully documented parameters, so it is close to complete. However, with no output schema, the description should say what a 'module' entry looks like (name only, name plus path, version) — that omission is the main remaining gap.

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 both 'root' and 'filter' are already documented (root defaults to cwd, filter is a name substring). The description's '(including workspace packages)' adds a little scope meaning for 'root' but provides no syntax or format detail beyond the schema. Baseline 3 applies.

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

Purpose4/5

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

Specific verb ('List') plus specific resource ('all installed Node modules') with an explicit scope qualifier ('from all node_modules directories (including workspace packages)'). The resource is distinct enough from list_symbols/search/read_file that an agent will not confuse them, though the description never names an alternative to reinforce that separation.

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?

The description gives no when-to-use guidance, no conditions under which this is the right call versus 'search' or 'list_symbols', and no exclusions. An agent must infer usage entirely from the tool name and resource description.

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

Deploy Server

Other Tools