redis_decr
Decrease a Redis key's value by a specified amount, defaulting to 1. Useful for counters or tracking decrements.
Instructions
Decrement the value of a key.
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_decr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key to decrement. | |
| amount | No | Amount to decrement by (default: 1). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |