add_participants
Add participants to a LimeSurvey survey by providing survey ID and participant data to populate your study or research.
Instructions
Add participants to a LimeSurvey survey.
Args:
sid: The survey ID.
participant_data: The participant data.
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": {
"sid": "<sid>",
"participant_data": "<participant_data>"
},
"name": "add_participants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| participant_data | Yes |
Implementation Reference
- main.py:558-570 (handler)The handler function for the 'add_participants' MCP tool. It is decorated with @mcp.tool() for registration and executes the tool logic by adding participants to a LimeSurvey survey using the client.
@mcp.tool() def add_participants( sid: int, participant_data: list[dict[str, Any]] ) -> list[dict[str, Any]]: """Add participants to a LimeSurvey survey. Args: sid: The survey ID. participant_data: The participant data. """ with get_client() as client: return client.add_participants(sid, participant_data)