redis_incr
Increments a Redis key's value by a given amount. Use to atomically increase numerical counters or metrics stored in Redis.
Instructions
Increment 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_incr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key to increment. | |
| amount | No | Amount to increment by (default: 1). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |