Skip to main content
Glama
vino3dx
by vino3dx

list_directory

Read-only

List directory contents with optional extension filter and recursion to batch process textures or proxy files.

Instructions

列出目录内容,可按扩展名过滤,支持递归。用于批量处理贴图或代理文件。 [English] List a directory, optionally filtered by extension and recursive. Use it to batch process textures or proxy files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes目录绝对路径。 | Absolute directory path.
limitNo最多返回条数,默认 500。 | Maximum entries to return, default 500.
patternNo通配符,例如 *.jpg 或 *.max。 | Wildcard such as *.jpg or *.max.
recursiveNo是否递归子目录,默认否。 | Recurse into subfolders, default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds functional detail about filtering and recursion, but does not disclose additional behavioral traits such as sorting, whether only files or also directories are returned, or how paths are formatted.

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 short, front-loaded with the core action, and then gives a concrete use case. The bilingual repetition is justified by the target audience and does not add unnecessary bulk.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, low-complexity tool, the description plus complete parameter schema and annotations are nearly sufficient. It lacks an explicit statement of the return format/output shape, and there is no output schema, but 'list a directory' strongly implies an array of entries and the use case clarifies intent.

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 all four parameters are already documented in the input schema. The description repeats the extension filter and recursion concepts briefly, but adds no meaning beyond what the schema provides, matching the baseline for full schema coverage.

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 states a specific verb and resource: 'List a directory', with optional filtering by extension and recursion. It is clear and unambiguous, though it does not explicitly differentiate itself from sibling file/knowledge tools such as get_file_info or file_exists.

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 description gives a clear intended use case: 'Use it to batch process textures or proxy files.' This provides context for when to invoke the tool, but it does not mention exclusions or direct the agent to alternative tools for single-file checks or scene-asset queries.

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

Deploy Server

Other Tools