tg_rules
Update Telegram alert rules by merging partial changes. Set enabled flags, private/mention triggers, keywords, watched/muted chats, bot filtering, interval, and quiet hours.
Instructions
Update alert rules. Keys: enabled, alert_on_private, alert_on_mention, keywords (list), watch_chats (list), mute_chats (list), ignore_bots, min_interval_sec, quiet_hours ([start_hour, end_hour] or null).
Call tg_status first to see current values; this merges on top of them.
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": {
"patch": "<patch>"
},
"name": "tg_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |