redis_ttl
Check a Redis key's remaining time to live in seconds, where -1 means no expiry and -2 indicates the key does not exist.
Instructions
Seconds until a key expires. -1 = no expiry, -2 = key doesn't exist.
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": {
"key": "<key>"
},
"name": "redis_ttl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes |