Skip to main content
Glama
adrighem

Domoticz MCP Server

by adrighem

get_floorplans

Retrieve all configured floorplans from Domoticz to view your home's floorplan layout.

Instructions

Get all configured floorplans in Domoticz.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The 'get_floorplans' tool handler function. It's an MCP tool registered with @mcp.tool() that calls the Domoticz API with 'type=plans' to get all configured floorplans.
    @mcp.tool()
    async def get_floorplans() -> str:
        """Get all configured floorplans in Domoticz."""
        async with create_client() as client:
            response = await _do_request(client, "GET", f"{DOMOTICZ_API_URL}?type=plans")
            return response.text
  • Registration of 'get_floorplans' as an MCP tool using the @mcp.tool() decorator on line 907.
    @mcp.tool()
Behavior2/5

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

No annotations exist, so the description must fully convey behavioral traits. It only states a read-like operation without disclosing any side effects, permissions, or limitations. For a simple retrieval tool, this is minimally adequate but lacks depth.

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 no superfluous words. It front-loads the essential information immediately.

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

Completeness4/5

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

Given the tool's simplicity (no parameters, output schema exists), the description is mostly complete. However, it could briefly mention what a floorplan represents or that it returns a list of floorplan names/ids. Still, with output schema covering return structure, this is sufficient.

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?

The tool has zero parameters, so the schema provides no burden. With no parameters to document, the description adds appropriate value by simply stating the operation. A baseline of 4 is justified due to the absence of param semantics needs.

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 action ('Get all configured floorplans') and the resource ('floorplans in Domoticz'). It is specific and distinguishes itself from sibling tools, many of which target different resources (e.g., get_rooms, get_devices).

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 provided on when to use this tool vs. alternatives. There is no mention of context, prerequisites, or scenarios where this tool is preferred. The description is purely declarative.

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