check_tcp_connect
Tests whether a TCP connection from an SSH host to a specified target host and port opens, helping diagnose reachability and firewall issues.
Instructions
Whether a TCP connection from the host to target_host:target_port opens (nc -vz). host/port are the SSH connection, not the target.
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_host": "<target_host>",
"target_port": "<target_port>",
"host": "<host>",
"user": "<user>"
},
"name": "check_tcp_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| user | Yes | ||
| timeout | No | ||
| key_path | No | ||
| target_host | Yes | ||
| target_port | Yes | ||
| password_env | No | ||
| accept_new_hostkey | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||