add_language
Add a new language to a LimeSurvey survey by specifying the survey ID and language code to enable multilingual survey capabilities.
Instructions
Add a language to a LimeSurvey survey.
Args:
sid: The survey ID.
language: The language code.
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>",
"language": "<language>"
},
"name": "add_language"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | ||
| language | Yes |
Implementation Reference
- main.py:522-532 (handler)The handler function for the 'add_language' tool, decorated with @mcp.tool() for registration in the MCP server. It delegates the operation to the LimeSurvey client.
@mcp.tool() def add_language(sid: int, language: str) -> bool: """Add a language to a LimeSurvey survey. Args: sid: The survey ID. language: The language code. """ with get_client() as client: return client.add_language(sid, language)