Skip to main content
Glama
ssh-remote-mcp
by wcbup

List Remote Directory

ssh_ls
Read-onlyIdempotent

Lists files and directories at an explicit remote path, returning type, size, permissions, and modified time for remote host inspection.

Instructions

List files and directories at an explicit remote path with type, size, permissions, and modified time.

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": {
      "target": "<target>",
      "path": "<path>"
    },
    "name": "ssh_ls"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesExplicit remote absolute path (e.g. /etc/nginx/nginx.conf or C:\Services\app.json) or home-relative ~/... path. Bare relative paths are rejected.
targetYesSSH target as configured host alias, host, user@host, user@host:port, or [ipv6]:port. Never include remote paths in target.
max_entriesNoMaximum entries to return (default: 500)
show_hiddenNoInclude dotfiles / hidden files (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds genuine value beyond that by disclosing the shape of the returned listing (type, size, permissions, mtime) and the constraint that paths must be explicit rather than relative. It stops short of covering error behavior or symlink handling.

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?

A single front-loaded sentence that names the action, the scope, and the returned fields with zero filler. Nothing could be removed without losing information.

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 four-parameter read tool with no output schema, the description usefully enumerates the fields a caller will receive, which compensates for the missing return schema. Minor gaps remain around truncation behavior at max_entries and permission errors, but the essentials for correct invocation are present.

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%, with path, target, max_entries, and show_hidden all documented in the schema itself, including the default of 500 and the hidden-file default of true. The description only reinforces the "explicit path" rule already stated in the path parameter, adding no new syntax or format detail.

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 files and directories") plus the scope ("explicit remote path") and the returned attributes (type, size, permissions, modified time). It is distinguishable from search-style siblings like ssh_find or ssh_grep, though it never names them to make the contrast explicit.

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?

The word "explicit" and the schema's rejection of bare relative paths imply this is a non-recursive, non-globbing listing, so an agent can infer ssh_find/ssh_grep are for searching. However, there is no explicit when-to-use statement, no mention of prerequisites such as an established connection, and no named alternative.

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