Skip to main content
Glama
ssh-sftp-mcp

ssh-sftp-mcp

by endjoker

sftp_transfer_status

Read-onlyIdempotent

Check the status, bytes processed and verified, and final result of an SFTP transfer by ID, and verify the target if a publish acknowledgement was lost.

Instructions

Returns transfer state, bytes processed, bytes verified and the final result. If the publish acknowledgement was lost, targetState=unknown - check the target before retrying.

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": {
      "transferId": "<transferId>"
    },
    "name": "sftp_transfer_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
transferIdYes

Output Schema

NameRequiredDescriptionDefault
errorNo
phaseYes
stateYes
resultNo
endedAtYes
directionYes
startedAtYes
totalBytesYes
transferIdYes
targetStateYes
tempCleanedYes
connectionIdYes
bytesVerifiedYes
bytesTransferredYes

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 establish read-only, idempotent, non-destructive behavior, but the description adds a non-obvious operational gotcha: a lost publish acknowledgement surfaces as targetState=unknown, and the target should be verified before retrying. That is exactly the kind of behavioral context annotations cannot convey and it prevents a duplicate-transfer mistake.

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?

Two tight sentences: return contents first, then the failure-mode caveat. Nothing is padded and the most decision-relevant warning is front-loaded rather than buried.

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?

With an output schema present, the description need not enumerate return fields, and it correctly spends its budget on the ambiguous unknown-state case. The only shortfall is the absence of guidance on where transferId comes from.

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 0% for the single transferId parameter, and the description does not explain the identifier's format, provenance, or how to obtain one (e.g., from sftp_upload_start). The parameter is largely self-evident, so this is a minor rather than crippling gap.

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 names a specific verb and resource — 'returns transfer state, bytes processed, bytes verified and the final result' — so an agent knows exactly what this call yields. It does not explicitly contrast itself with siblings like sftp_transfer_list, but the status/progress framing is distinct enough to be actionable.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no named alternative for listing or polling transfers. The only conditional guidance is the caution about targetState=unknown, which is operational advice rather than tool-selection advice.

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