Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Search Files and Directories by Name

fs_search

Find files and folders by name keyword or wildcard, filter by extension, limit results, and skip build directories such as node_modules, dist, and .git by default.

Instructions

高速并发按名称关键字或通配符(* 和 ?)搜索文件与文件夹,默认自动忽略 node_modules/dist/.git 等构建目录。

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

Input Schema

NameRequiredDescriptionDefault
patternYes名称匹配关键字或通配符(如 "*.ts" 或 "config")
directoryYes搜索起始目录
extensionsNo可选文件扩展名过滤,如 ["ts", "tsx"]
maxResultsNo最大返回结果数
excludeDirsNo额外排除的目录名
includeHiddenNo是否包含隐藏文件

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It adds real traits (concurrent execution, default exclusion of node_modules/dist/.git) but omits return format, result ordering, permission requirements, whether directories and files are both returned, and what maxResults truncation looks like. For a 6-param tool with zero annotation coverage this is a significant 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?

A single densely packed sentence, front-loaded with the action and the default-exclusion behavior. Nothing is wasted, though the switch between an English title and a Chinese description is slightly jarring for consistency.

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?

Six parameters, all schema-documented, and no output schema, so return-shape explanation would be valuable and is missing. The core search semantics and default exclusions are covered, but an agent still lacks enough to predict result contents or ordering.

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 all six parameters are already documented, including wildcard examples and the default 150 maxResults cap. The description adds only the wildcard operators and default exclusions, which the schema largely restates, so 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?

States a specific verb+resource (search files and folders by name keyword or wildcard) and the title's 'by Name' scope implies the distinction from fs_search_content. It never explicitly names that sibling, so the differentiation is implied rather than stated.

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?

There is no when-to-use / when-not-to-use guidance. It never says when to prefer this over fs_search_content (content search) or fs_list_directory, and offers no condition that selects an alternative. Wildcard support is described as capability, not as usage guidance.

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