Skip to main content
Glama

sftp_list_dir

Lists files and folders in a remote SFTP directory on a Garry's Mod server, returning directory contents for browsing or file management.

Instructions

Список файлов в директории на удалённом сервере через SFTP

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesПуть к директории на сервере

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It implies a read-only listing but never states it, nor does it mention that a connection must already exist, what happens for a missing/invalid path, or whether results are paginated or sorted.

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

Conciseness4/5

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

A single, front-loaded sentence with no filler. It is efficient, though extremely terse given the tool has room to say more.

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?

For a one-parameter listing tool with no output schema this is minimally adequate, but with a sibling sftp_connect present, the omission of the session prerequisite and any return-shape hint leaves a real gap.

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% and there is a single required 'path' parameter with its own description, so the schema already does the work. The tool description adds no format or semantic detail (relative vs absolute path, trailing slash behavior) beyond it.

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?

States a specific verb (list) and resource (files in a directory) plus the transport (SFTP on a remote server), which cleanly separates it from sibling writes/deletes like sftp_write_file or sftp_delete. It stops short of naming alternatives, but the purpose is unambiguous.

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

Usage Guidelines2/5

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

No guidance on when to use this versus sftp_read_file or other siblings, and no prerequisite noted (e.g., an active session from sftp_connect). The agent must infer all context.

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