unsubscribe
Terminate an existing Redis pub/sub subscription using the subscription ID received from subscribe or psubscribe. Returns the closed subscription details.
Instructions
Unsubscribe and close an existing pub/sub subscription.
Args: subscription_id: The ID returned by subscribe() or psubscribe().
Returns: A dictionary describing the closed subscription 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": {
"subscription_id": "<subscription_id>"
},
"name": "unsubscribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subscription_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |