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.
Input Schema
TableJSON 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)