Skip to main content
Glama

delete_file_tool

Deletes a specified file by absolute or relative path, enabling AI tools to remove files from the filesystem through Pathgate.

Instructions

Delete a file

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_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute or relative path to the file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.3/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 burden of disclosure for a destructive mutation, yet it says nothing about irreversibility, recycle/trash behavior, required permissions, or error conditions for missing paths. The word 'Delete' at least signals a destructive write, but nothing beyond that is revealed.

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

Conciseness3/5

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

Three words with zero padding and the key verb-resource front-loaded, so nothing is wasted. However, the brevity reflects under-specification rather than disciplined concision; there is no structure or supporting clause of any kind.

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?

A destructive file-deletion tool with no annotations, no output schema, and no description of failure modes or recovery leaves the agent without the context needed to invoke it safely. The schema is simple, but the safety-critical context is entirely absent.

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?

The single required parameter 'path' is fully described in the schema (100% coverage) as an absolute or relative path, so the schema already does the work. The description adds no meaning about path resolution, symlink handling, or relative-path base directory beyond what the schema states.

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

Purpose2/5

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

The description 'Delete a file' is effectively a restatement of the tool name delete_file_tool, with no added specificity. It does not distinguish this tool from the sibling delete_directory_tool beyond the implicit noun, and gives no scope details such as whether it targets a single path, a symlink, or a wildcard.

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 guidance, no precondition (e.g., file must exist, must not be a directory), and no pointer to alternatives like move_file_tool or delete_directory_tool. The agent is left to infer everything from the name alone.

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