Skip to main content
Glama

Measure folder size

exza_directory_size
Read-onlyIdempotent

Scan a selected real directory in bounded breadth-first order, count regular files and calculate size. Ignores hidden entries/symlinks and reports partial results if scan limits are met.

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": "exza_directory_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath inside the current EXZA owner-authorized file scope. Use "." for the workspace.
maxDepthNoDirectory nesting depth (default 3).
maxEntriesNoMaximum entries to inspect (default 1000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the bar is lower. Even so, the description adds real behavior context: a bounded breadth-first scan, hidden entries and symlinks being ignored, and partial results when limits are reached. It stops short of saying how an agent recognises a truncated result or whether unreadable directories cause errors.

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?

Two sentences, both front-loaded: the operation comes first, then the caveats about ignored entries and truncation. Nothing is redundant or padded.

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?

With no output schema, the description carries the job of explaining what comes back, and it does not say whether the response contains file count, byte total, a truncation flag, or per-entry detail. For a simple read-only scan whose annotations and parameters are otherwise well covered, it is adequate, but the return shape remains a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both defaults and ranges are already documented. The description still adds meaning beyond the schema by saying the scan is bounded and that hitting the limits produces partial results, which tells the agent the practical consequence of maxDepth and maxEntries instead of just their types.

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 gives a specific verb and resource: scan a real directory, count regular files, and calculate the total size. It is unmistakably a size-measurement tool rather than a listing or search tool, so an agent can pick it out by intent, but it never names a rival or states the boundary against the sibling listing tools.

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 only implied by the description - for example, it is clearly the right call when the total footprint of a folder is needed, rather than a file listing. There is no explicit when-to-use or when-not-to-use clause, and no mention of alternatives such as the commander or external-folder tools.

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