lrem
Remove matching elements from a Redis list. Use count to specify removals: 0 removes all, positive from head, negative from tail.
Instructions
Remove elements from a Redis list.
Args: name: The name of the list count: Number of elements to remove (0 = all, positive = from head, negative = from tail) element: The element value to remove
Returns: A string indicating the number of elements removed.
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": {
"name": "<name>",
"count": "<count>",
"element": "<element>"
},
"name": "lrem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| count | Yes | ||
| element | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |