Skip to main content
Glama
mcp-safe-actions

mcp-safe-actions

delete_file

Destructive

Permanently deletes a single file from the allowed folder, requiring explicit user approval before the action runs. Preview the deletion and wait for confirmation to keep destructive changes under human control.

Instructions

Permanently delete one file from the allowed folder.

DESTRUCTIVE: the user must approve before anything happens. Describe the action to the user and wait for their answer.

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": "delete_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile name relative to the allowed folder
confirm_tokenNoOnly for clients without approval prompts: the one-time token from the preview step. Never invent one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds context beyond them: the deletion is permanent (irreversible), and there is a human-approval gate plus a described fallback path for clients without approval prompts. It stops short of saying what happens on a missing path or a rejected confirmation.

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

Conciseness5/5

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

Two short sentences, with the destructive nature and the approval requirement front-loaded before any procedural detail. Nothing is padded and nothing essential is buried.

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

Completeness4/5

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

For a destructive single-file operation with no output schema, the definition covers permanence, scope, and the required approval workflow, which is what an agent needs to invoke it safely. Minor gaps such as error behavior on an invalid path keep it just under fully complete.

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%: the two parameters, including the confirm_token fallback and its warning never to invent one, are fully documented in the schema. The description reinforces the folder scoping and the approval step that confirm_token supports but adds no format or syntax detail beyond it, so the baseline of 3 applies.

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?

The description gives a specific verb ('Permanently delete'), a precise resource ('one file'), and a scope restriction ('from the allowed folder'), which makes it unmistakable against the only sibling, list_files. An agent knows exactly what the tool does without opening the schema.

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?

It states the operational prerequisite clearly: the user must approve, and the agent must describe the action and wait for an answer. What it lacks is any explicit when-not-to-use guidance, such as when to prefer a non-destructive alternative or what to do when the path is ambiguous.

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