Pause or resume a subscription
set_subscription_stateSets whether a subscription in the current workspace delivers events and returns its id and resulting state. Use it to pause or resume a subscription from list_subscriptions or create_subscription. A successful resume can return state blocked with blockedReason subscription_limit_reached. An API refusal is an error. Use remove_subscription for permanent deletion. Requires manage.
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": {
"subscriptionId": "<subscriptionId>",
"state": "<state>"
},
"name": "set_subscription_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Use on to deliver events or off to pause delivery. | |
| subscriptionId | Yes | Subscription id from list_subscriptions or create_subscription. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| workspace | Yes | ||
| blockedReason | No | ||
| subscriptionId | Yes |