Skip to main content
Glama

Remove a card

remove_card
DestructiveIdempotent

Removes a card from the wallet, with its tracked cap usage, bonus progress and yearly spending. Memberships and point values stay, even when the last card goes. Only when the user says they no longer have it or don't want it considered. If they closed it, ask once whether to keep it in their card history (keepHistory), so offer answers can say when its welcome bonus can be earned again. It uses the user's hosted earnrate wallet, not a wallet file on their computer.

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": {
      "cardId": "<cardId>"
    },
    "name": "remove_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardIdYesThe card id from search_cards, e.g. chase-sapphire-preferred.
keepHistoryNoAsk the user once whether to keep the card in their card history, so offer answers can say when the issuer lets them earn its welcome bonus again. true keeps it, closed this month, with its opening date and bonus months; false or omitted removes it entirely.

Output Schema

NameRequiredDescriptionDefault
notesYes
cardIdsYes
createdYes
messageYes
membershipsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / keepHistory
      Added value: +{
      +  "description": "Ask the user once whether to keep the card in their card history, so offer answers can say when the issuer lets them earn its welcome bonus again. true keeps it, closed this month, with its opening date and bonus months; false or omitted removes it entirely.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the irreversibility bar is partly covered. The description earns credit by specifying exactly what is destroyed (cap usage, bonus progress, yearly spending) versus retained (memberships, point values), which is real value beyond the structured hints. It does not cover confirmation requirements or recovery options, so it sits above baseline but short of full 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-loaded with the action and its consequences, then usage conditions, then parameter protocol, then wallet context — a sensible order with little waste. The opening clause 'with its tracked cap usage' is slightly ambiguous in phrasing but the intent is recoverable.

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?

Given an output schema exists, return values need no explanation, and the description covers the remaining gaps: destruction scope, retained entities, the keepHistory decision flow, and the hosted-vs-local wallet distinction that matters against switch_wallet/import_wallet siblings. Nothing an agent needs to invoke it safely 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, and the description adds meaning: it frames keepHistory as a conditional user question tied to welcome-bonus re-eligibility and clarifies that the tool operates on the hosted earnrate wallet rather than a local file. This contextualizes both parameters beyond their schema text.

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?

States a specific verb and resource ('Removes a card from the wallet') and immediately enumerates the cascading data that goes with it (cap usage, bonus progress, yearly spending) plus what survives (memberships, point values). An agent can distinguish this from add_card or update_card, though the overlap with the set_card_history sibling on the keepHistory behavior is not addressed.

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 gating condition — 'Only when the user says they no longer have it or don't want it considered' — which functions as both when-to-use and when-not-to-use guidance. It also prescribes a specific interaction protocol: ask once about keepHistory if the card was closed, which directly shapes correct invocation.

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.