Skip to main content
Glama
tjws

disk-cleanup

by tjws

scan_large

Scan a directory for files exceeding a size threshold, then return the largest files in descending order to help identify disk space hogs.

Instructions

列出指定目录下体积大于 min_mb MB 的文件,按大小降序返回前 top_n 个。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirYes要扫描的目录绝对路径(如 E:/pycharm/PythonProject)
top_nNo最多返回的文件数,默认 50
min_mbNo仅列出大于此大小(MB)的文件,默认 100

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does disclose the filter threshold, sorting order, and result cap, which are useful. However, it does not clarify whether the scan is recursive or only top-level, what file types are included, or how errors/permission issues are handled. These are meaningful ambiguities for a directory scan tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence conveys the core behavior with no filler. The filter, sort direction, and result count are all included in a compact and readable structure. Every word earns its place.

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?

The presence of an output schema means return value details are covered elsewhere. However, the description lacks important contextual details such as whether subdirectories are scanned recursively, and it gives no guidance on when to prefer sibling scan tools. For a tool that does one focused task, this is adequate but not fully complete.

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 dir, top_n, and min_mb. The description adds a little value by tying min_mb and top_n into the behavior (filter and limit), but it does not provide additional semantics beyond what the schema already states. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('列出' / list) and a specific resource (files in a directory larger than min_mb MB), and adds distinguishing behavior: sort by size descending and return top_n. This clearly separates it from sibling scan tools such as scan_duplicates, scan_by_ext, and scan_old.

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 clearly implies when to use it: when you need to find the largest files in a directory. However, it does not explicitly compare against sibling tools or state when not to use it, such as when scanning for duplicates, extensions, or old files. No exclusions or alternatives are mentioned, leaving the routing to the agent's inference.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tjws/mcp-disk-cleanup'

If you have feedback or need assistance with the MCP directory API, please join our Discord server