Skip to main content
Glama

sftp_delete

Delete a file or empty directory on a remote server over SFTP, with optional timeout control to abort stalled operations.

Instructions

Delete a file or empty 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": {
      "path": "<path>"
    },
    "name": "sftp_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesRemote path to delete
timeoutNoAbort this SFTP operation if it makes no progress for this many milliseconds
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 provided, so the description carries the full behavioral burden, and it does little beyond the name. It does not state that deletion is irreversible, whether a non-empty directory causes an error, what permissions are required, or how the optional session_id interacts with a pre-configured server. The 'empty directory' phrase is the only real behavioral detail.

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 front-loaded sentence with no filler or redundancy. It is arguably too terse for a destructive operation, but from a pure conciseness standpoint there is nothing to cut.

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 destructive, unannotated mutation with no output schema, the description should disclose irreversibility, failure modes, and session requirements. None of that is present, leaving an agent without enough information to call it safely beyond the parameter schema.

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 path, timeout, and session_id are already fully documented in the schema; the description adds nothing about them. Baseline 3 applies because the schema does the heavy lifting and the description neither contradicts nor enriches it.

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 ('Delete a file or empty directory') plus the target scope ('on the remote server'), so an agent can tell it apart from sftp_read, sftp_write, or sftp_rename. It stops short of explicitly differentiating itself from siblings, but the destructive verb does the work.

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 or when-not-to-use guidance and no mention of alternatives (for example, what to use when a directory is not empty). The only implicit guidance is the 'empty directory' constraint, which an agent must infer as an error condition rather than a routing rule.

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