Skip to main content
Glama

Delete a Wiro agent

delete_agent
DestructiveIdempotent

Permanently remove a deployed agent after cancelling its plan and stopping it; without confirm, it only checks blockers, then repeat with confirm after approval.

Instructions

Delete a deployed agent. This cannot be undone: the agent disappears from every list at once, its data is removed later and there is no restore. The order is: cancel the plan with manage_agent_billing (no refund for the rest of the period), stop the agent with control_agent, then delete it. A card plan has to end first: cancel it, and delete the agent once its period has ended. Without confirm: true the tool only checks what is still in the way and describes the deletion; repeat the call with confirm: true after the user agrees. On a team agent this needs a team admin or the person who deployed it.

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_guid": "<agent_guid>"
    },
    "name": "delete_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNofalse only checks and describes the deletion. true deletes the agent. Set it only after the user agreed.
agent_guidYesThe deployed agent's guid, from list_my_agents.

Output Schema

NameRequiredDescriptionDefault
titleYes
statusYes
deletedYes
messageYes
blockersYes
agentGuidYes
deletedAtNo
nextActionNo
statusLabelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.3
    • addedOutput schema / properties / nextAction / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / status / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Addedv1.4.1

TDQS

A4.3/5.0
Behavior3/5

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

Annotations are already strong (destructiveHint=true, readOnlyHint=false, openWorldHint=true), and the description adds real value on top: irreversibility, list-wide disappearance, delayed data removal, no restore, no refund. It does not, however, discuss idempotency of repeat deletes or what the dry-run response contains, so it is a solid but not exhaustive behavioral addendum.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the destructive fact and the ordering constraint, which is the right priority. It is dense and every clause carries information, but the confirm behavior is stated twice (once in prose, once effectively in the schema) and the card-plan sentence interrupts the ordering logic.

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?

An output schema exists, so return values need not be explained. For a destructive, annotate-covered tool with full schema coverage, the description still supplies prerequisites, permission requirements, refund consequences, and the dry-run workflow — everything an agent needs to call it safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still earns a bump by framing the intended call sequence around confirm (call without it first, inspect blockers, then repeat with confirm:true after user agreement). It adds little about agent_guid, which the schema already sources from list_my_agents.

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?

Opens with a specific verb and resource: 'Delete a deployed agent.' It also disambiguates within a crowded agent-management family by stating that deletion is a separate step from billing cancellation and from stopping the agent.

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 an explicit prerequisite sequence (manage_agent_billing, then control_agent, then delete), a special case (card plans must cancel and expire first), a two-step confirm protocol, and a permission rule (team admin or deployer). An agent knows exactly when it may and may not proceed.

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