Create calendar ignore rule
create_calendar_ignore_ruleHide imported events that match a rule, for everyone who shares the calendar (admins and managers, on calendars they reach; a team calendar's rules, admins only). A rule tests title, description, location, meeting link, organizer, attendee, start or end time, all-day, repeats or your own response: every condition must match, and each lists alternative values. With no conditions it ignores a whole calendar. Matching events are hidden everywhere (they stay stored). Never changes Google. Each call creates a new rule; to change one use update_calendar_ignore_rule, and to hide a single event use ignore_calendar_event. Returns the created rule.
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": {
"calendarAccountId": "<calendarAccountId>",
"conditions": "<conditions>"
},
"name": "create_calendar_ignore_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| conditions | Yes | One condition per field; every condition must hold, and a condition holds when any of its values matches. Example: [{TITLE contains [standup, sync]}, {ORGANIZER equals [y@x.com]}] ignores standups and syncs from y. For 'this or that' across different fields, create a second rule. An empty list ignores the whole calendar and requires externalCalendarId. | |
| calendarAccountId | Yes | Connected calendar account the rule applies to (id from list_calendar_accounts). | |
| externalCalendarId | No | Narrow to one calendar of the account (its externalCalendarId from list_external_calendars, not its id); omit for every calendar of the account. |