Skip to main content
Glama
mcp-multi-ssh

mcp-multi-ssh

by hl9020

sftp_read_file

Read a file from a remote host over SFTP, returning UTF-8 text by default or base64 for binary files. Use a connection ID and absolute remote path to retrieve remote file contents.

Instructions

Read a file from a remote host via SFTP. Returns text by default; set encoding 'base64' for binary files.

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_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
encodingNoOutput encoding: 'utf8' (default) or 'base64' for binary
remotePathYesAbsolute remote file path
connectionIdYesSSH connection ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

B3.3/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 only discloses the default output format. It says nothing about read-only semantics, permission requirements, size limits on large files, or how missing/unreadable paths are reported.

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 tight sentences with the primary action first and the default behavior second. No filler, though the second sentence largely duplicates the encoding parameter's schema description.

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 three-parameter read tool with no output schema and no annotations, the description covers what the tool does and what it returns at a high level. Gaps around failure modes and large-file behavior keep it short of a 5.

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 coverage is 100%, so all three parameters are already documented, including the encoding enum and its default. The description restates the encoding behavior rather than adding new meaning, 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?

Names a specific verb and resource ("Read a file from a remote host via SFTP"), which is clearly distinct from the sibling sftp_write_file. It stops short of explicitly routing the agent away from alternatives such as ssh_execute, but the purpose is unambiguous.

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: you would call this when you need a file's contents. The description does say when to pick base64 over the default text mode, which is a real selection rule, but it never contrasts this with other ways of reading remote data (e.g., ssh_execute).

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