Create an event
calendar_create_eventCreates an event: in calendar_id, or in the primary calendar of account_id (needed when you can reach several accounts). Use it when the user asks to book or schedule something; pick a free slot first with calendar_find_meeting_times. With attendees it sends invitations. It can return pending_approval: tell the user a person must approve it in Prubex, and do not retry. online_meeting adds a Teams or Meet link where the provider can; elsewhere the event is created without one and warnings says so. Times are ISO 8601: with an offset (2026-11-02T09:00:00+02:00), or without one to mean time_zone; all-day events use dates, and their end is the day after the last day. Example: { "account_id": "acc_…", "title": "Planning", "start": "2026-11-03T10:00:00+02:00", "end": "2026-11-03T10:30:00+02:00" }.
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": "<start>",
"end": "<end>"
},
"name": "calendar_create_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ISO 8601 date-time (with an offset, or local to `time_zone`), or YYYY-MM-DD for all-day events. | |
| start | Yes | ISO 8601 date-time (with an offset, or local to `time_zone`), or YYYY-MM-DD for all-day events. | |
| title | Yes | The event title. | |
| all_day | No | An all-day event: start and end are dates. | |
| location | No | Where it happens. | |
| attendees | No | People to invite; inviting anyone sends invitations. | |
| time_zone | No | IANA time zone for dates in and out, e.g. "Africa/Johannesburg". Defaults to the workspace time zone, which prubex_overview returns as `time_zone`. | |
| account_id | No | The account to act on (`acc_…` from accounts_list). Required when more than one account could do this; otherwise the error lists the candidates. | |
| calendar_id | No | Create it in this calendar; default primary. | |
| description | No | Notes shown on the event. | |
| online_meeting | No | Add a Teams or Meet link where the provider supports it. | |
| idempotency_key | No | Any unique string. Retrying with the same key within 24 h never repeats the action. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | ||
| status | Yes | ||
| message | Yes | What happened, in words for the user. | |
| warnings | No | Accounts that failed or timed out; results from the others are still here. | |
| account_id | Yes | ||
| expires_at | No | When held: when the request expires. | |
| review_url | No | When held: where a person approves it in Prubex. | |
| approval_id | No | When held: pass it to approvals_get later. |