Skip to main content
Glama

Delete agent

delete_agent
Destructive

Delete an agent and everything scoped only to it (its memory/skills/goals/tool-permissions; shared items with agent_id null are unaffected).

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

Input Schema

NameRequiredDescriptionDefault
agentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, so the description's real contribution is disclosing exactly what is destroyed and, importantly, what is not (shared items with agent_id null survive). That is meaningful added context beyond the annotations, though it omits whether deletion is permanent/recoverable and any permission requirements.

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?

A single front-loaded sentence with the action first and the scope boundary second; every clause adds information and there is no filler.

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

Completeness4/5

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

For a one-parameter destructive tool whose safety profile is already carried by annotations, the description covers the key unknown — the cascade boundary. It falls short only on irreversibility/recovery and authorization expectations, which an agent performing an irreversible delete would benefit from knowing.

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?

There is one required parameter (agentId) with 0% schema description coverage, so the description carries the burden and only implies the target by saying 'an agent'. The parameter is largely self-explanatory by name and type, but no format, identifier source, or validation detail is added.

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 defines the scope of the deletion ('everything scoped only to it'). The parenthetical enumerating memory/skills/goals/tool-permissions and the exclusion of shared items (agent_id null) makes the effect unambiguous and separates it from single-item deletions like delete_memory_item.

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?

The scope clause implicitly tells an agent when this tool is applicable (removing an agent entirely) versus tools that remove individual scoped items, but no alternative is named and no when-not guidance is given. There is also no warning about prerequisites, such as whether the agent must be stopped or whether the caller must own it.

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