Skip to main content
Glama
Smart File Reader MCP Server

Smart File Reader MCP Server

find_large_files

Scan a directory to locate files exceeding a specified size in megabytes and list them in descending order, helping you identify large files for cleanup or review.

Instructions

Find files larger than min_size_mb sorted in descending order by size.

    Args:
        directory: Directory to scan.
        min_size_mb: Minimum file size in megabytes to include.
    

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_large_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryNo.
min_size_mbNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the burden, and it does disclose useful behavior: threshold filtering and descending size ordering. However, it omits whether the scan recurses into subdirectories ('directory to scan' is ambiguous), whether hidden or symlinked files are included, and whether there is a result cap or pagination.

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 key behavior and sort order are front-loaded in the first sentence, followed by a compact Args block with each parameter explained in one line. Some duplication with the schema titles exists, but it is minimal and the structure is easy to scan.

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?

An output schema exists, so return-value explanation is not required. For a two-parameter scan tool, the main missing piece is scope semantics: recursion depth, inclusion rules for hidden files, and any result limits, none of which are stated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the Args block does real work by defining directory as the scan target and min_size_mb as the inclusive minimum in megabytes. It does not mention the defaults ('.' and 1) already encoded in the schema, but the semantic meaning of both parameters is fully covered.

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?

Uses a specific verb and resource ('Find files') qualified by a size threshold and an explicit output ordering ('sorted in descending order by size'), which distinguishes it functionally from siblings such as list_files or search_files. It does not name any sibling explicitly, so differentiation is inferred 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 Guidelines3/5

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

The description implies the use case (surfacing files above a size threshold) but gives no explicit when-to-use versus search_files or get_directory_size, no prerequisites, and no exclusions. An agent can infer intent, but routing between size-based finding and name/content search is left to guesswork.

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