Skip to main content
Glama

set_question_properties

Modify question properties in LimeSurvey surveys by specifying the question ID and desired properties. Enable precise survey customization and management.

Instructions

Set LimeSurvey question properties.

Args: qid: The question ID. properties: The properties to set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
propertiesYes
qidYes

Implementation Reference

  • main.py:497-507 (handler)
    The handler function decorated with @mcp.tool(), which registers and implements the 'set_question_properties' tool. It uses the LimeSurvey client to set the properties of a question identified by qid.
    @mcp.tool() def set_question_properties(qid: int, properties: dict[str, Any]) -> bool: """Set LimeSurvey question properties. Args: qid: The question ID. properties: The properties to set. """ with get_client() as client: return client.set_question_properties(qid, properties)
  • main.py:15-20 (helper)
    Helper function to create and return a LimeSurvey Client instance, used by the tool handler.
    def get_client() -> Client: return Client( url=os.getenv("LIMESURVEY_URL"), username=os.getenv("LIMESURVEY_USERNAME"), password=os.getenv("LIMESURVEY_PASSWORD"), )
  • main.py:497-497 (registration)
    The @mcp.tool() decorator registers the set_question_properties function as an MCP tool.
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/edgarrmondragon/limesurvey-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server