Create event
create_eventCreate a new UiTdatabank event as a draft or publish it immediately by linking an existing location, event type, and organizer; returns the new event ID.
Instructions
Create a new event in UiTdatabank. Before calling: find the location with search_places and the event type with list_event_types, and reuse an organizer from search_organizers. The event is created as a DRAFT unless publish is true. Returns the new event's id. Not idempotent: if a call times out, check with search_events whether the event exists before calling again.
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": {
"name": "<name>",
"eventTypeId": "<eventTypeId>",
"locationId": "<locationId>",
"calendar": "<calendar>"
},
"name": "create_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Plain-text title in the main language. | |
| labels | No | ||
| publish | No | true = publish immediately (READY_FOR_VALIDATION) instead of keeping a draft. | |
| themeId | No | Recommended: one 'theme' term id. | |
| calendar | Yes | ||
| imageIds | No | Ids from upload_image; the first becomes the main image. | |
| priceInfo | No | ||
| locationId | Yes | Id of an existing place, from search_places. | |
| bookingInfo | No | ||
| description | No | Plain text; line breaks allowed. | |
| eventTypeId | Yes | Exactly one 'eventtype' term id. | |
| organizerId | No | Recommended. Managers of this organizer can then also edit the event on uitdatabank.be. | |
| contactPoint | No | ||
| mainLanguage | No | Language code: nl, fr, de or en. | nl |
| availableFrom | No | Only with publish: true. Show the event on calendars from then on. | |
| typicalAgeRange | No |