Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

List directory

list_directory
Read-onlyIdempotent

Lists every entry in a folder one level deep, including hidden files and symlinks, so you can inspect a directory's contents.

Instructions

List the entries of one folder, one level deep. Use when: you need what is inside a folder. Instead: walk_tree for a subtree or a capped listing; get_path_info for one path; search_index for indexed names. Behavior: read-only. Every entry, hidden ones too, in the backend's order; a symlink is listed itself (is_link true, is_dir false). No entry cap, but a result over 16 MiB fails. A missing path or a file fails. Time limit: 15 s. Returns: a JSON array of {name, is_dir, is_link, size, modified (ISO 8601 or null)}; structuredContent wraps it as {entries}.

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_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe folder to list (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.

Output Schema

NameRequiredDescriptionDefault
entriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered by structured data. The description nevertheless adds genuinely non-obvious context: hidden entries are included, ordering is the backend's, symlinks are reported as themselves with is_link true and is_dir false, there is no entry cap but results over 16 MiB fail, and the call times out at 15 s. The only shortfall is that it does not state whether listing failures are distinguishable or what preconditions a missing path produces beyond "fails", which keeps it short of top marks on a tool that is otherwise well disclosed.

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?

Tightly structured into Use when / Instead / Behavior / Returns, with the core action front-loaded in the first sentence. The "Returns" sentence duplicates the output schema that is already supplied, which is the one portion that does not fully earn its place, but the remainder is dense and free of filler.

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 listing tool with three well-documented parameters, full annotations, and an output schema, the description covers scope, alternatives, ordering, symlink semantics, size limit, and timeout. An agent has everything needed to select and invoke it correctly; the return-value sentence is redundant rather than beneficial, but nothing material 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%, so the schema already documents path, backend, and path_b64 (including the base64-of-raw-bytes caveat and the replaces-path relationship), making 3 the baseline. The description adds only incidental meaning, noting that a missing path or a file fails rather than which parameter that applies to, and it does not mention the zero-required-parameters conditional between path and path_b64 that an agent must notice.

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 with an explicit scope qualifier: "List the entries of one folder, one level deep." The following "Instead:" line names the exact siblings (walk_tree, get_path_info, search_index) and the conditions that separate them, so the agent can disambiguate without opening another 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?

Provides an explicit "Use when" trigger (needing what is inside a folder) and a routing block naming three alternatives with the situation each covers. Nothing about selection 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.