Skip to main content
Glama

List Directory

list_directory
Read-only

List files in a directory, optionally filtered by glob pattern, to confirm exact filenames before loading data.

Instructions

List files in a directory, optionally filtered by a glob pattern (e.g. '*.shp'). Use this to confirm exact filenames before loading data — never guess paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
patternNo*

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations already declare readOnlyHint=true. The description does not add behavioral details beyond that, nor does it contradict. It mentions glob pattern filtering, which is a usage feature, not a behavioral trait.

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 concise sentences: one describes the action, the other provides usage guidance. No wasted words, and both sentences contribute directly to agent understanding.

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?

The tool is simple, and the output schema exists to describe return values. The description covers the core purpose and a key use case. It could mention recursion behavior or whether subdirectories are included, but that is minor given the glob pattern option.

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

Parameters4/5

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

Schema description coverage is 0%, but the description explains the pattern parameter with an example ('*.shp') and implies the path is a directory. This adds meaning beyond the schema's bare type definitions.

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 clearly states 'List files in a directory', specifying the verb and resource. It is distinct from sibling tools like list_feature_classes or list_layers, which operate on different entities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to use this tool to confirm exact filenames before loading data, and warns against guessing paths. This provides clear when-to-use and when-not-to-use guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/qiobn/arcpro-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server