test_connectivity
Check network connectivity to a remote host and port, with configurable timeout and automatic blocking of private IPs and cloud metadata endpoints.
Instructions
[Diagnostics] Test network connectivity to host and port
Example usage:
{
"host": "google.com",
"port": 443,
"timeout": 5000
}Security: Blocks connections to private IPs, localhost, and cloud metadata endpoints.
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": "test_connectivity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Hostname or IP address to test | |
| port | No | Port number to test (default: 80) | |
| timeout | No | Connection timeout in milliseconds (default: 5000, max: 10000) |