Skip to main content
Glama
ellmos-filecommander-mcp

ellmos-filecommander-mcp

Detect Duplicates

fc_detect_duplicates
Read-onlyIdempotent

Scan a directory to find duplicate files by SHA-256 hash, optionally recursive and filtered by extension or size, and return duplicate groups with paths and sizes.

Instructions

Finds file duplicates in a directory using SHA-256 hashes.

Args:

  • directory (string): Directory to scan

  • recursive (boolean): Search recursively

  • extensions (string, optional): Filter by extensions

  • min_size (number, optional): Minimum size in bytes (default: 1)

  • max_size (number, optional): Maximum size in bytes

Returns:

  • Groups of duplicates with paths and sizes

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

Input Schema

NameRequiredDescriptionDefault
max_sizeNoMaximum size in bytes
min_sizeNoMinimum size in bytes
directoryYesDirectory
recursiveNoRecursive
extensionsNoFilter extensions

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare that the tool is read-only, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds valuable behavioral context by naming the SHA-256 hashing method and describing the return value as groups of duplicates with paths and sizes; it does not cover edge cases such as symlinks or permission failures, but it goes beyond the annotations.

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?

The description is front-loaded with the core purpose and then uses clear Args and Returns sections. It is appropriately sized and well-structured, though the parameter list largely duplicates the input schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a read-only detection tool with complete schema coverage and no output schema, the description provides enough context: it explains the hashing approach, lists all parameters, and describes the return structure. It lacks edge-case behavior around filesystem traversal, but an agent can invoke it correctly from the available information.

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 the schema already documents all five parameters. The description restates each parameter and includes the default min_size value, but it adds little or no meaning beyond what the schema provides, such as the expected format for extensions.

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 states a specific verb and resource: it finds file duplicates in a directory using SHA-256 hashes. It is clear about the operation and method, but it does not explicitly distinguish itself from related sibling tools such as fc_checksum or fc_search_files.

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 explains what the tool does and lists parameters, but it gives no explicit guidance on when to use it versus alternatives like fc_checksum, fc_search_files, or fc_folder_diff. The usage context is only implied by the tool name and parameter list.

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