Skip to main content
Glama

delete_agent

Delete an agent by ID. The API may refuse if the agent has active tasks or is the last active agent.

Instructions

Delete an agent. The API may refuse if the agent has active tasks or is the last active agent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesAgent ID to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.19.0
    • removedInput schema / properties / agent_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / agent_id / type
      Added value: +[
      +  "string",
      +  "number"
      +]
  2. Addedv1.18.2
  3. Removedv1.13.1
  4. Addedv1.2.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It usefully discloses refusal conditions (active tasks, last active agent), but omits other key traits such as whether deletion is reversible, what permissions/auth are required, and what happens to the agent's existing tasks.

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 short sentences, no filler, with the core action front-loaded and the caveat second. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive tool with no annotations and no output schema, the description covers the essential failure modes but leaves notable gaps: irreversibility, permission requirements, and post-deletion side effects are unstated.

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 sole parameter agent_id is documented in the schema as 'Agent ID to delete'. The description adds nothing beyond that, so the baseline of 3 applies.

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 states a specific verb (Delete) and resource (agent), making the operation unambiguous. It doesn't explicitly differentiate from siblings like register_agent or set_agent_role, but the resource naming is distinct enough that no sibling collision exists.

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

Usage Guidelines3/5

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

It gives a failure condition ('may refuse if the agent has active tasks or is the last active agent') which implicitly tells the agent when the call won't succeed, but there is no explicit when-to-use guidance, no mention of alternatives (e.g., set_agent_role or release_task to retire an agent), and no prerequisites.

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