Skip to main content
Glama

list_files

Read-onlyIdempotent

List spreadsheet and data files in a folder with size, date, and sheet names, optionally filtering by filename pattern and scanning subfolders.

Instructions

List spreadsheet/data files (xlsx, xlsm, xls, ods, html, csv, tsv, parquet, json/jsonl) in a folder, with size, date and sheet names. For columns and stats too, use quick_look.

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
pathNoFolder to scan, relative to the root..
limitNoMax files to list.
patternNoFilename glob, e.g. '*.xlsx' or 'sales_*'.
recursiveNoInclude subfolders.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/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 value beyond that by disclosing the recognized file formats and the metadata each result carries, though it says nothing about truncation or how the limit interacts with large folders.

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?

Two sentences, zero waste. The capability and its scope lead, and the alternative-tool routing is placed last where it belongs.

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?

With no output schema, the description does the necessary work of naming the returned fields (size, date, sheet names). The only meaningful gap is the absence of any note on result limits or what happens when a folder exceeds the 500-file default.

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 path, limit, pattern and recursive are already documented with defaults. The description only reinforces the folder scope and adds no glob syntax, recursion behavior, or limit semantics beyond the schema — baseline 3 is appropriate.

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 ("List spreadsheet/data files") and enumerates the supported formats and returned metadata (size, date, sheet names). It also names the sibling that handles the adjacent use case, so an agent can distinguish it from quick_look without opening either schema.

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?

The second sentence explicitly routes a related need (columns and statistics) to quick_look, which is a real alternative-selection rule. It stops short of stating exclusions or prerequisites for listing itself, but the context of use is clear.

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