Skip to main content
Glama
Swipe Smart MCP

Swipe Smart MCP

by afzalmukhtar

delete_credit_card

Permanently removes a saved credit card along with its reward rules, spending caps, redemption partners, and linked history; this action cannot be undone.

Instructions

Permanently deletes a credit card and ALL its associated rules, limits, and history.

⚠️ WARNING: This action cannot be undone. It removes:
- The Card entry
- All Reward Rules for this card
- All Cap Buckets for this card
- All Redemption Partners for this card
- (Expenses might remain as orphans depending on DB settings, but are usually unlinked)

Args:
    card_id (int): The unique numeric ID of the card (found via 'get_my_cards').

Returns:
    str: Success or error message.

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_id": "<card_id>"
    },
    "name": "delete_credit_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
card_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the whole burden and does so well: it discloses irreversibility, enumerates exactly which dependent entities are destroyed (rules, cap buckets, redemption partners), and flags a non-obvious edge case about expense records becoming orphaned. It stops short of stating permission requirements or whether dependents are removed atomically.

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 warning and destruction scope are front-loaded before details, and each bullet adds a distinct entity type. Minor waste remains: the 'Returns' block restates what the output schema already provides, and the 'Args:' formatting is boilerplate rather than prose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 an output schema available, the definition covers what is destroyed, irreversibility, and where to get the ID. Remaining gaps are permission/authorization requirements and confirmation expectations, which matter for a destructive operation but are secondary to the coverage given.

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 description coverage is 0%, so the schema alone leaves card_id as a bare integer. The description compensates by naming it the unique numeric ID and telling the agent to obtain it via 'get_my_cards', which is actionable acquisition guidance beyond the schema.

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?

The opening sentence states a specific verb and resource ('Permanently deletes a credit card') plus the cascade scope ('ALL its associated rules, limits, and history'). No sibling tool performs card deletion, and the permanent/cascading nature is unmistakable after one line.

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 is only implied: the destructive framing signals 'use with care' and the card_id hint points at 'get_my_cards' as the discovery path. There is no explicit when-to-use versus when-not guidance, no mention of confirming with the user, and no stated alternative for soft deletion or archival (none may exist, but an agent cannot tell).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.