Skip to main content
Glama
eic

XRootD MCP Server

by eic

get_directory_size

Calculate the total size of a directory and all its contents recursively to monitor storage usage and manage disk space efficiently.

Instructions

Calculate total size of a directory (recursively)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the directory
Behavior2/5

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

With no annotations provided, the description carries full burden but only states what the tool does, not how it behaves. It doesn't disclose whether this operation is computationally expensive for large directories, if it requires specific permissions, what units the size is returned in (bytes, KB, MB), or if there are any rate limits. The description adds minimal behavioral context beyond the basic function.

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 a single, efficient sentence that directly states the tool's function with zero wasted words. It's appropriately sized for a simple tool and front-loads the core purpose.

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

Completeness2/5

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

Given no annotations and no output schema, the description is incomplete for a tool that performs recursive directory size calculation. It doesn't explain what the output looks like (numeric value? formatted string?), doesn't mention potential performance implications for large directories, and provides no usage context. For a tool with this complexity level, the description should do more.

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?

The schema description coverage is 100% with the single parameter 'path' clearly documented. The description adds no additional parameter semantics beyond what the schema provides (e.g., it doesn't specify path format requirements or examples). With high schema coverage, the baseline is 3 even without extra param info in the description.

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 clearly states the verb 'calculate' and resource 'total size of a directory', specifying it's done recursively. It distinguishes from siblings like list_directory (which lists contents) or get_file_info (which gets metadata for a single file). However, it doesn't explicitly contrast with all siblings, so it's not a perfect 5.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when this tool is appropriate versus using list_directory to count files or get_file_info for individual file sizes. No exclusions or prerequisites are stated.

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/eic/xrootd-mcp-server'

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