Skip to main content
Glama
joutvhu

Search Code MCP

by joutvhu

list_files

List files matching glob patterns or file types without scanning contents. Filter by path, hidden, and gitignored files for quick codebase navigation.

Instructions

Quickly list files matching glob patterns or file types without scanning contents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoDirectory to list files in (default: '.').
fileTypeNoFile type filter
noIgnoreNoWhether to list gitignored files
filePatternNoGlob pattern to filter files
includeHiddenNoInclude hidden files and directories
excludePatternNoGlob pattern to exclude

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that the operation is fast and does not scan file contents, but omits read-only nature, permission requirements, recursion behavior, and return format. This is minimum viable for a simple list 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?

The description is a single, front-loaded sentence with no filler. Every phrase contributes to purpose or scope, making it appropriately concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There are no annotations and no output schema, so the description should ideally cover more behavioral context. It explains the core listing scope, but does not describe return values, recursion, or whether the result includes hidden/ignored files by default. Given the simple read operation and complete parameter schema, it is adequate but not complete.

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 schema already documents all six parameters. The description references glob patterns and file types generically but adds no syntax, defaults, or behavior beyond the schema. The baseline 3 applies.

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?

The description states a specific verb and resource: 'list files'. It adds scope ('matching glob patterns or file types') and a differentiator from content-oriented siblings: 'without scanning contents'. An agent can distinguish this from search without opening schemas.

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 phrase 'without scanning contents' implies the tool is for name/path listing rather than content search, which gives context against the sibling 'search'. However, it does not explicitly name alternatives or state when not to use this tool, so guidance is only implied.

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