Skip to main content
Glama

list_tree

Read-only

List a knowledge base's folder tree and file metadata, optionally filtered by tag, to inspect its organization before navigating or reading files.

Instructions

List the tree of the knowledge base (metadata only, no content), to see how it is organized before navigating, or only the files carrying a tag. On a big mind, deep folders come folded into their count of files: pass one's path as path_prefix to list it. Your inbox items waiting for triage are under inbox/ (left out with tag). untrusted marks a file from outside this mind. Use get_mind_topology for the shape of the links and the tags in use, search_docs with tag to rank a tag's docs by words, changes_since for what changed lately.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoOnly the files carrying this tag, case-insensitive, e.g. 'projets' or 'recap'. A file's tags are the folders in its path (projets/alpha/x.md: projets, alpha) plus those in its frontmatter.
path_prefixNoList only this folder, e.g. 'projets', or a `folded` folder's `path`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.9.0
    • addedInput schema / properties / tag
      Added value: +{
      +  "description": "Only the files carrying this tag, case-insensitive, e.g. 'projets' or 'recap'. A file's tags are the folders in its path (projets/alpha/x.md: projets, alpha) plus those in its frontmatter.",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv2.8.0
    • changedInput schema / properties / path_prefix / description
      Previous value: -"List only this folder, e.g. 'projets'."New value: +"List only this folder, e.g. 'projets', or a `folded` folder's `path`."
  3. First observedv2.7.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely non-obvious behavior: deep folders are 'folded' into a count of files on a big mind and must be expanded via path_prefix, inbox/ items are omitted when filtering by tag, and `untrusted` marks externally-sourced files. Minor gap: no statement about ordering or limits on very large trees.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and scope, then the folding caveat, then alternatives — a sensible ordering. Dense but every clause carries information; minor friction from compressed phrasing ('On a big mind', 'pass one's `path`') that costs a re-read.

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?

With an output schema, full param coverage and read-only annotations already supplied, the description's job is mainly to explain the folding/expansion quirk and the sibling boundaries, which it does. The only thing an agent might still want is guidance on navigating a very large tree beyond the single folding hint.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: it explains why a folded folder's `path` works as path_prefix, and that using `tag` implicitly excludes inbox/ items — a non-obvious interaction between the two parameters not captured in either schema description.

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 specific verb and resource: 'List the tree of the knowledge base', immediately narrowed by scope ('metadata only, no content') and by the optional tag filter. An agent can distinguish this from sibling listing/search tools without opening the schema.

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?

Gives an explicit use case ('to see how it is organized before navigating') and routes to three named alternatives with the condition that selects each: get_mind_topology for link shape and tags in use, search_docs with `tag` to rank a tag's docs, changes_since for recent changes. Nothing is left to inference.

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