Skip to main content
Glama

Get file tree

get_file_tree
Read-only

List a project's files and folders (top 3 levels).

Returns the exact paths that read_files and apply_changes take.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_nameYesName of the project

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already mark readOnlyHint=true, covering the safety profile. The description adds useful behavioral context: the tree is capped at top 3 levels, and the returned paths are directly compatible with read_files and apply_changes, revealing both a depth limitation and the output's downstream contract. No contradiction with annotations.

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?

Two tightly constructed sentences with no filler. The core purpose and depth limit are front-loaded, and the path-compatibility detail clearly earns its place by connecting to sibling tools.

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 one-parameter, read-only, output-schema-backed tool, this description is sufficient: it states the depth limit and the output's downstream use. The annotations cover safety, and the output schema covers return format, so nothing essential 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%: project_name is described as 'Name of the project'. The description adds no additional parameter-level guidance (e.g., where to obtain a valid project_name), but with full schema coverage the baseline of 3 is appropriate.

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?

States a clear verb ('List'), resource ('a project's files and folders'), and a scope ('top 3 levels'). It explicitly ties the output to the exact paths accepted by read_files and apply_changes, distinguishing it from sibling tools like list_projects and read_files.

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 doesn't explicitly enumerate when to use or avoid alternatives, but it establishes clear context: the output is defined as the exact paths read_files and apply_changes take, implying this tool is the prerequisite for those operations. It lacks explicit exclusions, hence not a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources