Skip to main content
Glama

smb-delete

Destructive

Deletes a single specified file from a Windows SMB share, requiring explicit confirmation and a reason to prevent accidental bulk or folder removal.

Instructions

dbabrain common.cli smb-delete: A Windows share and the login to it - what to list, fetch, delete, or store the login for. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • host: The machine sharing it: //host/share. Every command but smb-credential.

  • share: The share's name on that host.

  • username: The login. A domain before it (DOMAIN, then a backslash, then the user) is split off, as Windows writes it. The caller resolves it - common.cli reads no configuration.

  • password: The login's password. Never on a command line: smbclient reads it from a file this command writes 0600 and deletes.

  • domain: The login's domain, when not part of username.

  • backend: smbclient | unc. Default: unc on Windows (the share's own path, after cmdkey), smbclient elsewhere.

  • timeout_seconds: The whole call. Default 600 for a listing or a delete, 3600 for one file.

  • path: smb-list: the folder under the share to list; empty = the share's root.

  • recurse: smb-list: into subfolders (default true).

  • suffixes: smb-list: only file names ending in one of these, case-insensitive (e.g. [".bak", ".trn"]).

  • remote_path: smb-get: the file under the share, backslash- or slash-separated.

  • local_path: smb-get: the file to write on this node; its folder is created.

  • paths: smb-delete: the ONE file to delete, under the share - a list of exactly one path, never a pattern or a folder; two or more are refused.

  • force: smb-delete: must be true - a share has no host to hash a file on, so this is the forced delete of one stray file.

  • target: smb-credential: the host whose UNC paths the stored login opens.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "smb-delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Beyond the annotations, the description adds important behavior: emergency-operations commands require confirm='yes' and a reason, passwords are written to a 0600 file and deleted, and smb-delete requires force=true because a share has no host to hash a file on. This is useful context for a destructive operation, although the description remains generic across several SMB commands.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long and mostly structured as a shared handbook for list/get/delete/credential commands, so much of the text is not specific to smb-delete. The delete-specific details are buried rather than front-loaded, which makes the definition harder to scan efficiently.

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 return values need not be described, and the annotations already signal destructive/open-world behavior. The description supplies field semantics and some destructive-operation constraints, but it is ambiguous about whether smb-delete itself is on the emergency-operations list and does not clearly state the complete required request shape.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and a single opaque request object, the description compensates strongly by defining many request fields in prose, including smb-delete's paths constraint of exactly one path and force=true. It does not give exact required-field sets or types and mixes in fields for other SMB siblings, so it is not fully complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never cleanly states that smb-delete deletes exactly one file from an SMB share; it opens with a generic 'Windows share and the login to it - what to list, fetch, delete, or store the login for' and 'Changes or removes something.' The smb-delete-specific field notes do mention deleting one file and requiring force=true, but the primary purpose is muddled by covering several sibling SMB commands.

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?

It gives some implied usage constraints: smb-delete takes exactly one path, never a pattern or folder, requires force=true, and for emergency-operations commands requires confirm='yes' and a reason. However, it never explicitly says when to choose smb-delete over delete-file or other delete siblings, nor when not to use it.

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

Deploy Server

Other Tools