Skip to main content
Glama

list_folder

Lists bounded, read-only entries under Owner-approved read roots, with optional depth and limit controls to inspect folders without exposing private names, links, or denied paths.

Instructions

List bounded entries under Owner-approved read roots. Read-only. Depth 0 lists immediate children. Depth 1 to 4 adds relative paths and bounded recursion, excluding private names, links and denied folders. Limit bounds output, not authorization.

A nonzero omitted_entries counts entries the tool cannot show across the folders it scanned before applying limit; ask the Owner to check locally if they matter and avoid guessing names.

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

Input Schema

NameRequiredDescriptionDefault
pathYesExisting directory under Owner-approved read roots.
depthNoAdditional directory levels, 0 to 4; default 0 preserves immediate-child schema. Recursive entries include a relative path.
limitNoMaximum number of returned entries, 1 to 200; default 100.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.8/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 does well on the safety profile: read-only, excludes private names, links and denied folders, and clarifies that limit bounds output rather than authorization. It explains the omitted_entries counter's meaning and its limits, which is genuinely non-obvious behavior. It does not describe ordering, error conditions, or what an out-of-root path returns.

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 operation and safety framing in one short sentence, then depth/limit semantics, then the omitted_entries caveat. Every sentence carries information. The omitted_entries paragraph is slightly convoluted ('across the folders it scanned before applying limit') but not wasteful.

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?

Output schema exists, so return values need no explanation, and the description covers the remaining agent-relevant concerns: scope, exclusions, depth behavior, and the omitted_entries signal. The one gap is the relationship to list_folder_page, which an agent choosing between the two would want stated.

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 real meaning beyond the schema: 'Limit bounds output, not authorization' clarifies a distinction the schema's 'maximum number of returned entries' does not, and the depth sentence ties recursion to relative-path output. That is value above the structured fields.

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?

States a specific verb and resource (list entries) and bounds the scope precisely: 'under Owner-approved read roots', read-only. An agent knows exactly what it gets. It stops short of naming the sibling list_folder_page, so the boundary against a paginated variant is left implicit.

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?

Gives concrete usage context: depth 0 for immediate children, depth 1-4 for recursion with relative paths, and limit as an output bound only. It also tells the agent what to do when omitted_entries is nonzero (ask the Owner to check locally, don't guess names). No explicit alternatives are named, so it falls short of a 5.

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