Skip to main content
Glama

list_files

Read-onlyIdempotent

Browse and filter Obsidian vault files by folder, extension, or glob, sort by name, modified date, or size, and exclude hidden folders.

Instructions

List files in the vault or a folder. Filter by extension(s) or glob, sort by name/modified/size. Skips .obsidian/.trash and other dot-folders.

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

Input Schema

NameRequiredDescriptionDefault
globNoGlob on the vault path, e.g. "Projects/**/*.md" or "*meeting*"
sortNo
limitNoMax results (default 500)
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
folderNoLimit to this folder (vault-relative)
detailsNoInclude size and dates (default false: paths only)
recursiveNoInclude subfolders (default true)
descendingNo
extensionsNoe.g. ["md"] or ["png","jpg"]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: it skips .obsidian/.trash and other dot-folders, which materially affects results. It stops short of describing return shape or how limit truncation behaves, keeping it at a 4.

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?

Three short sentences, zero filler, with the core action front-loaded and the filtering/sorting and exclusion behavior following in priority order. Every clause carries information.

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?

For a 9-parameter, zero-required read tool with no output schema, the description covers purpose, filtering, sorting, and the important dot-folder exclusion. The main gap is that it does not clarify the default result shape (paths-only versus details) or truncation behavior, which matters given the limit parameter.

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 78%, so the schema already documents most parameters. The description reinforces the glob/extension filtering and names three sort keys, but omits 'created' from the enum and says nothing about limit, details, recursive, or descending, so it adds only marginal meaning beyond the schema.

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 files in the vault or a folder') plus the two main capabilities (filtering by extension/glob, sorting by name/modified/size). It is clear what the tool does, but it never distinguishes itself from close siblings like find_files or recent_files, which an agent could easily confuse it with.

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 described capabilities: use this to enumerate files with extension/glob filters and sorting. There is no explicit when-to-use versus find_files or recent_files, and no stated prerequisites or exclusions beyond the dot-folder behavior, so the agent must infer selection.

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

Deploy Server

Other Tools