Skip to main content
Glama

disk_usage

Check read-only per-filesystem disk and inode usage on an instance and list top directory consumers under the fullest mount to find what fills storage.

Instructions

Per-filesystem disk usage on one instance plus the top directory consumers under the fullest mount. Read-only (df bytes+inodes with pseudo-filesystems excluded; depth-2 du, sudo -n when available). Returns JSON: {filesystems: [{mount, size_bytes, used_pct, inodes_used_pct}], fullest_mount, top_consumers: [{path, size_bytes}]}. Errors: df_not_available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_nNoMax top-consumer rows (1-100, default 20).
instance_idYesInstance ID or name. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.28.0
    • changedInput schema / properties / instance_id / description
      Previous value: -"Instance ID or name."New value: +"Instance ID or name. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'."
  2. Addedv2.23.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and delivers: read-only guarantee, exact collection mechanics (df bytes+inodes, pseudo-filesystems excluded, depth-2 du), the sudo -n fallback, and the error case df_not_available. This is unusually rich behavioral disclosure for a diagnostic 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?

Three dense sentences with the primary scope front-loaded, then mechanics, then return shape and errors. No filler; every clause carries information.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description inlines the exact return JSON (filesystems fields, fullest_mount, top_consumers) and enumerates the failure mode. For a two-parameter read-only tool this is 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 coverage is 100%, so both parameters (including the top_n default and range) are already documented in the schema. The description implies top-consumer behavior but adds no syntax or selection meaning beyond the structured fields.

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+resource ('per-filesystem disk usage on one instance') and adds the secondary deliverable (top directory consumers under the fullest mount). It is clearly scoped to a single instance, distinguishing it from fleet-wide health tools. No sibling tool overlaps this disk resource.

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 strongly implied (disk-pressure investigation) but there is no explicit 'use this when…' statement, no exclusions, and no named alternative. The read-only nature guides intent somewhat, but the agent must infer when to reach for this versus get_server_memory or fleet_health_snapshot.

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