Skip to main content
Glama

Delete the wallet

delete_wallet
DestructiveIdempotent

Deletes the saved wallet and its recovery code now and for good, and signs out every app connected to it, this one included. earnrate.dev and the earnrate command line keep their own wallets and aren't affected. Only when the user asks to delete it: show it with list_wallet, offer export_wallet, and pass confirm, cards and saved only after the user confirms. It refuses if the wallet no longer holds what list_wallet showed, so a retried call can't delete a different wallet.

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": {
      "confirm": "<confirm>",
      "cards": "<cards>"
    },
    "name": "delete_wallet"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardsYesHow many cards the wallet held when the user confirmed, from list_wallet: 0 for an empty wallet.
savedNoHow many memberships and point values list_wallet showed, counted together: 0 if none.
confirmYestrue, only after the user confirms the deletion.

Output Schema

NameRequiredDescriptionDefault
deletedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed4 schema fields changed
    • addedInput schema / properties / cards
      Added value: +{
      +  "description": "How many cards the wallet held when the user confirmed, from list_wallet: 0 for an empty wallet.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / confirm
      Added value: +{
      +  "const": true,
      +  "description": "true, only after the user confirms the deletion.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / saved
      Added value: +{
      +  "description": "How many memberships and point values list_wallet showed, counted together: 0 if none.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / required
      Added value: +[
      +  "confirm",
      +  "cards"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=false, but the description still adds real context: the recovery code is destroyed permanently, all connected apps are signed out including the caller, and unrelated wallets survive. The stale-snapshot refusal ('refuses if the wallet no longer holds what list_wallet showed, so a retried call can't delete a different wallet') is the standout disclosure because it explains the safety mechanism behind the cards/saved arguments. Return format is left to the output schema, which is acceptable here.

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?

Four sentences, front-loaded with the destructive consequence before the workflow and safety rationale, and nothing is filler. Slight density in the first sentence ('now and for good') keeps it just below maximal.

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 destructive, irreversible tool this covers consequence, scope, gating, pre-call workflow, and the concurrency guard, while the output schema and annotations carry return shape and safety hints. Nothing an agent needs in order to call it correctly 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%, so the baseline is 3, but the description goes further by explaining why cards and saved exist at all — they are a consistency snapshot that triggers refusal on mismatch — and by tying confirm to a user-confirmation precondition. That is genuine meaning beyond the field-level descriptions.

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 ('Deletes the saved wallet and its recovery code') plus the full blast radius ('signs out every app connected to it, this one included'). It also draws an explicit boundary against other wallet stores ('earnrate.dev and the earnrate command line keep their own wallets and aren't affected'), so an agent can tell exactly what this tool touches and what it does not.

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 a hard gating condition ('Only when the user asks to delete it'), a concrete pre-call workflow (show it with list_wallet, offer export_wallet), and the sequencing rule for arguments ('pass confirm, cards and saved only after the user confirms'). This names the alternative actions an agent should prefer before reaching for deletion.

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.