Skip to main content
Glama

search_file_summaries

Search file summaries by path pattern and purpose to locate files matching a specific role, such as database, routes, or utilities.

Instructions

Search file summaries by path pattern and/or purpose. Use to find files matching a specific role (e.g., 'database', 'routes', 'utils').

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results
patternYesPath pattern to match (e.g., 'controller', 'db')
projectNoProject namedefault
purposeNoFilter by purpose (e.g., 'Database layer')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations exist, so the description carries the full disclosure burden. It implies a read-only search but never states the matching semantics (substring, glob, or regex), whether results are paginated, or what a returned summary contains — significant gaps for a search tool with zero annotation coverage.

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 short sentences, front-loaded with the action and scope, with no filler. The second sentence is partially example-driven redundancy but still earns its place by anchoring the purpose filter to real roles.

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 four well-documented parameters and no output schema, the description is minimum-viable but leaves matching semantics and result format unexplained. An agent can call it, but may mis-form patterns or mis-expect return shape.

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%, so each parameter is already documented, and the description correctly implies pattern and purpose are combinable ('and/or'). It adds little beyond that, leaving unclear whether purpose and pattern are ANDed and how limit interacts with the default project.

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?

States a specific verb (search) and resource (file summaries) plus the filtering axes (path pattern, purpose). An agent can tell it retrieves summaries rather than raw code or symbols, though it never explicitly contrasts with the sibling list_file_summaries.

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?

Provides a concrete use case (find files matching a role like 'database' or 'routes'), which implies when to reach for it, but gives no exclusions or named alternative such as list_file_summaries for unfiltered enumeration.

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