Skip to main content
Glama

Delete an AI agent

delete_agent
DestructiveIdempotent

Permanently delete an owned agent. Returns awaiting_confirmation and an approval_url: the owner must approve these exact parameters in Cormak, then retry with the SAME request_id. No work starts before approval. Reuse request_id on retries.

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

Input Schema

NameRequiredDescriptionDefault
agent_idYes
request_idYesStable UUID for this exact operation. Reuse on retries. Never change it to retry an unknown result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint and idempotentHint, but the description adds behavior the annotations can't convey: deletion is permanent, no work executes before owner approval, and the response carries awaiting_confirmation and an approval_url. The retry contract for request_id is spelled out explicitly, which is exactly the kind of operational detail an agent needs for a non-atomic destructive call.

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?

Four short sentences, front-loaded with the destructive nature and then the approval/retry mechanics. Every sentence carries a distinct operational fact — permanence, return shape, gate, retry rule — with no redundancy.

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?

There is no output schema, so the description carries the burden of describing the response, and it does by naming awaiting_confirmation and approval_url. With only two required parameters and destructive/idempotent annotations supplied, nothing an agent needs in order to invoke this correctly 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 50% — request_id is documented in the schema, agent_id is not beyond its uuid format. The description reinforces request_id's reuse rule and the 'owned agent' constraint implicitly scopes agent_id, but it never states what agent_id identifies or how ownership is verified. Adequate compensation, not full.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource — 'Permanently delete an owned agent' — and adds the important qualifier that the agent must be owned. It is easy to tell apart from create_agent, update_agent, or pause_agent by the resource and verb alone, though it never explicitly contrasts itself with a non-destructive alternative like pause_agent.

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?

It clearly explains the two-step usage flow: the call returns awaiting_confirmation plus an approval_url, the owner approves, and the caller retries with the same request_id. What's missing is when to choose deletion over pausing or archiving, but for a destructive endpoint the approval-flow guidance is the more important context.

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.