Skip to main content
Glama

Scan Path

scan_path

Scans a drive or folder to collect disk usage metadata and returns a scan handle for analysis tools, with optional filters, file/folder inclusion, and CSV snapshots.

Instructions

Read-only directory scan: WizTree on Windows, metadata traversal on macOS. Both platforms return a scan handle by default; pass it as csvPath to analysis tools.

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": {
      "targetPath": "<targetPath>"
    },
    "name": "scan_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
adminNoPass /admin=1 to WizTree for a faster low-level MFT scan. This triggers a Windows UAC elevation dialog; in an unattended environment the process will hang until the configured timeout.
filterNoOptional WizTree include filter, such as "*.mp4".
sortByNoOptional WizTree sort option, such as "size".
treemapNoWindows: return a 1024x768 treemap inline; its temporary PNG is removed after reading.
maxEntriesNoNative traversal / Windows CSV entry limit.
targetPathYesDrive or folder to scan, such as "C:" or "D:\Data".
wiztreePathNoOptional explicit path to WizTree64.exe or WizTree.exe.
includeFilesNoInclude file rows in the export.
saveSnapshotNoExplicitly save CSV; requires snapshotDirectory and snapshotName. Default keeps only the latest scan in memory, without persistent exports.
snapshotNameNoExplicit simple filename ending in .csv. Existing files are never overwritten.
filterExcludeNoOptional WizTree exclude filter, such as "node_modules".
includeFoldersNoInclude folder rows in the export.
timeoutSecondsNo
snapshotDirectoryNoExplicit absolute directory for an intentionally saved CSV.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does declare read-only plus the platform-specific engine and the default handle return. It omits operationally significant traits that only surface in individual param descriptions: admin-triggered UAC hangs, the in-memory-only default with no persistent export, and expected scan duration for large trees. Useful but thin for a 14-parameter, potentially long-running tool.

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?

Two sentences, front-loaded with the read-only guarantee and platform behavior, with no filler. The phrase "by default" is slightly at odds with saveSnapshot's opt-in export model, but the wording stays compact.

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?

No output schema and no annotations, so the description is the only place an agent can learn what comes back; it says "scan handle" without clarifying whether that is a path, an opaque id, or how it relates to the saved CSV. For a tool with 14 parameters and platform-divergent behavior, more should be stated up front.

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 description coverage is 93%, so the schema already explains admin, filter, snapshotName, treemap and the rest in detail. The description adds only the csvPath/handle linkage, which is genuinely new, but nothing about the filter, sort, or entry-limit semantics. Baseline 3 is appropriate.

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?

"Read-only directory scan" gives a specific verb and resource, and the platform split (WizTree on Windows, metadata traversal on macOS) tells an agent what backs the scan. It distinguishes itself from the analysis siblings by naming them collectively as consumers of the returned handle, though it never names one specifically.

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 handoff sentence is real guidance: scan here, then pass the returned handle as csvPath to analysis tools, which correctly routes the agent away from the analyze_* siblings for the initial scan. It stops short of stating when-not-to-use (e.g., reusing an existing snapshot instead of rescanning), which list_snapshots and cleanup_snapshots imply exists.

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