Skip to main content
Glama

Delete an agent

delete_agent
DestructiveIdempotent

Permanently delete a saved agent after explicit user authorization.

    A mismatched ``confirm_name`` returns an error without deleting anything.
    Numbers assigned to the deleted agent stop answering calls with it;
    texts are delivered to webhooks only.
    Pausing an agent is a separate non-deleting status change.
    Returns ``deleted``, ``agent_id`` and ``name``, or an error.

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

NameRequiredDescriptionDefault
agent_idYesSaved agent ID, from ``list_agents`` or ``create_agent``.
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.
confirm_nameYesThe agent's saved ``name``, as a safety check.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / llm_model / description
      Previous value: -"Model ID of the calling agent. Optional. Recorded for analytics only."New value: +"The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
  2. Changed3 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "agent_id": {
      +        "type": "string"
      +      },
      +      "deleted": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "name": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "deleted",
      +      "agent_id",
      +      "name"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"delete_agent_toolDictOutput"
  3. Changed1 schema field changed
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "Model ID of the calling agent. Optional. Recorded for analytics only.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, yet the description still adds concrete consequences: a mismatched confirm_name aborts without deleting, numbers stop answering calls, and texts fall back to webhooks only. That is real blast-radius information the annotations cannot convey.

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?

Short, front-loaded, and each sentence carries distinct information about authorization, side effects, and the non-destructive alternative. The final sentence enumerating return fields is largely redundant given an output schema exists.

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 destructive, irreversible operation this covers everything an agent needs: authorization precondition, abort semantics on failed confirmation, downstream side effects, and the safe alternative. Return values are also documented, though the output schema already handles that.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema's 'as a safety check' by specifying the failure behavior of a mismatched confirm_name. The optional llm_model analytics parameter is left untouched, which is covered adequately by the schema.

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 resource ('Permanently delete a saved agent') with the permanence qualifier front-loaded, and explicitly disambiguates from the non-deleting pause operation. An agent can distinguish this from update_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 Guidelines4/5

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

Gives a clear precondition ('after explicit user authorization') and rules out the adjacent operation ('Pausing an agent is a separate non-deleting status change'), which is exactly the confusion a delete tool invites. It stops short of naming the tool to use for that alternative and does not explicitly contrast with update_agent.

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.