create_calendar_event
Create Moodle calendar events with custom type, course or group association, and optional weekly recurrence. Returns event ID and metadata.
Instructions
Create a calendar event. Default eventtype=course. Set repeat_count>0 to create weekly recurrences. Returns the created event id and metadata.
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>",
"timestart": "<timestart>"
},
"name": "create_calendar_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| groupid | No | ||
| location | No | ||
| course_id | No | Attach the event to a course. Omit for user or site events. | |
| eventtype | No | course | |
| timestart | Yes | Unix timestamp for the event start. | |
| description | No | ||
| repeat_count | No | If >0, Moodle creates this many repeated events at 7-day intervals starting from timestart. | |
| timeduration | No | Seconds. 0 = no duration. |