Skip to main content
Glama
fjmn2001

disk-space-mcp

by fjmn2001

Check disk space

check_disk_space
Read-onlyIdempotent

Check disk space usage for a filesystem path, report total, used, and available space, and validate against optional free space thresholds to return a status of ok or warning.

Instructions

Report total, used, and available disk space for the filesystem containing a path, and validate it against optional free-space thresholds. Read-only: reads filesystem stats via statfs, never runs a shell. Returns a status of "ok" or "warning".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoFilesystem path to inspect. Stats apply to the filesystem that contains this path. Defaults to the user home directory.
minFreeGbNoMinimum free space in GiB. When available space is below this, status becomes "warning".
minFreePercentNoMinimum available space as a percentage of total. Defaults to 10. When available space is below this, status becomes "warning".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe resolved absolute path that was inspected.
totalBytesYesTotal filesystem size in bytes.
usedBytesYesUsed bytes (total minus free).
freeBytesYesFree bytes including space reserved for root.
availableBytesYesBytes available to unprivileged users (the real usable free space).
usedPercentYesUsed bytes as a percentage of total.
availablePercentYesAvailable bytes as a percentage of total.
statusYes"warning" when available space is below a threshold, otherwise "ok".
messageYesHuman-readable one-line summary.
Behavior4/5

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

The description adds context beyond annotations by specifying the method ('reads filesystem stats via statfs') and explaining the return status ('ok' or 'warning'). This complements the readOnlyHint and idempotentHint annotations.

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?

The description is two sentences long, no wasted words, and front-loads the primary purpose. It is appropriately sized and structured for quick comprehension.

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?

Given the presence of an output schema (indicated), the description does not need to detail return values. It covers all necessary behavioral and safety aspects for a simple read-only tool, making it 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 the base score is 3. The description adds context about optional thresholds and default path, but does not significantly extend the schema descriptions, which already cover parameter details.

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?

The description clearly states the tool reports total, used, and available disk space for a filesystem path, and validates against thresholds. It uses a specific verb ('report') and resource ('disk space'), distinguishing it from potential siblings, though none are listed.

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?

The description explicitly says it is read-only and never runs a shell, indicating safety. It implies usage for checking disk space without harm. Since there are no sibling tools, explicit when-not or alternatives are not needed.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fjmn2001/disk-space-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server