voice_delete_pipeline
Delete an Assist pipeline from Home Assistant. Change the preferred pipeline before deleting if it is set as default.
Instructions
Delete an Assist pipeline. Cannot delete the preferred pipeline — change preference first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipeline_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools/voice.py:107-110 (handler)The actual handler function for the voice_delete_pipeline tool. It is decorated with @mcp.tool() and calls the HA WebSocket API to delete a pipeline. When mounted under namespace 'voice', this becomes voice_delete_pipeline.
@mcp.tool() def delete_pipeline(pipeline_id: str) -> dict: """Delete an Assist pipeline. Cannot delete the preferred pipeline — change preference first.""" return ha._ws_call("assist_pipeline/pipeline/delete", pipeline_id=pipeline_id) - server.py:56-56 (registration)The voice MCP module is mounted under the 'voice' namespace, so the function 'delete_pipeline' becomes accessible as 'voice_delete_pipeline'.
mcp.mount(voice_mcp, namespace="voice")