Skip to main content
Glama

sftp-list

Read-only

List a remote directory over SFTP with configurable entry and response-size limits, providing read-only results for inspection.

Instructions

List a remote directory over SFTP, with a bounded number of entries and a bounded response size. Read-only.

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": {
      "remotePath": "<remotePath>"
    },
    "name": "sftp-list"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileNoProfile name
maxEntriesNoMax entries to return (default 200, hard cap 1000)
remotePathYesRemote directory to list. No leading or trailing whitespace, and no control, bidirectional or zero-width characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.31.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv2.11.0
    • changedInput schema / properties / remotePath / description
      Previous value: -"Remote directory to list"New value: +"Remote directory to list. No leading or trailing whitespace, and no control, bidirectional or zero-width characters."
  3. Addedv2.9.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, and the trailing "Read-only" merely restates that. The genuinely additive content is the disclosure that both entry count and response size are bounded, which warns the agent results may be truncated — but it does not say how truncation is signalled or what happens on an unreadable path, so the behavioral picture is only partial.

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?

Two short sentences, front-loaded with the action and resource, with no filler. The only waste is the redundant "Read-only" clause that duplicates the annotation.

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 three-parameter read tool with full schema coverage and a safety annotation, this covers the essentials; the bounded-result caveat is the key thing an agent needs. With no output schema, a brief note on what an entry looks like or how truncation is reported would close the remaining 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%, including the default 200 and hard cap 1000 for maxEntries, so the schema already carries parameter meaning. The description's mention of bounded entries and response size echoes maxEntries without adding format or behavior detail, so baseline 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?

"List a remote directory over SFTP" gives a specific verb, resource, and transport, which clearly separates it from the sftp-download/sftp-upload siblings that move file content. It stops short of naming an alternative or stating the scope of what 'list' returns, so it is clear but not fully differentiated.

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: an agent can infer this is the discovery step before a download, but the description never says when to prefer this over sftp-download or what preconditions exist (e.g. an open session or valid profile). No exclusions or alternatives are stated.

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