Search AddEvent Events
addevent_search_eventsFind previously created events using filters like date range, calendar, and free-text search. Results include pagination and sorting options.
Instructions
Searches events you've previously created. Does NOT create or modify events.
Args:
calendar_ids, event_ids (string[], optional): Narrow to specific calendars or events.
datetime_min, datetime_max (string, optional): Filter by date range. datetime_min matches events ending on/after that time; datetime_max matches events starting on/before it.
search (string, optional): Free-text match against title, internal_name, description, and location.
custom_data_key / custom_data_value (string, optional): Filter by a custom_data key-value pair. Both must be provided together.
page (number, default 1), page_size (number, 1-20, default 10): Pagination.
sort_by ('created' | 'title' | 'calendar_id' | 'datetime_start'), sort_order ('asc' | 'desc'): Sorting.
Returns: { "events": [ ...event objects... ], "count": number, // events in this response "page": number, "page_size": number } An empty "events" array means no matches, not an error.
Examples:
"What events do we have next month?" -> datetime_min/datetime_max set to that month's range.
"Find the Main Monthly event" -> search: "Main Monthly".
Don't use when: you already have the event_id (use addevent_get_event, it's cheaper).
Error Handling:
Returns "Error: Invalid request..." if a filter combination is invalid (e.g. custom_data_key without custom_data_value).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number of results, starting at 1. | |
| search | No | Free-text search across title, internal_name, description, and location. Case-insensitive. | |
| sort_by | No | Field to sort by. Defaults to 'created', or 'datetime_start' if datetime_min/datetime_max is set. | |
| event_ids | No | Limit results to these specific event IDs. | |
| page_size | No | Number of results per page, between 1 and 20. | |
| sort_order | No | Sort direction, 'asc' or 'desc'. Requires sort_by. | |
| calendar_ids | No | Limit results to these calendar IDs. | |
| datetime_max | No | Only events starting on/before this datetime (naive comparison, timezone not considered). Same formats as datetime_start. | |
| datetime_min | No | Only events ending on/after this datetime (naive comparison, timezone not considered). Same formats as datetime_start. | |
| custom_data_key | No | Filter by a custom_data key. Must be paired with custom_data_value. | |
| custom_data_value | No | Filter by a custom_data value. Must be paired with custom_data_key. |