Skip to main content
Glama

list_files

Read-onlyIdempotent

List project files matching a glob pattern, such as '**/*.py', to quickly identify relevant code and resources.

Instructions

依照 glob 樣式列出專案內的檔案。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo最多回傳幾筆
patternNoglob 樣式,例如 '**/*.py' 或 'src/**/*'**/*.py

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds no additional behavioral context such as recursion behavior, sorting, or hidden files, but it also does not contradict the annotations.

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?

The description is a single, concise sentence that immediately communicates the tool's purpose. Every word contributes value, and the glob-style detail is front-loaded.

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 simple read-only listing tool with full schema coverage and an output schema, the description is adequate for an agent to select and invoke the tool. It could mention scope nuances like whether subdirectories are included by default, but the default glob pattern already implies recursive behavior.

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 description coverage is 100%, so the parameters are already fully documented in the schema. The description only restates the glob concept already present in the schema, adding no extra semantic meaning beyond what the structured input already provides.

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 clearly states a specific verb and resource: listing files in the project using a glob pattern. It is distinct enough from siblings like read_file or run_tests, though it does not explicitly differentiate itself from 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?

The description implies the tool is for enumerating project files via glob patterns, but it offers no explicit guidance on when to choose it over siblings or when not to use it. There are no exclusion criteria or alternative tool references.

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