Skip to main content
Glama

file_list

List files and folders in a storage directory via adapter://dir paths, sort by name, date, size, or type, and flag encrypted entries whose contents are unreadable.

Instructions

List files and folders in a directory. Path is adapter://dir (adapter = storage name); empty path lists the first storage's root. An entry with encrypted: true is end-to-end encrypted (inside the encrypted folder named by e2e_root, or a single encrypted .fxe file): filex holds no key, so its content cannot be read here.

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

Input Schema

NameRequiredDescriptionDefault
pathNoadapter://dir path to list; empty = first storage root
sortNoorder: name (default), modified, size or type; a leading - reverses it (-modified = newest first). Folders always come before files.

Output Schema

NameRequiredDescriptionDefault
entriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/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 disclose a non-obvious behavioral constraint: entries with encrypted: true are end-to-end encrypted and filex holds no key, so their content cannot be read here. It does not cover pagination, permission requirements, or hidden-file behavior, keeping it short of a 5.

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?

Three dense sentences, front-loaded with the core action, then path semantics, then the encryption caveat. No filler, though the encryption sentence is compressed almost to the point of needing 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?

An output schema exists, so return values needn't be explained, and the description usefully explains the encrypted flag's meaning. Remaining gaps are pagination, recursion depth, and error behavior for an invalid path, which are minor for a two-optional-parameter list tool.

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 100%, so both parameters are already documented in the schema; the description only restates the path format and the empty-path default (adding that 'adapter = storage name') and says nothing about sort ordering beyond what the schema provides. Baseline 3 applies.

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 opens with a specific verb+resource: 'List files and folders in a directory.' That clearly separates it from mutation siblings like file_mkdir/file_write and from file_search, though it never explicitly contrasts itself with those alternatives.

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

Usage Guidelines3/5

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

Usage is implied by the resource ('list a directory') and the empty-path default is spelled out, but there is no explicit when-to-use/when-not guidance relative to file_search, trash_list, or share_list, and no note on whether listing is recursive or paginated.

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