Skip to main content
Glama

disk_usage

Read-only

Reports the size of each immediate child of a directory, largest first, to show what is consuming disk space.

Instructions

Size of each immediate child of a directory (like du -d1), largest first.

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": "disk_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo~
top_nNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds genuinely new behavior: the listing is non-recursive (immediate children only) and results are ordered largest-first. It leaves out return units (bytes?), path format, and how unreadable subdirectories are handled, which keeps it from a 5.

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 front-loaded sentence that defines the operation, bounds its scope, and gives a compact shell-equivalent analogy. No filler, and the key constraint (immediate children) comes before the ordering detail.

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?

For a simple read-only listing tool with safety annotations supplied and no output schema, the description covers what is measured and how results are ordered. Only minor details (units, error behavior on permission-denied paths) are absent, which is acceptable at this complexity.

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 description carries the burden for `path` and `top_n`. The phrase 'largest first' hints that the output is truncated to the biggest entries, which partly explains `top_n`, but neither the default path ('~') nor the meaning/cap of top_n is stated explicitly.

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 resource and scope: sizes of each *immediate* child of a directory, with the `du -d1` analogy pinning semantics precisely. It does not distinguish itself from the sibling `find_large_files`, which an agent could plausibly confuse it with, so it falls short of a 5.

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?

Usage is only implied: you would call this to see what occupies space in one directory level. There is no explicit when-to-use statement, no mention of when a recursive file search (e.g. `find_large_files`) is the better choice, and no prerequisites or cost caveats.

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