Skip to main content
Glama

desktop_list_directory

List workspace directory entries without following links, using bounded depth and truncation to inspect local files under controlled permissions.

Instructions

List directory entries without following links, with bounded depth and truncation.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "desktop_list_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesWorkspace-relative path; use . for root
depthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two real behavioral traits: symlinks are not followed, and results are bounded by depth and truncation. It stays silent on permissions, ordering, hidden entries, and what happens when truncation occurs, which is a meaningful gap for an unannotated filesystem tool.

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?

A single front-loaded sentence with no filler; the constraint clauses are ordered sensibly after the core action. It is efficient, though the terseness leaves no room for the usage signal this unannotated tool needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no annotations and no output schema, the definition says nothing about the shape of returned entries, how truncation is surfaced, or whether depth means recursion levels. The agent knows the operation but not enough to predict or handle its output.

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 coverage is 50%: 'path' is documented in the schema, but 'depth' only appears as constraints (default 2, min 1, max 4). The description's 'bounded depth and truncation' gestures at the depth parameter and at result limits, but it does not explain recursion semantics or any truncation threshold.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb+resource ('List directory entries') and adds a scoping trait ('without following links'). It distinguishes itself from read-oriented siblings like desktop_read_file, but never explicitly contrasts with desktop_search, which is the closest alternative for enumeration.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not guidance, and no alternative is named. The phrase 'without following links' hints at a safe traversal context, but the agent must infer when to pick this over desktop_search or desktop_get_file_info.

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