Skip to main content
Glama
HexStrike AI MCP Agents

HexStrike AI MCP Agents

by liusc45

modify_file

Edits an existing file on the HexStrike server by overwriting or appending content, enabling controlled file updates during security testing workflows.

Instructions

Modify an existing file on the HexStrike server.

Args: filename: Name of the file to modify content: Content to write or append append: Whether to append to the file (True) or overwrite (False)

Returns: File modification 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>",
      "content": "<content>"
    },
    "name": "modify_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
appendNo
contentYes
filenameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.1.0

TDQS

B3.3/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 burden of behavioral disclosure. It does distinguish overwrite from append, but says nothing about whether overwriting is destructive/irreversible, what happens if the target file does not exist, whether permissions or paths are restricted, or any error behavior.

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?

Short docstring-style text with the operation stated first and parameters grouped below. No filler, though the trailing "Returns: File modification results" is essentially meaningless.

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

Completeness3/5

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

An output schema exists, so return detail is not required, but the description omits error/edge-case behavior for a mutation tool (nonexistent file, overwrite risk) and offers no routing guidance against create_file/delete_file.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does: all three parameters are explained, including the important default semantics of 'append' (True appends, False overwrites). Only filename/content formats (paths, encoding) are left unspecified.

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?

The description states a specific verb and resource ("Modify an existing file on the HexStrike server") and the word "existing" implicitly separates it from create_file and delete_file. It is clear but does not explicitly name or contrast with those siblings.

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

Usage Guidelines3/5

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

Usage is only implied: the tool modifies files that already exist, which hints that new files belong to create_file, but the description never states when to use this versus create_file or delete_file. No prerequisites or exclusions are given.

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