Skip to main content
Glama
ellmos-filecommander-mcp

ellmos-filecommander-mcp

Search Files

fc_search_files
Read-onlyIdempotent

Searches a directory for files matching name patterns with * and ? wildcards, returning limited results so you can locate files by type or prefix.

Instructions

Searches files by name/pattern in a directory.

Args:

  • directory (string): Start directory for the search

  • pattern (string): Search pattern (supports * and ? wildcards)

  • max_results (number, optional): Maximum results (default: 50)

Examples:

  • pattern: "*.txt" - All text files

  • pattern: "test*" - Files starting with "test"

  • pattern: "*.py" - All Python files

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": "fc_search_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
patternYesSearch pattern with wildcards
directoryYesStart directory
max_resultsNoMax results

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.5
  2. Removedv1.9.3
  3. First observedv1.7.8

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds wildcard syntax and result capping context, but omits behaviorally important traits for a search: whether it recurses into subdirectories, whether hidden files are included, and what happens on a non-existent directory.

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?

Purpose is front-loaded in the first line and the examples are compact and instructive. The Args block largely duplicates parameter descriptions already present in the schema, which is wasted space, but the total length remains reasonable.

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 no output schema, the description should clarify what is returned (paths? file objects? sorted?) and whether the search is recursive, neither of which is stated. Given a 3-parameter search tool with full annotation coverage, it is adequate but leaves meaningful gaps an agent would want before calling.

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% and the schema already documents all three parameters including the default of 50, so the baseline applies. The pattern examples ('*.txt', 'test*') add real meaning about wildcard syntax, but the Args block otherwise restates the schema rather than extending it.

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 opening sentence states a specific verb and resource ('Searches files by name/pattern') plus its scope ('in a directory'). It implicitly separates itself from fc_search_content by emphasizing name/pattern matching, but it never names the sibling or the boundary explicitly.

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 name-based counterpart to fc_search_content and the alternative to fc_list_directory. There is no explicit when-to-use, when-not-to-use, or alternative routing statement.

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