Skip to main content
Glama

Abort a config flow

integrations_abort_config_flow
Idempotent

Abort an unfinished Home Assistant config flow to discard its in-progress state when cancelling a setup started by mistake.

Instructions

Abort a config flow that has not been finished yet.

Calls DELETE /api/config/config_entries/flow/{flow_id}. Nothing was persisted by an unfinished flow, so this discards only the flow's in-progress state, not a config entry.

Use when: cancelling a setup that was started by mistake or is no longer wanted. Not for: removing a completed integration — use integrations_remove_integration. Returns: HA's abort response for the flow. Errors: raises httpx.HTTPStatusError if flow_id is unknown or already finished.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flow_idYesFlow id from `integrations_start_config_flow` or `integrations_list_flows_in_progress`.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.25.1
    • addedInput schema / properties / flow_id / description
      Added value: +"Flow id from `integrations_start_config_flow` or `integrations_list_flows_in_progress`."
  2. Addedv0.4.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=false and idempotentHint=true, but the description explains WHY: nothing was persisted, only in-progress state is discarded. It also documents the underlying endpoint and the specific error raised (httpx.HTTPStatusError on unknown/already-finished flow_id), which is behavior not covered by any structured field.

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?

Front-loaded with the core action, then cleanly segmented into Use when / Not for / Returns / Errors. Every line carries distinct information with no filler.

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?

For a single-param mutation with an output schema and annotations, the description covers purpose, routing, side-effect scope, and error modes. Nothing needed to invoke it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100% and the single flow_id parameter is already documented with its provenance (start_config_flow or list_flows_in_progress). The description adds no format, syntax, or semantics beyond the schema, so baseline 3 applies.

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?

States a specific verb (abort) and resource (config flow) with the scope qualifier 'that has not been finished yet', and explicitly distinguishes itself from integrations_remove_integration. An agent can select it without opening the schema.

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

Usage Guidelines5/5

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

Provides an explicit 'Use when' (cancelling a setup started by mistake) and a 'Not for' that names the correct sibling alternative (integrations_remove_integration). Routing is unambiguous.

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

Deploy Server

Other Tools