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.
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": {
"token": "<token>",
"sid": "<sid>",
"properties": "<properties>"
},
"name": "set_participant_properties"
}
}Input 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)