Skip to main content
Glama
HexStrike AI MCP Agents

HexStrike AI MCP Agents

by liusc45

delete_file

Delete a file or directory on the HexStrike server by name to clean up unwanted server-side files during security testing and research workflows.

Instructions

Delete a file or directory on the HexStrike server.

Args: filename: Name of the file or directory to delete

Returns: File deletion results

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": {
      "filename": "<filename>"
    },
    "name": "delete_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses that directories as well as files can be targeted and that the target is the HexStrike server, but says nothing about permanence/irreversibility, permission requirements, whether non-empty directories are rejected, or behavior on a missing path — all critical for a destructive operation.

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 definition is short and front-loaded with the action in the first sentence. The 'Returns: File deletion results' line is low-value filler, especially since an output schema exists, but it costs little.

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?

For a destructive, zero-annotation tool with an undocumented parameter, the definition omits the safety and permission context an agent needs before invoking it. The presence of an output schema makes the Returns section redundant rather than compensatory.

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

Parameters2/5

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

Schema description coverage is 0% for the single parameter, so the description must compensate. It only restates the schema's 'Filename' title as 'Name of the file or directory to delete' without clarifying path format (relative vs absolute), base directory, or whether a full path is accepted.

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

Purpose4/5

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

States a specific verb and resource ('Delete a file or directory') plus a scoping detail ('on the HexStrike server'). It does not differentiate from the existing create_file and modify_file siblings, so an agent gets a clear action but no explicit contrast.

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 guidance on when to use this versus create_file/modify_file, no prerequisites, and no warning about when deletion should be avoided. The only implied usage is the obvious one carried by the verb 'Delete'.

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