Skip to main content
Glama
HexStrike AI MCP Agents

HexStrike AI MCP Agents

by liusc45

nmap_advanced_scan

Run targeted Nmap scans with custom NSE scripts, optimized timing, port selection, and OS/version detection to uncover network services and vulnerabilities.

Instructions

Execute advanced Nmap scans with custom NSE scripts and optimized timing.

Args: target: The target IP address or hostname scan_type: Nmap scan type (e.g., -sS, -sT, -sU) ports: Specific ports to scan timing: Timing template (T0-T5) nse_scripts: Custom NSE scripts to run os_detection: Enable OS detection version_detection: Enable version detection aggressive: Enable aggressive scanning stealth: Enable stealth mode additional_args: Additional Nmap arguments

Returns: Advanced Nmap scanning results with custom NSE scripts

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": {
      "target": "<target>"
    },
    "name": "nmap_advanced_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
portsNo
targetYes
timingNoT4
stealthNo
scan_typeNo-sS
aggressiveNo
nse_scriptsNo
os_detectionNo
additional_argsNo
version_detectionNo

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?

With no annotations, the description carries the full behavioral burden, and it discloses almost nothing: no warning about intrusiveness, legality/authorization expectations, scan duration, rate-limit or IDS-evasion consequences, or what happens when conflicting flags (aggressive + stealth) are combined. The one behavioral note, 'Returns: Advanced Nmap scanning results,' is redundant since an output schema exists.

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 intent sentence is front-loaded and the Args list mirrors parameter order, which aids scanning. However, roughly half the list is title restatement that could be compressed, and the Returns line adds length without adding information given the output schema.

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?

All 10 parameters are at least named, and the return value is covered by an output schema, so the definition is callable. It falls short for a high-impact, 10-parameter network scanner with zero annotation coverage: interactions between flags, privilege requirements, and defaults are undocumented.

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% across 10 parameters, so the Args block does real work for some — 'timing (T0-T5)' gives the valid range and 'scan_type (e.g., -sS, -sT, -sU)' gives concrete examples. For others it merely restates the title ('os_detection: Enable OS detection', 'ports: Specific ports to scan') without specifying port syntax (ranges vs. comma lists) or what additional_args accepts.

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 advanced Nmap scans') plus two distinguishing features: custom NSE scripts and optimized timing. It never explains what makes it 'advanced' relative to the sibling nmap_scan, so an agent must infer the split, but the core purpose is unambiguous.

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 at all — no statement about when an agent should pick this over nmap_scan or rustscan_fast_scan, no prerequisites, and no note that -sS/OS detection typically require elevated privileges. The 'aggressive' and 'stealth' flags are listed but never framed as mutually exclusive choices or as tradeoffs.

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