Skip to main content
Glama

ssh_read_file

Read-only

Read a text file from a remote host over SFTP, returning a byte range plus total size so large files can be retrieved in chunks.

Instructions

Read a text file from the remote host (SFTP). Returns at most max_bytes starting at offset, plus the total size so larger files can be read in chunks.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
offsetNo
targetYes
max_bytesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds genuinely useful behavior beyond that: the transport is SFTP, only text files are supported, and reads are bounded by offset/max_bytes with the total size returned so chunking can be driven by the caller. It does not cover error cases (missing file, permissions, binary content).

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, front-loaded with the operation and followed by the return/chunking semantics; nothing is padded. The return-value sentence slightly overlaps with the existing output schema, which keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the description need not explain return shapes, and it correctly focuses on chunking. What is missing for a 4-parameter, 0%-coverage read tool is the meaning of `target` and `path` and how failures or non-text files are surfaced.

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 0%, so the description must carry parameter meaning, and it does explain `max_bytes` and `offset` as a chunking pair. However, `path` and especially `target` (which host/target identifier, presumably from ssh_list_targets) are left completely undefined, so half the parameters remain opaque.

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?

The description states a specific verb and resource ('Read a text file from the remote host (SFTP)') and scopes it to text files, which distinguishes it in spirit from a binary transfer tool. It does not explicitly name or contrast with a sibling such as ssh_download, so it falls short of full sibling differentiation.

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: the mention of 'max_bytes'/'offset' and 'so larger files can be read in chunks' signals that this is the chunked-read path for large files. There is no explicit statement of when to prefer this over ssh_download or adb_read_file, and no prerequisites or exclusions.

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