Skip to main content
Glama

delete-verified-files

Destructive

Deletes a list of verified files on a host only after validating each path, name, size, and SHA-256; stops at the first failed deletion and supports dry runs.

Instructions

dbabrain common.cli delete-verified-files: A list of files, each deleted as delete-verified-file deletes one - its own facts, its own script, over one connection; the first not deleted stops the list (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.

  • files (required): The files, at most 20000: each {path, file_name, size_bytes, sha256, must_be_under} - every fact required on every item, no other field. One bad or repeated item refuses the whole list before the host is reached.

  • dry_run: Check every fact, delete nothing.

  • timeout_seconds: Seconds each item may take on the host (its 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-files"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint and openWorldHint, yet the description adds real behavior: the list is fail-fast (first non-deleted item stops the rest), the entire list is validated before the host is reached, and a confirm=\"yes\" plus reason is mandatory. The per-item timeout and 3600s default add further operational detail; only the ambiguous phrase 'Changes or removes something' merely restates the annotation.

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?

Content is front-loaded and every element (fail-fast semantics, confirm gate, field list) earns its place. The opening sentence is dense and awkwardly punctuated ('its own facts, its own script, over one connection'), costing some readability but not correctness.

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?

A destructive batch tool with a 0%-documented schema, yet every request field, precondition, and failure mode is covered, and an output schema exists so return values need not be explained. Nothing an agent needs to call it safely is missing.

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 coverage is 0% — the single `request` blob is an untyped anyOf — so the description carries the full burden and does: it enumerates host fields (runtime, access, credentials, container, sudo), the required per-file facts (path, file_name, size_bytes, sha256, must_be_under), the 20000 cap, dry_run, and timeout_seconds with its default. This adds substantially more than the schema exposes.

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?

Names a specific verb+resource (batch delete of 'verified' files) and explicitly anchors it to the sibling singular tool: 'each deleted as delete-verified-file deletes one ... over one connection'. An agent can tell it apart from delete-file/smb-delete by the sha256/size pre-verification requirement.

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?

Gives useful routing context through dry_run ('Check every fact, delete nothing') and the confirm/reason requirement, so an agent knows the safe preflight path. It never states when to prefer this over delete-file or smb-delete, so the alternative-selection guidance is incomplete.

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