redis_ttl
Retrieve the remaining time to live of a Redis key, or -1 if it never expires.
Instructions
Get the remaining time to live (in seconds) of a Redis key, or -1 if it has none.
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 | ||
| connectionId | No | Id of the redis connection to use, from databases.config.yml. Optional when only one redis connection is configured. |