Skip to main content
Glama
zix-chen
by zix-chen

List files

list_files
Read-onlyIdempotent

List files in a workspace directory using glob patterns. Filter by path, hidden status, or ignore rules, and sort results by path or modified time.

Instructions

List workspace files using glob filters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
globNo
pathNo.
sortNopath
patternsNo
max_resultsNo
include_hiddenNo
include_ignoredNo
exclude_patternsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
pathNo
errorNo
filesNo
warningsNo
truncatedNo
output_bytesNo
output_linesNo
truncated_byNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds no behavioral context beyond them — nothing about truncation via max_results, default exclusion of hidden/ignored files, or result ordering.

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 and no repetition of the title. It is efficient, though the brevity reflects under-specification rather than disciplined editing.

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?

An output schema exists so return values need not be described, but with 8 undocumented parameters, zero schema coverage, and no alternatives named against list_dir/search_text, the definition is not complete enough for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 8 parameters, so the description carries the full explanatory burden and fails it. 'Glob filters' gestures at glob/patterns/exclude_patterns but says nothing about path, sort, max_results, include_hidden, or include_ignored.

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?

Specific verb+resource ('List workspace files') plus a mechanism hint ('using glob filters'), which is more than a tautology. However, it never distinguishes itself from closely related siblings such as list_dir or search_text, so an agent cannot route between them from the description alone.

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?

No when-to-use guidance, no prerequisites, and no mention of the obvious alternatives (list_dir for directory listing, search_text for content search). The agent must infer the use case entirely from the name.

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