create_calendar_event
Add an event to a calendar. Required: title, start_at (ISO), end_at (ISO). Optional: user_id (defaults to caller), agent_id (omit = the user's own calendar), all_day, location, description, lead_id (links the appointment to a lead so it shows up on that record and in find_calendar_event), timezone (IANA; defaults to the calendar owner's). Times without an offset are read as wall-clock time in that zone. User-calendar events sync to Google if linked (→ phone); agent calendars are app-internal. Creates NO Teams/Meet link and invites nobody — for an appointment with a video link (Teams/Meet) in the host's Outlook/Google calendar use create_meeting with video_provider.
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": {
"title": "<title>",
"start_at": "<start_at>",
"end_at": "<end_at>"
},
"name": "create_calendar_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rrule | No | Recurrence rule, e.g. 'FREQ=WEEKLY;BYDAY=MO'. Without this a series cannot be created at all — one entry stands for the whole series. | |
| title | Yes | Title of the calendar event | |
| end_at | Yes | End time (ISO 8601) | |
| all_day | No | true = all-day event | |
| lead_id | No | ID of the lead | |
| user_id | No | ID of the user | |
| agent_id | No | ID of the agent | |
| brain_id | No | Agent brain (category) this event belongs to. | |
| location | No | Location of the event | |
| start_at | Yes | Start time (ISO 8601) | |
| timezone | No | IANA time zone, e.g. Europe/Berlin | |
| description | No | Description of the calendar event | |
| recurrence_end | No | ISO date the series stops on. Omit for open-ended. |