redis_zcard
Retrieve the size (number of elements) of a Redis sorted set.
Instructions
Get the size of a sorted set.
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_zcard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The sorted set key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |