Skip to main content
Glama
SSH MCP Server

SSH MCP Server

by icdmkg2

sftp_list

Lists files and folders in a remote SFTP directory, with optional hidden-file inclusion, to inspect server contents without manual navigation.

Instructions

List the contents of a remote directory via SFTP.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
remotePathYesRemote directory path (use "." for current directory)
showHiddenNoInclude hidden files (starting with ".") (default false)
connectionIdYesConnection ID from ssh_connect

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing beyond the fact that it reads. It doesn't say whether the operation is read-only (only implied), what happens when remotePath is missing or not a directory, whether output is truncated, or what the results look like — significant since there is no output schema.

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 or redundancy. Its brevity is efficient, though it borders on under-specification given the tool's lack of annotations and output schema.

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?

For a tool with no annotations and no output schema, the description should say something about the returned entries (names, types, sizes) and failure behavior. It says nothing, so an agent cannot predict the result shape or error conditions before calling.

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%; all three parameters are documented in the schema itself, including the '.' convention for remotePath, the hidden-file default, and that connectionId comes from ssh_connect. The description adds no meaning beyond that, so the baseline of 3 applies.

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 and resource ('List the contents of a remote directory') plus the transport ('via SFTP'), so the agent knows exactly what it does. It does not distinguish itself from the closely named sibling sftp_stat, which also inspects a remote path, leaving the boundary to inference.

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 when-to-use guidance, no exclusions, and no named alternative. An agent deciding between sftp_list and sftp_stat gets no help from the description; the only implicit guidance is that listing is for directories.

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