Skip to main content
Glama

project_tree

List a directory's file tree read-only, skipping hidden and common dependency directories. Configure path, max depth, and skip options to control the view.

Instructions

列出目录的文件树(只读),默认跳过 .venv/.git/pycache 等目录。

  • path: 目录路径(默认当前目录;可用绝对路径)

  • max_depth: 最大递归深度(1-4)

  • skip_hidden: 跳过隐藏目录与常见依赖目录

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo.
max_depthNo
skip_hiddenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explicitly notes that the operation is read-only and that hidden and common dependency directories are skipped by default. It does not detail error behavior or edge cases, but the key behavioral traits are clearly disclosed.

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 compact and well-structured: a one-line purpose statement is followed by a clear bullet list of parameters. Every sentence adds useful information, and there is no redundant or filler content.

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?

Given three optional parameters and an output schema, the description provides all necessary calling context: purpose, defaults, valid value ranges, and behavioral notes. An agent can correctly invoke the tool without needing additional documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has no parameter descriptions, but the tool description fully compensates by explaining all three parameters: path with default and absolute-path support, max_depth with a 1-4 range, and skip_hidden with its filtering behavior. This adds substantial meaning beyond the bare schema.

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's function: listing a directory's file tree in read-only mode. It also specifies default skip behavior for common directories like .venv/.git/__pycache__, making it distinct from the sibling tools, none of which serve this purpose.

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?

The intended use case is implied by the description—call this tool when you need a read-only file tree of a directory. However, there is no explicit guidance about when not to use it or how it compares with alternatives, so the guidance remains implicit rather than explicit.

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

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/xyser-craner/personal-student-MCP'

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