Skip to main content
Glama
bsahane

kali-mcp-server

by bsahane

nmap_scan

Scan authorized hosts to discover open ports, running services, OS details, and vulnerabilities using configurable Nmap profiles.

Instructions

Run an nmap scan against an authorized target.

TOOL_NAME=nmap_scan DISPLAY_NAME=Nmap Network Scanner USECASE=Discover open ports, services, versions, OS and run NSE vuln scripts on an in-scope host INSTRUCTIONS=1. Ensure the target is in the engagement scope (scope_manage), 2. Pick a profile, 3. Optionally set ports/extra_args, 4. Call INPUT_DESCRIPTION=target (host/IP/CIDR); profile (quick|full|service|os|aggressive|vuln|top-ports); ports (e.g. "22,80,443" or "1-1000"); extra_args (list of raw nmap flags) OUTPUT_DESCRIPTION=Dict with status, parsed open_ports list, raw stdout/stderr, command and execution mode EXAMPLES=nmap_scan("scanme.nmap.org", "quick"), nmap_scan("10.0.0.5", "service", ports="1-1024") PREREQUISITES=Target authorized and added to scope; nmap available on host or via Kali container RELATED_TOOLS=host_discovery, masscan_scan, nikto_scan

Args: target: Host, IP or CIDR to scan (must be in the authorized scope). profile: One of the predefined nmap profiles. ports: Optional explicit port specification (overrides profile ports). extra_args: Optional list of additional raw nmap arguments.

Returns: Structured result dict including parsed open_ports.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portsNo
targetYes
profileNoquick
extra_argsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description must disclose behavioral traits. It mentions the need for authorization and scope, and describes the output structure. However, it does not warn that NSE vuln scripts may be intrusive or that scans can be detected, nor does it mention rate limits or potential side effects. Some transparency is present, but significant details are omitted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a concise opening sentence followed by labeled sections (USECASE, INSTRUCTIONS, INPUT_DESCRIPTION, etc.). It is front-loaded with the core purpose and every section provides actionable information without fluff. The format is easy to parse and understand.

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

Completeness5/5

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

For a tool with 4 parameters, no annotations, but an output schema, the description is highly complete. It covers purpose, usage instructions, parameter semantics, prerequisites, examples, output format, and related tools. Nothing critical is missing for an agent to select and invoke the tool correctly.

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

Parameters5/5

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

The input schema has no descriptions (0% coverage), so the description fully compensates. It explains each parameter in detail: target as host/IP/CIDR with scope requirement, profile listing allowed values (quick|full|service|os|aggressive|vuln|top-ports), ports with syntax and override behavior, and extra_args as raw nmap flags. This adds substantial meaning beyond the schema.

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 clearly states 'Run an nmap scan against an authorized target' and the USECASE adds 'Discover open ports, services, versions, OS and run NSE vuln scripts'. This is a specific verb+resource with a clear purpose, but it does not explicitly differentiate from sibling tools like masscan_scan or host_discovery, so it falls short of a 5.

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

Usage Guidelines4/5

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

The description provides step-by-step instructions (INSTRUCTIONS), prerequisites (ensure target in scope, nmap available), and examples. It gives clear context on how and when to use the tool, but it does not explicitly state when to use this tool instead of alternatives or when not to use it, so no exclusions are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bsahane/kali-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server