Turn a moderation rule on or off
cometchat_set_moderation_ruleTurns a moderation rule on or off; it applies to new messages. Returns the requested state, not a read-back. Built-in rules can't be deleted, only turned off.
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": {
"app_id": "<app_id>",
"rule_id": "<rule_id>",
"enabled": "<enabled>"
},
"name": "cometchat_set_moderation_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The CometChat App ID (from cometchat_list_apps). | |
| confirm | No | Set true only after the user has explicitly agreed to this change. Without it, nothing happens and you get a summary to show them. | |
| enabled | Yes | true = on, false = off | |
| rule_id | Yes | Rule id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | App ID | |
| enabled | Yes | New state | |
| rule_id | Yes | Rule id |