Skip to main content
Glama

analyze_directory

Read-onlyIdempotent

Break down disk usage for a Windows directory in parallel, returning the largest subdirectories and files without following NTFS junctions.

Instructions

Fast parallel disk usage breakdown of a directory (e.g. 'C:\Users\name' or 'C:'). Returns largest subdirectories and largest files without following NTFS junctions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "analyze_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
top_nNo
min_size_mbNo
timeout_secNo
include_top_filesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare this as a safe, idempotent, closed-world read, so the safety bar is covered. The description still adds real behavioral information beyond them: the scan is parallel, it reports two result classes, and it deliberately does not follow NTFS junctions (avoiding cycles/duplicates). It is silent on what happens when the 15s timeout is hit or on permission requirements for system roots, which would have completed the picture.

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, zero filler, with the core purpose and output shape front-loaded and the junction caveat as a tight qualifier. Nothing redundant relative to the structured fields.

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?

The output schema covers return values, so the description needn't explain result structure. However, for a five-parameter tool with zero schema description coverage, the definition leaves an agent guessing about the tuning knobs and about timeout behavior on large roots, which is a meaningful completeness gap even for a read-only tool.

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 description coverage is 0% and all five parameters (path, top_n, min_size_mb, timeout_sec, include_top_files) carry only bare titles, so the description is the only place meaning could be added. Instead it explains none of them – not how many results top_n yields, not what min_size_mb filters out, not that timeout_sec truncates the scan, not what include_top_files counts.

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 concrete action and resource ('disk usage breakdown of a directory') plus a concrete output ('largest subdirectories and largest files'), which lets an agent distinguish it from a plain size-scan or a file finder. It stops short of naming or contrasting any sibling tool, so differentiation is inferred rather than stated.

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: the example paths ('C:\Users\name' or 'C:\') signal a whole-directory breakdown, and the junction exclusion hints at scope. There is no explicit when-to-use/when-not-to-use guidance and no pointer toward alternatives such as find_large_files or get_drives_overview for narrower questions.

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