Skip to main content
Glama

Delete an agent

agent_delete
Destructive

Delete an agent. Campaigns and conversations pointing at it lose their automated replies, silently — prospects mid-conversation simply stop getting answers. Irreversible, and its knowledge attachments and training go with it. Read agent_list for which campaigns use it, show the user, and get an explicit yes first. To stop an agent replying without destroying it, use agent_upsert with isActive: false, or conversation_update with assistant: false for one thread. Requires the "Agents" permission on the plan.

Input Schema

NameRequiredDescriptionDefault
agentIdYesAI agent id, from `agent_list`.

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, but the description adds the operational consequences an agent can't infer: campaigns and conversations silently lose automated replies, prospects mid-conversation go unanswered, and knowledge attachments plus training are destroyed. It also discloses the required 'Agents' plan permission, which is not in the schema or annotations.

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?

Roughly five sentences, each doing distinct work: what it does, what breaks, irreversibility, the confirmation protocol, the non-destructive alternatives, the permission gate. The consequence is front-loaded before the guidance.

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 one-parameter destructive mutation with no output schema, everything an agent needs is present: blast radius, irreversibility, a pre-flight confirmation workflow, alternatives, and the authorization requirement. Nothing material is missing.

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 single parameter already carries a description ('AI agent id, from `agent_list`'), so the baseline is 3. The description reinforces the `agent_list` provenance but adds no format or validation detail beyond 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 ('Delete an agent') and immediately distinguishes it from non-destructive siblings by naming the alternative paths (agent_upsert with isActive:false, conversation_update with assistant:false). An agent knows exactly what this does and what it costs versus those siblings.

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

Usage Guidelines5/5

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

Gives explicit preconditions (read `agent_list`, show the user, get an explicit yes) and explicit when-not-to-use guidance that routes to two specific sibling tools for the softer cases. This is the strongest possible form of usage guidance.

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.

Resources