Skip to main content
Glama

delete-verified-file

Destructive

Delete one file only after its name, path, byte size, and SHA-256 hash all match on the host, preventing removal of the wrong file during emergency operations.

Instructions

dbabrain common.cli delete-verified-file: ONE file deleted only when its name, path, bytes and sha256 are all true on the host (0.37.0). 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: Where the file is: {runtime (windows | linux | docker | k8s - stated), access (ssh | winrm), host, port, username, password | key_file, container, sudo}; left out, this machine.

  • path (required): The one file, in full; never a pattern, never a list (paths is refused).

  • file_name (required): The file's name - the last part of path.

  • size_bytes (required): The bytes it must measure on the host now.

  • sha256 (required): The sha256 it must hash to on the host now - 64 hexadecimal characters.

  • must_be_under (required): The folder the path must be strictly inside; the fence itself is never deleted.

  • dry_run: Check every fact, delete nothing.

  • timeout_seconds: Seconds the host may take - the hash runs at disk speed; default 3600.

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": "delete-verified-file"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds non-obvious behavior: this command is on the emergency-operations list and requires `confirm: "yes"` plus a `reason` in the request. It also discloses the verification guard, the fence rule (the folder itself is never deleted), and that hashing runs at disk speed with a 3600s default timeout.

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?

The critical constraint is front-loaded and the field list is cleanly bulleted, making it easy to scan. Minor waste remains: the generic 'Changes or removes something.' line and the trailing version marker '(0.37.0)' add little for an agent.

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

Completeness5/5

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

Given an output schema exists (so return values need no explanation), the description covers everything needed to call it correctly: confirmation/auth requirement, all request fields, dry-run mode, fence semantics, and timeout behavior. Nothing material is missing for a destructive single-file operation.

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

Parameters5/5

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

Schema description coverage is 0% and the schema is just an open `request` object, so the description carries the entire burden — and does: it enumerates host, path, file_name, size_bytes, sha256 (64 hex chars), must_be_under, dry_run and timeout_seconds with required markers and inline type hints. This fully compensates for the opaque schema.

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

Purpose5/5

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

States a specific verb and resource plus the exact precondition: 'ONE file deleted only when its name, path, bytes and sha256 are all true on the host.' The emphasis on ONE and the note that '`paths` is refused' implicitly separates it from the plural sibling delete-verified-files, so an agent can route correctly without opening schemas.

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

Usage Guidelines4/5

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

Clear context for use: the caller must already know current bytes and sha256 on the host, and the path must sit strictly inside a named fence. `dry_run: Check every fact, delete nothing` gives an explicit safe alternative. It stops short of naming competing siblings (delete-file, delete-verified-files) as replacement options, so it is short of a 5.

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