Skip to main content
Glama
slepp
by slepp

ssh_view

List remote directories or read file contents over SSH, including metadata and paging for large files.

Instructions

Read a remote file or list a remote directory over SSH — the remote counterpart of the local file-viewing tool. For a file, returns its content plus 'size_bytes' and 'total_lines'. Content is truncated at 20KB by default when 'view_range' isn't given and 'force_read_large_files' isn't set; use 'view_range' to page through large files instead. For a directory, returns non-hidden entries up to 2 levels deep.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute (or login-directory-relative) remote path to a file or directory.
portNo
targetYesOpenSSH target such as host, alias, or user@host.
timeoutNoLocal timeout in seconds.
max_bytesNoTruncation cutoff in bytes for the default (no view_range, no force) read. Default: 20480 (20KB).
view_rangeNoOptional [start_line, end_line] (1-based, inclusive). Use end_line -1 for 'to end of file'. Bypasses the 20KB truncation cutoff.
identity_fileNo
extra_ssh_argsNoAdditional ssh(1) flags passed verbatim, e.g. ["-J", "jumphost"]. Prefer the dedicated port, identity_file, and strict_host_key_checking parameters.
known_hosts_fileNo
force_read_large_filesNoRead the full file even if it exceeds the truncation cutoff. Ignored when 'view_range' is given. Default: false.
strict_host_key_checkingNoBoolean or one of yes, no, ask, accept-new, off.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses file return fields (size_bytes, total_lines), default 20KB truncation, view_range bypass, force_read_large_files behavior, and directory depth/visibility limits. It does not mention auth or error behavior, but the key behavioral traits are transparent.

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?

Three sentences, front-loaded with purpose, and each subsequent sentence adds behavioral detail without fluff. Excellent conciseness and structure.

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 an 11-param tool with no output schema and no annotations, the description covers the primary use cases and important behavioral details: file output, directory listing, truncation, and paging. It omits the exact return format for directories and some edge cases, but it is adequate given standard SSH parameters are self-explanatory.

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 73%, so the description adds meaning by explaining how max_bytes, view_range, and force_read_large_files interact with truncation. However, most parameters (port, identity_file, timeout, etc.) rely on the schema or are self-explanatory, and the description doesn't compensate for uncovered parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-resource pair: 'Read a remote file or list a remote directory over SSH,' which immediately conveys purpose and scope. It also notes it is the 'remote counterpart of the local file-viewing tool,' distinguishing it from siblings like ssh_exec or ssh_grep.

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

Usage Guidelines4/5

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

Clear context is provided: use for reading files or listing directories, and use view_range to page through large files instead of reading the truncated default. It does not explicitly name alternative sibling tools or exclusion criteria, but the usage is well-scoped and practical.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/slepp/ssh-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server