Skip to main content
Glama

Show directory tree

zspace_tree
Read-only

View a directory's nested folder structure on ZSpace NAS to understand its layout before deeper operations. Read-only tree with configurable depth up to 2 levels.

Instructions

Return a nested tree view of a directory on the ZSpace NAS.

Use to understand overall folder structure before deep operations. depth caps recursion (default 2). Returns the nested tree structure as exposed by the NAS API. Read-only.

Nested rather than flat: use zspace_ls for a single level with sizes, or zspace_search when you are looking for a name rather than a layout.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoRoot directory to show as a tree, e.g. /sata11/my/data/sata11/my/data
depthNoMaximum recursion depth (1 = current level only)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / depth / description
      Added value: +"Maximum recursion depth (1 = current level only)"
    • addedInput schema / properties / path / description
      Added value: +"Root directory to show as a tree, e.g. /sata11/my/data"
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description's 'Read-only' line adds no new safety info. It does add the recursion-depth behavior and the note that output is 'as exposed by the NAS API', which is mild context, but nothing about pagination, error cases, or the exact structure. With annotations covering the key safety trait, a 3 is appropriate.

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 tight: a one-sentence purpose, a short usage note, a brief behavioral note, and a clear alternative line. Every sentence earns its place, and the key distinguishing information is front-loaded.

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?

For a read-only tree tool with two simple parameters and an output schema present, the description covers purpose, usage, alternatives, and the key recursion behavior. Nothing an agent needs to call it correctly is missing.

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 100%, so both 'path' and 'depth' are already documented with defaults and descriptions. The description repeats 'depth caps recursion (default 2)' but adds no meaning beyond the schema. Baseline 3 applies because the schema carries the load.

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 verb 'Return' and the resource 'a nested tree view of a directory on the ZSpace NAS', and immediately distinguishes itself from siblings (zspace_ls and zspace_search). This gives an agent an unambiguous mental model of what the tool does and how it differs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use ('to understand overall folder structure before deep operations') and provides clear exclusions and alternatives ('use zspace_ls for a single level with sizes, or zspace_search when you are looking for a name rather than a layout'). No inference needed.

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