Skip to main content
Glama
HexStrike AI MCP Agents

HexStrike AI MCP Agents

by liusc45

zap_scan

Run OWASP ZAP baseline, full, or API scans against a target URL to identify web application vulnerabilities, with configurable daemon settings, logging, and XML, JSON, or HTML reports.

Instructions

Execute OWASP ZAP with enhanced logging.

Args: target: Target URL scan_type: Type of scan (baseline, full, api) api_key: ZAP API key daemon: Run in daemon mode port: Port for ZAP daemon host: Host for ZAP daemon format_type: Output format (xml, json, html) output_file: Output file path additional_args: Additional ZAP arguments

Returns: ZAP scan results

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "zap_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo0.0.0.0
portNo8090
daemonNo
targetNo
api_keyNo
scan_typeNobaseline
format_typeNoxml
output_fileNo
additional_argsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing beyond the parameter list. It does not say that ZAP performs active attacks against the target (a loud, potentially disruptive operation), whether credentials or authorization are needed, how long a full scan takes, or what daemon mode implies for process lifetime.

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?

The docstring-style Args block is compact and scannable, and every entry corresponds to a real parameter, so nothing is wasted. But it is a flat enumeration with no front-loaded summary of behavior or usage, so the agent must read the whole block to extract the little operational context present.

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 values need not be described. For a nine-parameter, annotation-free security scanner, though, the definition omits the operational picture: safety of active scanning, runtime expectations, permission requirements, and how daemon/host/port combine to control the ZAP server lifecycle.

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 description coverage is 0%, so the description must compensate, and it does list all nine parameters with short glosses, including value hints for scan_type (baseline, full, api) and format_type (xml, json, html) that the schema itself lacks. However, the glosses are terse and leave questions open, e.g. what api_key authenticates to, how output_file interacts with daemon mode, and the accepted syntax of additional_args.

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 names a specific verb and resource ("Execute OWASP ZAP") plus the distinguishing modifier of enhanced logging, so an agent knows this runs a ZAP scan rather than something else. It does not differentiate from the many other scanner siblings (nikto_scan, burpsuite_scan, nuclei_scan), leaving the agent to infer that this is specifically the ZAP-based option.

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 pick zap_scan over the other web scanners, no mention of prerequisites (target must be reachable, ZAP installed), and no exclusions. The scan_type values hint at depth of run but nothing says which situations call for baseline versus full versus api.

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