Skip to main content
Glama

Delete cards

delete_cards
Destructive

Use this when the user asks to delete specific cards. Takes 1-500 card IDs (from list_cards) with one confirmation for the batch: the first call deletes nothing and returns the exact set and a confirm_token; ask the user once, then repeat the same card_ids with confirm_token. Tokens last ten minutes and survive reconnects; a completed retry returns its original result. For a whole deck use delete_deck; to stop studying a deck but keep it, archive_deck.

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": {
      "card_ids": "<card_ids>"
    },
    "name": "delete_cards"
  }
}

Input Schema

NameRequiredDescriptionDefault
card_idsYesThe cards to delete, 1-500 IDs from list_cards, e.g. [1042, 1043].
confirm_tokenNoOmit on the first call; pass back the token the first call returned, after the user has confirmed.

Output Schema

NameRequiredDescriptionDefault
noteYes
deletedYes
pendingYes
card_idsYes
expires_msYes
deck_totalsYes
confirm_tokenNo
cards_affectedYes
decks_affectedYesA deck deletion: the decks that go, by name, the deck first and then the decks under it. Empty for a deletion of cards.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / required
      Previous value: -[
      -  "deleted",
      -  "pending",
      -  "cards_affected",
      -  "card_ids",
      -  "decks_affected",
      -  "deck_totals"
      -]New value: +[
      +  "deleted",
      +  "pending",
      +  "cards_affected",
      +  "card_ids",
      +  "decks_affected",
      +  "deck_totals",
      +  "expires_ms",
      +  "note"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / card_ids / description
      Added value: +"The cards to delete, 1-500 IDs from list_cards, e.g. [1042, 1043]."
    • addedInput schema / properties / confirm_token / description
      Added value: +"Omit on the first call; pass back the token the first call returned,\nafter the user has confirmed."
  3. Changed2 schema fields changed
    • addedOutput schema / properties / decks_affected
      Added value: +{
      +  "description": "A deck deletion: the decks that go, by name, the deck first and\nthen the decks under it. Empty for a deletion of cards.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "deleted",
      -  "pending",
      -  "cards_affected",
      -  "card_ids",
      -  "deck_totals"
      -]New value: +[
      +  "deleted",
      +  "pending",
      +  "cards_affected",
      +  "card_ids",
      +  "decks_affected",
      +  "deck_totals"
      +]
  4. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description's added value is the two-step confirmation protocol: the first call deletes nothing, returns the exact set and a confirm_token, and the user must be asked once. It also discloses token lifetime, reconnect survival, and retry idempotency, which are real behavioral traits not present in the annotations. It stops short of describing failure modes for expired or reused tokens.

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?

Front-loads the trigger and batch limits, then the confirmation flow, then sibling routing. Every clause carries information (count range, token TTL, reconnect survival, idempotent retry) with no restatement of the title or 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?

An output schema exists, so return values need no explanation, and the description still flags the key first-call return (exact set plus confirm_token). For a destructive two-parameter tool it covers mutability, prerequisites, and routing alternatives without gaps.

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 both parameters are already documented, making 3 the baseline. The description goes beyond that by explaining the confirm_token as a two-phase handshake and clarifying that the same card_ids must be repeated alongside it, which is operational meaning the schema does not fully spell out.

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 ("delete specific cards") and immediately scopes the input to 1-500 card IDs from list_cards. It explicitly contrasts with delete_deck for whole decks and archive_deck for keeping a deck, so the agent can distinguish it from siblings without opening a schema.

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 trigger ("when the user asks to delete specific cards") plus named alternatives with the condition that selects each: delete_deck for a whole deck, archive_deck to stop studying but keep it. When-not guidance is concrete rather than implied.

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.