Skip to main content
Glama
adrighem

Domoticz MCP Server

by adrighem

set_security_status

Change your home security panel status to Disarm, Arm Home, or Arm Away using the configured security code.

Instructions

Set the security panel status. secstatus: 0=Disarm, 1=Arm Home, 2=Arm Away.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
secstatusYes
seccodeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The actual implementation of the 'set_security_status' tool. This is an async function decorated with @mcp.tool() that takes 'secstatus' (int) and 'seccode' (str) parameters, and makes a GET request to the Domoticz API with param=setsecstatus to arm/disarm the security panel.
    @mcp.tool()
    async def set_security_status(secstatus: int, seccode: str) -> str:
        """Set the security panel status. secstatus: 0=Disarm, 1=Arm Home, 2=Arm Away."""
        async with create_client() as client:
            response = await _do_request(client, "GET", f"{DOMOTICZ_API_URL}?type=command¶m=setsecstatus&secstatus={secstatus}&seccode={urllib.parse.quote(seccode)}")
            return response.text
  • The @mcp.tool() decorator registers this function as an MCP tool named 'set_security_status'.
    @mcp.tool()
  • The docstring serves as the schema/description for the tool, documenting that secstatus: 0=Disarm, 1=Arm Home, 2=Arm Away.
    async def set_security_status(secstatus: int, seccode: str) -> str:
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description only states the action without disclosing side effects, permissions, or consequences. Since annotations are absent, the description should cover behavioral traits like the need for a valid security code, potential system state changes, or error conditions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence with an inline mapping of secstatus values. No unnecessary words, and it front-loads the purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the sensitivity of a security panel and two required parameters, the description is too sparse. It does not explain the seccode parameter, return values (though output schema exists), or usage context like error handling. More details are needed for safe usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description explains the secstatus parameter values explicitly but does not mention the seccode parameter at all. With 0% schema coverage, the description must compensate, but it partially fails by omitting an important parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool sets the security panel status, and explains the meaning of the secstatus integer values (0=Disarm, 1=Arm Home, 2=Arm Away). This provides a specific verb and resource, distinguishing it from the sibling 'get_security_status'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given on when to use this tool versus alternatives, prerequisites, or conditions. For example, it does not mention that the security code is required or hint at authorization needs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/adrighem/domoticz-mcp'

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