Skip to main content
Glama
HexStrike AI MCP Agents

HexStrike AI MCP Agents

by liusc45

metasploit_run

Execute a Metasploit module with custom options and enhanced logging to capture penetration-test execution results.

Instructions

Execute a Metasploit module with enhanced logging.

Args: module: The Metasploit module to use options: Dictionary of module options

Returns: Metasploit execution 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": {
      "module": "<module>"
    },
    "name": "metasploit_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
moduleYes
optionsNo

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 burden, yet it only asserts "enhanced logging" without saying what that means or where logs go. For an exploit execution tool it omits material behavior: target side effects, session/handler creation, timeouts, and authorization expectations. The single word "Execute" is the only signal that this is a high-impact action.

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 and front-loaded, with the action stated in the first clause before the arg list. The Args block largely duplicates the schema, so a small amount of the text fails to earn its place, but there is no padding or verbosity.

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?

An output schema exists, so return values need no explanation here. However, for a two-parameter tool whose second parameter is an unconstrained nested object, with zero annotation coverage on a destructive execution operation, the definition leaves out exactly the information an agent needs to invoke it safely and correctly.

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 coverage is 0%, so the description must compensate and does not: "module: The Metasploit module to use" and "options: Dictionary of module options" merely restate the schema titles. The critical gap is `options`, a free-form nested object (additionalProperties: true) where the agent needs to know key names and value formats such as RHOSTS/LHOST/PAYLOAD — none of that is given.

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: "Execute a Metasploit module," which is far more concrete than a bare name restatement, and the logging note adds a qualifier. It never distinguishes this from the many other exploit/attack siblings (e.g. ai_generate_attack_suite, ai_generate_payload), so an agent cannot route between them from this text alone.

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 prerequisites (Metasploit availability, target authorization, expected module naming convention), and no mention of when another sibling would be the better pick. The only context is the arg list.

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