set_participant_properties
Update participant properties in LimeSurvey surveys using token and survey ID to manage respondent data.
Instructions
Set LimeSurvey participant properties.
Args:
token: The participant token.
sid: The survey ID.
properties: The properties to set.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| sid | Yes | ||
| properties | Yes |
Implementation Reference
- main.py:596-608 (handler)The handler function for the 'set_participant_properties' tool, decorated with @mcp.tool() for registration. It uses type hints for input schema (token: str, sid: int, properties: dict[str, Any]) and returns bool. The logic delegates to the LimeSurvey client's set_participant_properties method via a context-managed client.@mcp.tool() def set_participant_properties( token: str, sid: int, properties: dict[str, Any] ) -> bool: """Set LimeSurvey participant properties. Args: token: The participant token. sid: The survey ID. properties: The properties to set. """ with get_client() as client: return client.set_participant_properties(token, sid, properties)