Skip to main content
Glama

Remove a wallet or cancel an invite

remove_wallet
DestructiveIdempotent

Remove a wallet or cancel an invite

Removes an active wallet or cancels an invite. The owner can remove any wallet except its own (409 own_wallet). A delegate wallet can remove only its own wallet: it leaves the account, and its session ends. Anyone else gets 403 owner_only. Removing an active wallet ends its sessions and revokes every key it created (createdBy: wallet:0x…): model keys for itself, management keys and keys it made for customers. revokedKeys says how many. Returns the remaining wallets and invites.

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": {
      "address": "<address>"
    },
    "name": "remove_wallet"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesThe wallet's 0x… address (any case).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description goes well beyond that by disclosing cascade effects (sessions end, all keys created by the wallet are revoked, including model, management and customer keys), the exact error codes 409 own_wallet and 403 owner_only, and the revokedKeys count. This is substantial behavioral context for a destructive operation.

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?

The content is dense and front-loaded, leading with the action and then the permission and cascade consequences. The only waste is the opening line repeating the title verbatim before the description proper begins; the rest of the sentences all carry distinct, useful information.

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?

With no output schema, the description compensates by naming the return payload ('the remaining wallets and invites') and the revokedKeys count. For a one-parameter destructive tool it covers authorization, failure modes, side effects and return shape, leaving nothing an agent needs in order to call it correctly.

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 a single parameter with 100% schema description coverage, so the schema already documents the 0x address and its pattern. The description adds no format, casing or validation nuance beyond what the schema states, so baseline 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 concrete verb and resource ('Removes an active wallet or cancels an invite') and names the two distinct outcomes the tool handles. It is clear what the tool does, though the dual wallet-vs-invite behavior is not disambiguated by an input signal, so an agent must infer which case applies.

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?

Usage conditions are given through authorization rules: the owner may remove any wallet except its own, a delegate may remove only its own wallet, and anyone else gets 403. That tells the agent when the call will succeed, but there is no guidance about when to choose this tool over sibling removal or cancellation tools, and no explicit exclusions beyond the permission checks.

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