ssh-retry
Execute shell commands with automatic retry and backoff on failure. Handle flaky network commands or services that need startup time.
Instructions
Execute a command with automatic retry and backoff on failure. Useful for flaky network commands or services that need time to start.
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": {
"command": "<command>"
},
"name": "ssh-retry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backoff | No | Backoff strategy (default "exponential") | |
| command | Yes | Shell command to execute | |
| delayMs | No | Base delay between retries in ms (default 1000) | |
| session | No | Session name or id. Defaults to "default" | |
| maxRetries | No | Maximum number of retries (default 3) | |
| failPattern | No | Regex pattern - if output matches this, consider command failed regardless of exit code | |
| successPattern | No | Regex pattern - if output matches this, consider command successful regardless of exit code |