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