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

get_disk_usage

Returns disk usage for a specified path, helping identify how much space files or directories consume.

Instructions

Return disk usage for a specific 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": "get_disk_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely fails it. It does not state that this is a non-mutating read, whether the path may be a file or must be a directory, whether sizing is recursive, or what happens for nonexistent or inaccessible 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?

One short sentence with the key concept front-loaded and no filler. It is efficient, though the terseness contributes to the specification gaps noted elsewhere rather than being a flaw of length itself.

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?

An output schema exists, so return-value detail is not required. However, for a tool with zero annotations and zero schema coverage, the description should at least establish read-only semantics and path expectations; it leaves those unaddressed.

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% and the single 'path' parameter defaults to '.', but the description only says 'for a specific path'. It adds no detail on relative vs. absolute paths, default resolution, or path type, leaving the schema's bare string as the only guidance.

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?

The description names a specific verb and resource ('Return disk usage') and scopes it to a path, so the core action is unambiguous. It does not distinguish this tool from siblings like list_partitions or find_largest_directories, which also surface disk-related facts.

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 or when-not-to-use guidance, and no mention of the sibling tools that report disk/partition information. An agent must infer that this is the per-path usage query rather than a listing or largest-file search.

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