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

find_largest_directories

Identify high-usage immediate subdirectories under a path to reveal where disk space is consumed. Set a path and result limit to focus cleanup or storage review.

Instructions

Return the largest immediate subdirectories under a path.

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

Input Schema

NameRequiredDescriptionDefault
pathNo.
limitNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description must disclose behavior itself; it only implies read-only by saying 'Return'. It says nothing about result ordering (presumably size-descending), whether subdirectory sizes are computed recursively, cost/performance of scanning large trees, or behavior on unreadable paths.

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?

A single front-loaded sentence with no filler or repetition. It is appropriately brief, though the brevity comes at the cost of the missing semantics flagged elsewhere rather than because everything is covered.

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

Completeness2/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 documentation is not required, and the tool is simple with two optional parameters. Still, with zero schema description coverage and zero annotations, the description leaves core ambiguities unresolved: the size metric behind 'largest', how limit applies, and ordering of results.

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

Parameters2/5

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

Schema coverage is 0%, so the description carries the full burden, yet it never explains what 'largest' is measured by (recursive byte size vs. entry count), how 'limit' truncates or orders the results, or that 'path' defaults to the current directory. Only a loose hint ('under a path', implied top-N ranking) is added beyond the schema's bare string and integer types.

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?

States a specific verb and resource ('Return the largest immediate subdirectories') and pins the scope with 'immediate', which separates it from a recursive walk and implies a contrast with find_largest_files. It stops short of naming or contrasting 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 Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g., read permissions on the path), and no mention of when an agent should prefer find_largest_files or get_disk_usage instead. The reader must guess the intended context from the tool name alone.

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