Skip to main content
Glama
adrighem

Domoticz MCP Server

by adrighem

check_for_updates

Verify if the Domoticz home automation system has pending updates to install.

Instructions

Check if the Domoticz system has any pending updates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The actual tool handler function for check_for_updates. It calls the Domoticz JSON API endpoint 'checkforupdate' and returns the response as text.
    @mcp.tool()
    async def check_for_updates() -> str:
        """Check if the Domoticz system has any pending updates."""
        async with create_client() as client:
            response = await _do_request(client, "GET", f"{DOMOTICZ_API_URL}?type=command¶m=checkforupdate")
            return response.text
  • The tool is registered via the @mcp.tool() decorator on line 903, which registers it with the FastMCP instance.
    @mcp.tool()
    async def check_for_updates() -> str:
  • Test case for check_for_updates. Mocks the Domoticz API response and verifies the function returns the expected output.
    # check_for_updates
    respx.get(f"{DOMOTICZ_API_URL}?type=command¶m=checkforupdate").mock(
        return_value=Response(200, json={"status": "OK", "HaveUpdate": False})
    )
    response = await check_for_updates()
    assert json.loads(response)["HaveUpdate"] is False
Behavior3/5

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

Lacking annotations, the description only indicates a non-destructive read operation without detailing behavioral traits like return format or side effects, though output schema covers return values.

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 that immediately conveys the tool's purpose with no unnecessary words.

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

Completeness5/5

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

Given the tool has no parameters, an output schema exists, and the operation is simple, the description is sufficiently complete for correct invocation.

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

Parameters4/5

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

With zero parameters and 100% schema coverage, the description adds no additional parameter meaning beyond what the schema provides, achieving the baseline for no parameters.

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 verb 'Check' and the resource 'pending updates' for the Domoticz system, making the tool's purpose explicit and distinct from siblings.

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

Usage Guidelines3/5

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

No specific guidance is provided on when to use this tool versus alternatives, but the simple nature of the operation implies its usage context.

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