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

Search module files

search

Find regex patterns in an installed module's TypeScript, JavaScript, style, and Markdown files, returning matching code snippets with adjustable context.

Instructions

Search for pattern in module's .d.ts/.ts/.tsx/.jsx/.css/.scss/.sass/.less/.md files with code snippets

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>",
      "pattern": "<pattern>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoProject root directory (defaults to cwd)
flagsNoRegex flags (e.g. 'i' for case-insensitive)
limitNoMax results
moduleYesModule name (exact or substring match)
contextNoLines of context around match
patternYesRegex pattern to search

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and it stays thin. It discloses the scanned file types and that results include code snippets, but says nothing about regex semantics, result truncation (limit defaults to 20, caps at 100), context lines, or whether the operation is a pure read. Those caveats live only in the schema, not the prose.

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?

It is a single front-loaded sentence with no filler, and the file-extension enumeration is placed where it matters. The phrasing is slightly dense and carries no terminal structure, but nothing is wasted.

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?

With six parameters, no annotations, and no output schema, the definition should do more work than it does. It covers scope and roughly what comes back, but omits the regex nature of 'pattern', the result-limit behavior, and any signal separating it from read_file or get_symbol. Minimum viable rather than complete.

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 every parameter (root, flags, limit, module, context, pattern) is already documented in the schema; baseline is 3. The description only reinforces that the search is scoped to a module and returns surrounding snippets, adding marginal meaning beyond the structured fields.

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?

The description gives a specific verb (search) and resource (a module's source files), and it enumerates the file extensions scanned, which sharply bounds scope. It also hints at the return shape ('with code snippets'). It stops short of distinguishing itself from siblings like read_file or get_symbol, so a 4 rather than a 5.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for locating a pattern across a module's files. There is no statement of when to prefer it over read_file (whole-file read) or get_symbol (known symbol lookup), and no exclusions or prerequisites. Adequate but leaves routing to inference.

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