Skip to main content
Glama
Disk Usage MCP
by Ahmad-1276

find_largest_files

Scans a directory and ranks files by size to help locate high disk usage, with limits and a minimum MB filter.

Instructions

Return the largest files under a path.

Args: path: Directory to scan. limit: Number of results to return (1-100). min_size_mb: Ignore files smaller than this size in MB.

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_largest_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo.
limitNo
min_size_mbNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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 and leaves the most important trait unstated: whether the scan recurses into subdirectories or only looks at the top level of path. It also says nothing about symlink handling, permission-denied directories, or the performance cost of scanning a large tree. That it is a non-mutating read is only inferred from the verb "return."

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?

One summary line followed by a tight Args block; every line carries information and nothing is padded. The structure is standard and easy to parse, though the leading sentence could have absorbed the recursion behavior at no extra length cost.

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?

An output schema exists, so return values and ordering need not be described here, and all three optional parameters are documented. The remaining gap is the recursion semantics of the scan, which matters for a filesystem walk but is arguably the only substantive omission.

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 0%, so the docstring is doing real work: it explains that path is the directory to scan, gives limit an explicit 1-100 range that the schema lacks, and attaches MB units to min_size_mb. However, it omits whether the scan is recursive, whether the bound on limit is enforced or clamped, and whether min_size_mb is inclusive, so it only partially compensates for the coverage gap.

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?

"Return the largest files under a path" gives a specific verb (return/rank), resource (files), and scope (under a path). An agent can immediately tell this ranks files by size, and can distinguish it from find_largest_directories by the resource noun. It stops short of naming the sibling or stating the differentiator explicitly.

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 statement of when to prefer this over find_largest_directories or get_disk_usage, and no prerequisites or exclusions. The path argument implies a local-filesystem scan, but nothing tells the agent which of the disk-related siblings fits a given question.

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