create_key
Create a Redis key with a specified type, initial value, and optional TTL. Supports string, list, set, and hash data types.
Instructions
Create a new key in Redis
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": "create_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Redis key to create | |
| ttl | No | Time to live in seconds (optional) | |
| type | No | Data type: string, list, set, hash (default: string) | |
| value | No | Initial value for the key (default: empty string) |