Delete an agent
delete_agentDelete a saved agent. DESTRUCTIVE. Ask the user before calling this.
Instructions
Delete a saved agent. DESTRUCTIVE. Ask the user before calling this.
Numbers that used the agent stop answering with it: calls ring out
and texts reach webhooks only. Reroute them first with
``route_number`` if that matters.
``confirm_name`` must equal the agent's ``name``. The tool reads the
agent first and refuses with ``{"error": ...}`` on a mismatch,
without deleting anything. To stop an agent without deleting it, use
``update_agent`` with ``status="paused"``.
Returns ``{"deleted": true, "agent_id", "name"}``, or
``{"error": "<message>"}``.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| confirm_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||