Skip to main content
Glama

sftp_rename

Rename or move a file or directory on a remote server over SFTP by providing its current and new paths.

Instructions

Rename or move a file/directory on the remote server.

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": {
      "old_path": "<old_path>",
      "new_path": "<new_path>"
    },
    "name": "sftp_rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNoAbort this SFTP operation if it makes no progress for this many milliseconds
new_pathYesNew path for the file/directory
old_pathYesCurrent path of the file/directory
session_idNoSession ID (optional if using pre-configured server)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/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. It does not say whether an existing target is overwritten, whether the parent directory must exist, whether non-empty directories can be moved, or what happens on failure — all material for a mutation tool.

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?

A single sentence with no wasted words and the verb front-loaded. It is efficient, though the brevity leaves the behavioral gaps noted elsewhere rather than being genuinely complete.

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

Completeness2/5

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

For a four-parameter mutation tool with no annotations and no output schema, the definition should disclose overwrite/error semantics and permission requirements. The schema covers parameter naming well, but the description leaves the operation's side effects and failure modes entirely undocumented.

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%, so both path parameters and the timeout/session_id are already documented in the schema. The description adds no syntax, format, or path-semantics detail beyond that, so the baseline 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?

The description states a specific verb pair (rename/move) and resource (file/directory on the remote server), so an agent can tell it apart from sftp_upload or sftp_delete. It does not explicitly name a sibling or contrast behavior, which keeps it just below a 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance and no exclusion of alternatives. The agent must infer that this is for remote-to-remote path changes rather than transferring a local file, which is exactly the kind of distinction sftp_upload/sftp_download would require clarifying.

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