Skip to main content
Glama
Swipe Smart MCP

Swipe Smart MCP

by afzalmukhtar

add_credit_card

Registers a new credit card with basic details so you can later attach reward rules, spending caps, and transfer partners.

Instructions

Registers a new credit card in the database with basic user-provided info.

This is STEP 1 of adding a card. After this, call:
- add_reward_rules() to add reward rules
- add_cap_buckets() to add spending caps
- add_redemption_partners() to add transfer partners

Args:
    name: Full card name (e.g., "HDFC Regalia Gold", "SBI Cashback").
    bank: Issuing bank (e.g., "HDFC", "SBI", "ICICI").
    monthly_limit: Credit limit in INR.
    billing_cycle_start: Day of month when bill generates (1-31).
    network: Card network. Default "Visa". Options: Visa, Mastercard, RuPay, Amex, Diners.
    rewards_currency: Type of rewards. Default "Reward Points". Options: Reward Points, Cashback, Miles, etc.
    base_point_value: Value per point in INR. Default 0.25. (e.g., 0.25 means 1 point = ₹0.25).
    description: Card benefits summary (from online search). Helps LLM understand card features.
    tier_status: Membership tiers as dict (e.g., {"membership": "prime"} for Amazon ICICI Prime).

Returns:
    dict with status, card_id (needed for adding rules), and card details.

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": {
      "name": "<name>",
      "bank": "<bank>",
      "monthly_limit": "<monthly_limit>",
      "billing_cycle_start": "<billing_cycle_start>"
    },
    "name": "add_credit_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
bankYes
nameYes
networkNoVisa
descriptionNo
tier_statusNo
monthly_limitYes
base_point_valueNo
rewards_currencyNoReward Points
billing_cycle_startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the write nature, that the returned card_id is required downstream, and the return shape, but says nothing about duplicate-card handling, required permissions, validation failures, or whether partial records can be created.

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?

Purpose and step ordering are front-loaded, then the args list. The length is justified by nine undocumented parameters, though the parenthetical 'Helps LLM understand card features' on description is meta-commentary rather than operative guidance.

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 nine-parameter mutation tool with no annotations and no output schema, the description covers purpose, sequencing, every parameter, and the returned card_id. Only error and duplicate-handling behavior are absent, a minor gap given how much else is specified.

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 0%, so the description must supply all parameter meaning and it largely does: formats and examples for name and bank, units for monthly_limit (INR), the 1-31 range for billing_cycle_start, inline enum options for network and rewards_currency, and a concrete interpretation of base_point_value. tier_status gets only one example and no structural explanation, keeping it below a 5.

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 ('Registers a new credit card in the database') and immediately frames it as 'STEP 1' of a named multi-step flow, which distinguishes it from add_reward_rules, add_cap_buckets, and add_redemption_partners. An agent can identify the tool's role without inspecting the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly prescribes the ordering that follows this call, naming three sibling tools and what each adds. What's missing is the negative side: no guidance on checking for an existing card first, on get_card_addition_guidelines, or on prerequisites before registering.

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