Skip to main content
Glama

list_files

Retrieve a paginated, sorted list of files and subfolders from a specified directory on zspace NAS.

Instructions

列出 zspace NAS 指定目录下的文件与子文件夹

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numNo每页条目数,默认 100100
pathYes目录路径,如 /sata12/my/data
orderNo排序方向,默认 descdesc
startNo分页起始偏移,默认 00
sortbyNo排序字段,默认 mtime_linuxmtime_linux
show_hiddenNo是否显示隐藏文件,默认 00
Behavior2/5

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

No annotations are provided, so the description carries full responsibility for behavioral disclosure. It only states the basic action without revealing that it is a read operation, any permissions needed, pagination behavior, or handling of nonexistent paths. This is insufficient.

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 sentence that conveys the core purpose without any extraneous detail. It is optimally concise and front-loaded.

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 6 parameters (only path required) and no output schema, the description lacks context on return format, pagination usage, sorting details, and error conditions. It is too minimal for full completeness.

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 coverage is 100% with parameter descriptions. The description does not add extra information beyond the schema. Baseline is 3.

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 tool lists files and subfolders in a specified directory on zspace NAS. The verb '列出' (list) is specific, and the resource '文件与子文件夹' (files and subfolders) is distinct. It differentiates from siblings like search_files (search) and list_recent_files (recent).

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 context is clear: use when a directory listing of files and subfolders is needed. However, no explicit alternatives or when-not-to-use guidance is provided, though the simple nature of the tool makes this less critical.

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/philipxiaoxi/z-cli'

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