Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Walk folder tree

walk_tree
Read-onlyIdempotent

List every file and folder below a path breadth-first up to a set depth, returning live tree entries and reporting truncation or unreadable paths.

Instructions

List the live folder tree under path, breadth-first, to max_depth levels. Use when: you need every file and folder below a path. Instead: list_directory for one level; search_index for the faster, maybe stale index; search_content for contents. Behavior: read-only. Symlinked folders are listed, not entered. Hitting max_entries, or a folder at max_depth left unentered, sets truncated (no cursor: rerun on a subfolder); an unlistable subfolder goes to unreadable. Time limit: 60 s. Returns: {entries: [{path, name, is_dir, is_link, size, modified}], truncated, unreadable: [{path, error}], complete (false when anything was cut or unread)}.

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": "walk_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe folder to walk (absolute, or relative to the MCP root). Required unless path_b64 is given.
backendNoBackend id from list_backends; omit for the default.
path_b64Nopath as base64 of its raw bytes, for non-UTF-8 names; replaces path.
max_depthNoLevels to visit, counted from 1: 1 = path's own entries.
max_entriesNoMost entries to return (files and folders together).

Output Schema

NameRequiredDescriptionDefault
entriesYes
completeYes
truncatedYes
unreadableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.7/5.0
Behavior4/5

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

Annotations declare readOnlyHint, idempotentHint, and non-destructive, so the safety profile is carried by structured data. The description still adds a lot of real behavioral detail: symlinked folders are listed but not entered, unlistable folders go to 'unreadable', and the 60 s time limit. It omits whether the walk offers any paging, but it explains the truncation/no-cursor semantics, which is the main risk. A 4 reflects that it adds substantial value beyond the 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?

It is compact and front-loaded, using labeled sections (Use when, Instead, Behavior, Returns) so an agent can scan to the part it needs. There is no filler, and the behavioral caveats that matter most appear before the return shape.

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 read-only traversal tool with an output schema, this covers everything an agent needs: traversal order, symlink policy, truncation and partial-failure semantics, and a time limit. The return summary is a convenience rather than a duplication of the output schema.

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. The description adds meaning by coupling max_entries and max_depth to observed effects: hitting max_entries sets truncated, and a folder left unentered at max_depth is reported the same way with no cursor to resume. That tells an agent how to size these parameters in a way the schema alone does not.

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 opening sentence gives a specific verb and resource plus scope: 'List the live folder tree under path, breadth-first, to max_depth levels.' The 'live' qualifier and breadth-first traversal distinguish it from the index-based siblings without opening a 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?

It provides an explicit 'Use when' line, followed by an 'Instead' clause that routes to list_directory for single-level listing, search_index for a faster but potentially stale index, and search_content for contents. Every alternative names the condition that selects it.

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