Skip to main content
Glama

list_files

Lists PDFs and images in a working folder or subfolder with file sizes, giving a starting point for selecting local documents to process.

Instructions

List PDFs and images in the working folder (or a subfolder), with sizes. Start 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": "list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderNo.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/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 behavioral burden. It does disclose two useful traits: results are filtered to PDFs and images, and sizes are included. It omits recursion behavior, whether only the top level is scanned, and what happens for a nonexistent folder, which matter for a filesystem-listing tool.

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 short sentences, front-loaded with the resource and scope, and the entry-point cue placed last for emphasis. Nothing is wasted.

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?

This is a simple one-parameter read tool with an output schema, so return formatting need not be described. Coverage is nearly complete; only recursion and error behavior are left open, which are minor for a folder listing.

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 0%, so the single `folder` parameter is undocumented in the schema. The description compensates partially by saying "the working folder (or a subfolder)," implying the default is the current folder and the argument targets a subpath, but it gives no format hints (relative vs absolute, nesting).

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 pairs the verb "List" with a specific resource and scope: "PDFs and images in the working folder (or a subfolder), with sizes." That is far more informative than the bare name, though it does not explicitly name a sibling (e.g. pdf_info) it should be distinguished from.

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?

"Start here" gives one clear piece of routing guidance: this is the discovery entry point. There is no statement of when *not* to use it and no named alternative, so the agent must infer that follow-up inspection belongs to pdf_info or check_page_file.

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