Skip to main content
Glama

Delete a voice agent

delete_agent
DestructiveIdempotent

IRREVERSIBLE: Delete a voice agent

Deletes a voice agent permanently and removes it from the voice engine. This cannot be undone, and any phone number still routed to this agent stops being answered by it. Its integration links and knowledge entries are deleted with it, and so are the indexed knowledge documents that no other agent uses. The removal in the voice engine is attempted first, but a failure there does not stop the local deletion, so the agent always disappears from the account. This endpoint takes no request body.

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": {
      "agentId": "<agentId>"
    },
    "name": "delete_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdYesIdentifier of the voice agent. Accepted either as the public form `agent_12` or as the bare number `12`; the prefix is stripped before the lookup.
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered, but the description adds substantial non-obvious behavior: phone numbers routed to the agent go unanswered, linked integrations and knowledge entries are removed, orphaned indexed documents are deleted, and a voice-engine failure does not roll back the local delete. This is well beyond what the annotations convey. The score stops at 4 because it never says what the call returns or how to confirm the deletion took effect.

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 irreversible warning is front-loaded and each sentence carries distinct information — consequences, cascade scope, then failure semantics. Minor redundancy: the title line is repeated verbatim from the name/title, and the trailing 'no request body' note is the weakest sentence.

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

Completeness4/5

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

For a destructive, two-parameter tool with no output schema, the description covers the important unknowns: cascade scope, irreversibility, and partial-failure behavior. What remains missing is limited — no mention of permission requirements, return payload, or the confirm round-trip, the last of which the schema does handle.

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 coverage is 100%, and the schema itself fully explains both agentId normalization and the two-step confirm echo. The description only adds that 'this endpoint takes no request body,' which is mildly useful but does not explain the confirm handshake that dominates this tool's invocation pattern. Baseline 3 is appropriate when the schema does the heavy lifting.

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 and a precisely scoped resource: 'Deletes a voice agent permanently and removes it from the voice engine.' The voice-engine framing and the enumeration of collateral deletions (integration links, knowledge entries, indexed documents) make it clearly distinguishable from siblings like delete_agent_knowledge or delete_live_chat_agent without opening either schema.

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

Usage Guidelines3/5

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

The 'IRREVERSIBLE' lead and the description of what stops working make the appropriate context strongly implied: only call when the user genuinely wants this agent gone. However, it never states when-not-to-use, never points to delete_agent_knowledge as the narrower alternative for removing only knowledge, and gives no prerequisite checks (e.g. rerouting phone numbers first).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.