Skip to main content
Glama

sftp_list

List files and directories in a remote SFTP path and return names, sizes, permissions, and modification times for inspection.

Instructions

List files and directories in a remote path. Returns file names, sizes, permissions, and modification times.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sftp_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoRemote directory path to list (default: /)/
timeoutNoAbort this SFTP operation if it makes no progress for this many milliseconds
session_idNoSession ID (optional if using pre-configured server)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It helpfully discloses the return fields (names, sizes, permissions, modification times), but it does not state whether the listing is recursive, whether hidden files are included, or what happens on a missing path or dead session.

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 short sentences with zero waste: the operation is front-loaded and the return-value sentence is concise and informative.

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 three fully documented parameters and no output schema, the description covers purpose and return fields adequately. Minor gaps remain around recursion, hidden files, and connection prerequisites, but nothing critical for a correct call is missing.

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 path, timeout, and session_id are already documented in the schema. The description adds no format or default guidance beyond that, so the baseline 3 is appropriate.

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 gives a specific verb and resource — 'List files and directories in a remote path' — and enumerates the returned fields, so an agent can tell this is a directory-listing read rather than a file fetch or session listing. It does not explicitly differentiate itself from siblings like sftp_read or sftp_download, which keeps it from a 5.

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 only implied by the verb 'List'; there is no statement of when to choose this over sftp_read or sftp_download, and no note that a session/connection must already exist. An agent can infer the purpose but receives no explicit routing guidance or exclusions.

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