import_cpdb_participants
Import participants from a central database into a LimeSurvey survey using specific attributes to filter and select appropriate respondents.
Instructions
Import participants from the central participant database.
Args:
sid: The survey ID.
attributes: The attributes to filter participants.
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>",
"attributes": "<attributes>"
},
"name": "import_cpdb_participants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| attributes | Yes |
Implementation Reference
- main.py:611-620 (handler)The handler function for the 'import_cpdb_participants' MCP tool. It is registered via the @mcp.tool() decorator and proxies the call to the Citric client's import_cpdb_participants method.
@mcp.tool() def import_cpdb_participants(sid: int, attributes: dict[str, Any]) -> dict[str, Any]: """Import participants from the central participant database. Args: sid: The survey ID. attributes: The attributes to filter participants. """ with get_client() as client: return client.import_cpdb_participants(sid, attributes)