get_tcp_connections
List individual TCP sockets filtered by connection state or local/peer port, showing owning processes on a remote host so you can identify who holds each connection.
Instructions
Individual TCP sockets (ss -tanp), filtered by state and tcp_port (local or peer): who holds what get_socket_summary counted.
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>",
"user": "<user>"
},
"name": "get_tcp_connections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| user | Yes | ||
| lines | No | ||
| state | No | ||
| timeout | No | ||
| key_path | No | ||
| tcp_port | No | ||
| password_env | No | ||
| accept_new_hostkey | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||