port_map
Nmap port scan against a single host from the Netmon server. Wraps POST /api/getPortscanInfo (permission: tools).
Server runs nmap -oX - -p <ports> --open <ip> and returns the parsed result. The probe originates from netmon, not from wherever mcpmond runs — so what's reachable here is what netmon can reach.
Single targets only (single IP or hostname). The backing endpoint does not accept CIDR or ranges. If port_range is omitted, scans 1-1024.
Returns the nmap host element as JSON: status, address, and ports[] with state/service/product/version. Latency: scans can take ~30-90s depending on port count and target responsiveness; client timeout is 120s.
Example: port_map({target: "192.168.1.1", port_range: "22,80,443"})
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": "port_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Single IP address or hostname to scan. CIDR/ranges are not supported by the backing endpoint. | |
| port_range | No | Optional. Ports to scan, e.g. '80', '22,80,443', '1-1024'. Defaults to '1-1024'. |