Skip to main content
Glama

List files in a directory

termix_files_list_files_directory
Read-onlyIdempotent

List files and directories in a given path on a remote host to view directory contents and manage files remotely.

Instructions

List files in a directory. Lists the files and directories in a given path on the remote host.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and non-destructive behavior. The description adds that it works on a remote host and returns both files and directories, but doesn't reveal sorting, hidden file handling, or error behavior. This is adequate given the strong annotation coverage, but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and front-loaded, but the second sentence partially repeats the first while adding only 'files and directories' and 'remote host'. Some redundancy exists, though overall it's appropriately sized.

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?

With no output schema and no parameter guidance, the description is incomplete. An agent needs to know what sessionId refers to and what the response looks like. The description only covers the basic operation, leaving key invocation details missing.

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

Parameters1/5

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

Schema coverage is 0% and the description provides no parameter meaning beyond the word 'path' (which is already the parameter name). sessionId is completely unexplained. The description fails to compensate for the lack of schema descriptions.

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 states a clear verb and resource ('List files in a directory') and clarifies it lists both files and directories on a remote host. It is distinct from sibling tools like read_file or create_file, though it doesn't name an alternative.

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?

Usage is implied by the description: use it to list files/directories in a path. There is no explicit when-to-use vs alternatives or when-not-to-use guidance, making it only minimally useful for navigation.

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