xgroup_create
Create a consumer group on a Redis stream to manage parallel message consumption. Specify stream key, group name, and start ID, with option to create the stream if absent.
Instructions
Create a consumer group for a Redis stream.
Args: key (str): The stream key. group_name (str): The consumer group name. start_id (str, optional): Stream ID from which the group starts consuming. mkstream (bool, optional): Create the stream if it does not exist.
Returns: str: Confirmation message or an error message.
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>",
"group_name": "<group_name>"
},
"name": "xgroup_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| mkstream | No | ||
| start_id | No | $ | |
| group_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |