import_events
Create or update events in a longitudinal REDCap project using a JSON array, with an option to replace existing events.
Instructions
Import (create or update) events in a longitudinal REDCap project.
Args: data: JSON array of event objects with event_name, arm_num, day_offset, etc. override: If True, existing events not in the import will be deleted.
Returns: Confirmation message with the count of imported events.
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": {
"data": "<data>"
},
"name": "import_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| override | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |