Skip to main content
Glama

integrations_disable_integration

Disable a Home Assistant integration entry without deleting its configuration. Provide the entry ID to deactivate the integration.

Instructions

Disable an integration config entry without removing it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entry_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'disable_integration' tool (which maps to 'integrations_disable_integration' when mounted under namespace 'integrations'). It calls Home Assistant's WebSocket API 'config_entries/disable' with disabled_by='user' to disable an integration config entry.
    @mcp.tool()
    def disable_integration(entry_id: str) -> dict:
        """Disable an integration config entry without removing it."""
        return ha._ws_call(
            "config_entries/disable",
            entry_id=entry_id,
            disabled_by="user",
        )
  • The FastMCP instance 'mcp' is created and the @mcp.tool() decorator registers the disable_integration function as a tool.
    from fastmcp import FastMCP
    import ha_client as ha
    
    mcp = FastMCP("integrations")
  • server.py:55-55 (registration)
    The integrations FastMCP instance is mounted under the 'integrations' namespace, so the 'disable_integration' tool becomes available as 'integrations_disable_integration'.
    mcp.mount(integrations_mcp, namespace="integrations")
  • The _ws_call helper function that sends the 'config_entries/disable' command over WebSocket to Home Assistant.
    def _ws_call(msg_type: str, **kwargs) -> Any:
        try:
            asyncio.get_running_loop()
        except RuntimeError:
            return asyncio.run(_ws_call_async(msg_type, **kwargs))
        import concurrent.futures
        with concurrent.futures.ThreadPoolExecutor() as pool:
            return pool.submit(asyncio.run, _ws_call_async(msg_type, **kwargs)).result()
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It only states that the entry is not removed, but does not explain what disabling entails (e.g., effects on services, reversibility, permissions). This is insufficient.

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

Conciseness4/5

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

The description is a single, front-loaded sentence with no waste. It could be expanded with critical details without losing conciseness, but it is efficient.

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

Completeness3/5

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

Given the tool's simplicity (one parameter), the description is minimal but lacks details about the output schema or return value. It is adequately complete for a basic tool but could be improved.

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 input schema has 0% description coverage for the parameter 'entry_id', and the description does not mention or explain it. The description adds no meaning beyond what the schema provides.

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 'Disable' and the resource 'integration config entry', and explicitly distinguishes from removal by adding 'without removing it'. This distinguishes it from siblings like integrations_remove_integration and integrations_enable_integration.

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?

The description provides no guidance on when to use this tool versus alternatives like enable or remove. There is no mention of prerequisites, context, or exclusions.

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/Fistacho/ha-nexus-agent'

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