assign_instrument_to_event
Assign a REDCap instrument to a specific event in a longitudinal project, ensuring the correct form is available for each scheduled visit.
Instructions
Assign an instrument to an event in a longitudinal project.
Args: instrument: Internal form name of the instrument. event: Unique event name (e.g. 'baseline_arm_1'). arm_num: Arm number the event belongs to (default 1).
Returns: Confirmation message, or an error if the project is not longitudinal.
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": {
"instrument": "<instrument>",
"event": "<event>"
},
"name": "assign_instrument_to_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | ||
| arm_num | No | ||
| instrument | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |