Skip to main content
Glama

disk_usage

Read-only

Show what takes up disk space in a folder without changing anything, on Mac, Windows and Linux: the size of each item directly inside it, largest first, the folder's total, and the free and total space of its drive (volume). Call it again on a large item to look inside. A very large folder may stop after 90 seconds with complete: false and the items finished by then.

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
pathNoFolder to measure, such as ~ or ~/Library~
limitNoHow many of the largest items to list
deviceIdNoComputer name or id
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, and the description reinforces this with 'without changing anything' and adds real value beyond them: cross-platform coverage, largest-first ordering, and the 90-second cap that returns complete: false. That partial-result disclosure is the kind of behavioral trait annotations cannot express; only failure modes for bad or unreadable paths are left unaddressed.

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?

Three sentences, front-loaded with the purpose, then scope, then the drill-down tip, then the timeout caveat. No filler and every clause carries information an agent needs.

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?

With no output schema, the description carries the return contract well: per-item sizes, ordering, folder total, volume figures, and the complete flag. Minor gaps remain around the deviceId/workSessionId targeting parameters and error behavior, but nothing critical for correct invocation is missing.

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 path, limit, deviceId and workSessionId are already documented in the schema. The description hints at the path concept ('a folder', 'a large item') but adds no syntax, defaults, or interaction detail (e.g., how limit relates to 'each item directly inside it'), so the baseline 3 applies.

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?

States a specific verb and resource ('Show what takes up disk space in a folder') and pins the scope precisely: items directly inside, largest first, folder total, and volume free/total space. That scope is distinct from a plain directory listing like list_directory, so an agent can tell the two apart without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Gives a concrete follow-up rule ('Call it again on a large item to look inside'), which effectively documents the drill-down workflow. It does not explicitly say when to prefer this over list_directory or how to interpret a permission failure, so it stops short of full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources