Skip to main content
Glama

delete_agent

DestructiveIdempotent

Decommission an agent to revoke its Agent keys while preserving its calendars and events as read-only and exempt from plan calendar limits; requires an Organization key.

Instructions

Decommission an agent. This marks the agent as decommissioned and revokes all of its Agent keys. Its calendars and events are kept but stop counting toward the plan's calendar limit, and they are read-only (writes return agent_inactive) until the agent is restored by setting its status again (active or paused). Requires an Organization key — Agent keys cannot delete agents.

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_idYesAgent ID to decommission

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.8.4
    • addedInput schema / properties / agent_id / maxLength
      Added value: +128
    • addedInput schema / properties / agent_id / minLength
      Added value: +1
    • addedInput schema / properties / agent_id / pattern
      Added value: +"^[A-Za-z0-9_-]*$"
  2. First observedv1.2.5

TDQS

A4.5/5.0
Behavior5/5

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

Annotations supply destructiveHint, idempotentHint, and readOnlyHint=false, yet the description adds substantial behavior they cannot express: Agent keys are revoked, calendars and events survive but stop counting toward the plan limit and become read-only with writes returning agent_inactive, and the operation is reversible. The authorization constraint (Organization key required) is a genuinely useful disclosure not derivable from structured fields.

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?

Three tight sentences with the action front-loaded, followed by side effects and then the restore/auth requirements. Every clause carries distinct information — no restatement of the tool name and no filler.

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 single-parameter mutation with no output schema, the definition covers everything an agent needs: what is destroyed (keys), what is preserved and its new access mode, the error condition (agent_inactive), the reversal path, and the credential requirement. Nothing material is left to inference.

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?

Only one parameter exists and schema description coverage is 100%, with the schema itself describing agent_id as the "Agent ID to decommission" including pattern and length constraints. The description adds no format or sourcing detail beyond that, so the baseline 3 applies.

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?

"Decommission an agent" pairs a specific verb with the exact resource, and the following sentences make clear this is a soft-delete (keys revoked, calendars retained) rather than a purge. That framing distinguishes it from update_agent's status change and from the other delete_* siblings operating on unrelated resources.

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?

The description establishes the context for use (decommissioning), the restore path via setting status to active or paused, and the key prerequisite that an Organization key is required since Agent keys cannot delete agents. It stops short of an explicit "use update_agent instead if you only want to pause," but the restore sentence effectively points there.

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