check_ports
Test if specific TCP ports accept connections on an authorized host. Use for targeted port connectivity checks, not range sweeps or service fingerprinting.
Instructions
Test whether a short, explicit list of TCP ports accepts connections on a host in scope. Plain connect only: no banner grabbing, no service fingerprinting, no range scanning. Port ranges and full sweeps are NOT available and asking for more ports than the configured maximum is an error, not a truncated scan. Cost: 1 quota unit PER PORT. A 20-port check spends 20 units.
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": {
"host": "<host>"
},
"name": "check_ports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Hostname or IP in scope. | |
| ports | No | Explicit list of TCP ports. | |
| timeout_seconds | No | Per-port connect timeout. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| limit | No | ||
| ports | No | ||
| checked | No | ||
| pinned_ip | Yes | ||
| elapsed_ms | No | ||
| open_ports | No |