Skip to main content
Glama

Retire agent

stack_retire_agent
Destructive

Retire an agent for good: it is marked revoked, its Passports are revoked and it can never be issued another. Its name is free to register again and its audit history is kept. Refused while other records, such as inbound webhooks, still name the agent. An agent that has an open agent account is retired by closing the account (owner or admin only), which also ends its Mission, grants and pieces. To stop an agent for a while and bring it back, use stack_update_agent with status suspended.

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": "stack_retire_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYesAgent id (agt_*) from stack_list_agents

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds substantive behavior: passports are revoked, the agent can never be re-issued, the name is freed for re-registration, audit history is retained, and the call is refused while dependent records exist. It also notes the open-account path requires owner or admin, which is permission context the annotations do not carry.

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?

Irreversibility is front-loaded in the first clause, followed by consequences, refusal condition, and alternatives in descending priority. Every clause carries distinct information: no restatement of the name or title, 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?

A destructive, single-parameter tool with no output schema needs exactly this: what is destroyed, what survives (audit history), what blocks the call, and which sibling to use for the reversible or account-linked case. All of those are present, so an agent can call it correctly without further discovery.

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 single agent_id parameter already documents its agt_* pattern and its source (stack_list_agents). The description adds no format or validation detail beyond that, so it neither compensates for nor extends the schema — the baseline of 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?

States a specific verb and resource ('Retire an agent for good') and immediately enumerates the consequences, so it is unmistakable against siblings like stack_update_agent or stack_close_account. The phrase 'for good' plus 'can never be issued another' separates it from reversible status changes.

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 explicit when-not conditions ('Refused while other records, such as inbound webhooks, still name the agent') and routes the agent to named alternatives with the selecting condition: stack_update_agent with status suspended for temporary stops, and closing the agent account when one is open. Nothing is left to inference.

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.