Skip to main content
Glama
bsahane

kali-mcp-server

by bsahane

masscan_scan

Perform a rapid port sweep to identify open TCP ports on an authorized host or network. Specify target, port range, and packet rate for efficient reconnaissance.

Instructions

Run a fast masscan port sweep against an authorized target.

TOOL_NAME=masscan_scan DISPLAY_NAME=Masscan Port Sweeper USECASE=Rapidly identify open TCP ports across an in-scope host or range INSTRUCTIONS=1. Ensure target/range is in scope, 2. Set ports and a sane rate, 3. Call INPUT_DESCRIPTION=target (host/IP/CIDR); ports (e.g. "1-65535" or "80,443"); rate (packets/sec, capped at 5000) OUTPUT_DESCRIPTION=Dict with status, raw stdout/stderr, command and execution mode EXAMPLES=masscan_scan("10.0.0.0/24", ports="1-1000", rate=1000) PREREQUISITES=Target authorized and in scope; masscan needs root (runs as root in Kali container) RELATED_TOOLS=nmap_scan, host_discovery

Args: target: Host, IP or CIDR to scan (must be in scope). ports: Port specification. rate: Packets per second; capped at 5000 to avoid flooding.

Returns: Structured result dict.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rateNo
portsNo1-1000
targetYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that masscan needs root, runs as root in a Kali container, caps rate at 5000 to avoid flooding, and summarizes output structure via OUTPUT_DESCRIPTION. It could further detail potential side effects, but what is provided is transparent about execution requirements and output.

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?

The description is well-structured with a one-line summary followed by organized fields (USECASE, INSTRUCTIONS, PREREQUISITES, etc.). There is minor redundancy between the first sentence and USECASE, but overall it is efficient and each section adds value.

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

Completeness4/5

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

The description covers purpose, usage, prerequisites, input descriptions, output format, examples, and related tools. For a network scanning tool, this is quite complete. It lacks some edge-case behaviors (timeouts, error handling), but the essentials are well covered.

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 zero description coverage, so the description must compensate. The Args section thoroughly explains each parameter: target as host/IP/CIDR, ports with examples (e.g., '1-65535' or '80,443'), and rate with a cap and purpose. This adds significant meaning beyond the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Run a fast masscan port sweep against an authorized target' and USECASE 'Rapidly identify open TCP ports across an in-scope host or range', which fully captures the tool's function. It is also distinct from siblings like nmap_scan (detailed scan) and host_discovery due to the 'fast' and 'port sweep' emphasis.

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?

The description provides prerequisites (target authorization, root requirement) and lists related tools (nmap_scan, host_discovery), but does not explicitly say when to use this tool versus alternatives. The USECASE implies a particular scenario, but exclusions or direct comparisons are missing.

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