redis_mset
Set multiple Redis key-value pairs in one command to efficiently seed test data. Avoids overhead of individual set calls.
Instructions
Set multiple string keys to their values in a single command (e.g. for seeding test/sample data) — far more efficient than one redis_set call per key. Blocked when that connection's own readOnly mode is enabled.
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": {
"entries": "<entries>"
},
"name": "redis_mset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | JSON object of key/value pairs to set, e.g. '{"user:1:name":"Alice","user:2:name":"Bob"}' | |
| connectionId | No | Id of the redis connection to use, from databases.config.yml. Optional when only one redis connection is configured. |