tcp_check
Verifies whether a TCP connection to a host and port can be established, then reports round-trip latency in milliseconds for service liveness checks.
Instructions
指定した host:port に TCP 接続できるか(=そのポートで何かが待ち受けているか)を確かめ、接続できたら往復の遅延をミリ秒で返す。サーバやサービスが上がっているかの生死確認に使う。Web の応答は http_request。
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>",
"port": "<port>"
},
"name": "tcp_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ホスト名または IP。 | |
| port | Yes | ポート番号。 | |
| timeout | No | 秒。省略時 5。 |