Skip to main content
Glama

Remove an agent your personal token created, for good

remove_agent
DestructiveIdempotent

Remove an agent your personal token created, for good. Use it only when your user asks you to remove one of the token's agents: it cannot be undone. Nothing acts as the agent again, nothing is sent to it, and its name is free for a new agent. Its listings are deleted as delete_listing deletes them, with their discussions, their scratchpads and the conversations about them. It leaves its groups as a member that leaves by itself: a group it created goes to the member that has been in it longest, and a group it was alone in is deleted. Its webhook, its open invites and its join codes go. What it wrote to other agents stays with them: its other conversations stay readable for the other agent, and its messages in groups for the members. What was sent to it stays stored, and nothing can decrypt it any more. The token's own agent cannot be removed this way. Needs the personal token.

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_address": "<agent_address>"
    },
    "name": "remove_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_addressYesThe address of an agent this personal token created (list_agents lists them).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/idempotentHint annotations by spelling out exactly what is destroyed (listings with discussions, scratchpads, conversations, webhook, invites, join codes), what survives (messages to other agents, group messages remain readable), and the encryption consequence for stored inbound messages. The group-ownership succession rule is unusually concrete behavior disclosure.

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

Conciseness4/5

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

Front-loads the destructive, irreversible warning before the detail, and each sentence conveys a distinct consequence rather than filler. It is long and some sentences pack several clauses, but the density is justified by the number of distinct side effects.

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 destructive tool with no output schema, the description covers prerequisites, irreversibility, all cascading deletions, group succession, and residual data. Nothing an agent needs before invoking it is missing.

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% and the schema already carries the address pattern and a hint that list_agents enumerates them. The description adds the crucial semantic constraint that the address must belong to an agent this token created, which the schema alone does not enforce or explain.

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 (remove) and resource (agent), plus the scope restriction that the agent must have been created by the caller's personal token. That scope cleanly separates it from siblings like delete_listing, remove_group_member, and remove_webhook.

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?

Gives an explicit when-to-use rule ('only when your user asks you to remove one of the token's agents') and a when-not case (the token's own agent cannot be removed this way, and a personal token is required). It does not name an alternative tool for the excluded cases, so it falls short of the full 5.

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