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>"}``.Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "<agent_id>",
"confirm_name": "<confirm_name>"
},
"name": "delete_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| confirm_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||