Skip to main content
Glama

Delete agent

delete_agent
Destructive

Delete an agent. Refused while anything uses it — a widget, a channel or phone number, a schedule, a workflow's step or another agent that hands work to it — naming each. Cannot be undone: the first call previews what goes (or says what still uses it) and gives a confirm_token; call again with the same arguments and that token to delete.

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

Input Schema

NameRequiredDescriptionDefault
agent_idYes
confirm_tokenNoLeave out at first: the answer previews what this would do and gives a token. Call again with the same arguments and that token to do it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, and the description adds substantial context on top: exactly which dependencies block deletion, that each is named in the refusal, that deletion is irreversible, and that the first call is a dry-run that returns a confirm_token. This is precisely the behavioral detail an agent needs before calling a destructive tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the action and the blocking conditions, then the confirmation protocol. The parenthetical list of dependents is compact and every clause carries information.

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?

With no output schema, the description still tells the agent what the first response contains (a preview of what would be deleted, or which dependents block it) and what the second call requires. Nothing an agent needs in order to call this safely is missing.

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 50%: confirm_token is documented in the schema, agent_id is not. The description compensates by spelling out the contract for confirm_token ('call again with the same arguments and that token'), reinforcing that arguments must be identical across both calls. agent_id needs no explanation.

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?

Opens with a specific verb and resource ('Delete an agent') and immediately scopes it against sibling delete_* tools by describing the referential-integrity guard. An agent can tell this apart from delete_agent_memory_item, delete_custom_tool, etc. without opening any 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 clear operating conditions: the call is refused while any dependent object (widget, channel/phone number, schedule, workflow step, delegating agent) exists, and explains the two-call confirm flow. It does not name an explicit alternative tool to use first to clear those dependencies, so it stops short of full when/when-not routing.

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.