Skip to main content
Glama
Swipe Smart MCP

Swipe Smart MCP

by afzalmukhtar

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_expense_logging_rulesA
**IMPORTANT: Call this tool BEFORE adding any expense.**

Returns the guidelines and rules for logging expenses, including:
- Required fields and their formats
- Valid categories
- Smart inference rules
- How to handle missing information

You MUST read these guidelines before calling `add_transaction`.
get_card_addition_guidelinesA
**IMPORTANT: Call this tool BEFORE adding any credit card.**

Returns guidelines for adding a new credit card, including:
- What information to collect from the user (REQUIRED - only user knows)
- What information to search online (reward rules, caps, etc.)
- The workflow for adding a card step by step

You MUST read these guidelines before starting the card addition workflow.
get_my_cardsA
Retrieves a summary of all credit cards currently stored in the wallet database.

Use this tool to:
1. Find the specific unique 'ID' of a card (required for other tools).
2. Check credit limits, remaining limits, and billing cycle dates.
3. See the 'Base Value' (floor price) of points for each card.

Returns:
    dict: A dictionary of cards, including their ID, Name, Bank, Limit, and Billing Cycle.
get_transactionsA
Retrieves transactions based on flexible filters.

Logic:
- Multiple values within a filter are treated as OR (e.g., category=['Dining', 'Food'] -> Dining OR Food).
- Different filters are treated as AND (e.g., category='Dining' AND card='HDFC').

Args:
    limit (int): Max number of records to return (default: 5).
    start_date (str): Filter for transactions ON or AFTER this date (Format: YYYY-MM-DD).
    end_date (str): Filter for transactions ON or BEFORE this date (Format: YYYY-MM-DD).
    category (list[str]): List of categories to match (e.g., ["Dining", "Groceries"]).
    merchant (list[str]): List of merchants to match (e.g., ["Amazon", "Flipkart"]).
    card_name (list[str]): List of card names to match (e.g., ["HDFC", "Amex"]).
    platform (list[str]): List of platforms (e.g., ["Swiggy", "Zomato"]).
    bank (list[str]): List of banks (e.g., ["HDFC", "SBI"]).

Returns:
    dict: A structured list of matching transactions and a summary count.
get_card_rulesA
Retrieves the detailed reward logic (multipliers, caps, and limits) for specific credit cards.

Args:
    card_identifier (str): The search term. Can be:
        - A specific numeric Card ID (e.g., "1") for a precise lookup.
        - A partial Card Name (e.g., "HDFC") to find all matching cards.

Returns:
    dict: A structured JSON object containing:
        - 'status': 'success' or 'error'
        - 'match_count': Number of cards found.
        - 'cards': A list of matching card details, where each entry includes:
            - 'rules': List of categories (e.g., 'Dining'), multipliers (Base + Bonus), and any 'capped_by' limits.

Example:
    get_card_rules("1") -> Returns rules strictly for Card ID 1.
    get_card_rules("Regalia") -> Returns rules for all cards containing 'Regalia'.
get_card_descriptionB
Retrieves the description and key details of a credit card.
Useful for understanding card benefits before making a purchase decision.

Args:
    card_id: The ID of the credit card.

Returns:
    Dictionary with card name, description, tier status, and reward info.
add_credit_cardA
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.
add_reward_rulesA
Adds reward rules to an existing credit card. Call this AFTER add_credit_card.

Each rule defines how points are earned for a specific category/merchant/platform.

Args:
    card_id: The ID of the card (returned by add_credit_card).
    rules: List of rule dictionaries. Each rule should have:
        - category (str): Category name, merchant, or platform (e.g., "Dining", "Amazon", "SmartBuy")
        - base_multiplier (float): Base reward rate (e.g., 0.02 for 2%)
        - bonus_multiplier (float): Additional bonus rate (e.g., 0.03 for 3% extra). Default 0.
        - min_spend (float): Minimum spend to trigger rule. Default 0.
        - match_conditions (dict): Tier conditions (e.g., {"membership": "prime"}). Default None.
        - cap_bucket_name (str): Name of cap bucket to link. Default None.

Returns:
    dict with status and list of created rule IDs.

Example:
    add_reward_rules(card_id=1, rules=[
        {"category": "Dining", "base_multiplier": 0.04, "bonus_multiplier": 0.01},
        {"category": "All Spends", "base_multiplier": 0.02, "bonus_multiplier": 0},
        {"category": "SmartBuy", "base_multiplier": 0.10, "cap_bucket_name": "SmartBuy Monthly Cap"},
    ])
add_cap_bucketsA
Adds cap buckets (spending limits) to an existing credit card.
Call this BEFORE add_reward_rules if rules need to reference caps.

Args:
    card_id: The ID of the card (returned by add_credit_card).
    buckets: List of bucket dictionaries. Each bucket should have:
        - name (str): Descriptive name (e.g., "SmartBuy Monthly Cap", "Dining Quarterly Cap")
        - max_points (float): Maximum points that can be earned in this bucket
        - period (str): Reset period. Options: "daily", "statement_month", "quarter", "statement_year". Default "statement_month".
        - scope (str): What the cap applies to. Options: "category", "global". Default "category".

Returns:
    dict with status and list of created bucket IDs.

Example:
    add_cap_buckets(card_id=1, buckets=[
        {"name": "SmartBuy Monthly Cap", "max_points": 5000, "period": "statement_month"},
        {"name": "Total Monthly Cap", "max_points": 15000, "period": "statement_month", "scope": "global"},
    ])
add_redemption_partnersA
Adds redemption/transfer partners to an existing credit card.
These are airlines, hotels, or other programs where points can be transferred.

Args:
    card_id: The ID of the card (returned by add_credit_card).
    partners: List of partner dictionaries. Each should have:
        - partner_name (str): Name of the partner (e.g., "Singapore Airlines", "Marriott")
        - transfer_ratio (float): Points needed per 1 partner point (e.g., 2.0 means 2 card points = 1 mile)
        - estimated_value (float): Estimated value per partner point in INR (e.g., 1.5 for airline miles)

Returns:
    dict with status and list of created partner IDs.

Example:
    add_redemption_partners(card_id=1, partners=[
        {"partner_name": "Singapore Airlines", "transfer_ratio": 1.0, "estimated_value": 1.50},
        {"partner_name": "Marriott Bonvoy", "transfer_ratio": 2.0, "estimated_value": 0.80},
    ])
delete_credit_cardA
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.
delete_transactionB
Permanently removes a specific transaction record from the database.

Args:
    transaction_id (int): The unique numeric ID of the transaction (found via 'get_recent_transactions').

Returns:
    str: Success or error message.
add_transactionA
Logs a new expense (transaction) to the database.

**IMPORTANT: Call `get_expense_logging_rules` first to learn the rules for parsing user input.**

Args:
    amount: The value of the transaction (must be positive).
    merchant: The name of the place/service (e.g., "Swiggy", "Amazon").
    category: The expense category. Must be a valid category from get_expense_logging_rules.
    card_name: The name of the credit card used.
    platform: How the payment was made (e.g., "Direct", "SmartBuy").
    date: Optional date in 'YYYY-MM-DD' format. Defaults to today.
    is_online: Explicit flag if known (True=Online, False=Offline). If None, system infers.

Returns:
    dict: Confirmation details including Transaction ID and status.
search_card_infoA
Searches the web for credit card reward information using targeted DuckDuckGo queries.
Focuses on official docs (MITC/KFS/T&Cs), reviewers, and community sources.

Args:
    card_name: The name of the credit card (e.g., "HDFC Regalia Gold", "SBI Cashback").
    bank: Optional bank name for targeted site: searches (e.g., "HDFC", "ICICI", "Axis").
    max_results: Maximum total results to return. Default 15.

Returns:
    dict with categorized search results (official_docs, rewards_math, caps, reviews, community).
    Use this information to extract reward rules for add_reward_rules().
custom_web_searchA
Performs a custom web search for specific credit card information.

Use this tool when you need to search for very specific information that
wasn't covered by the general search_card_info results. For example:
- Specific category reward rates: "HDFC Regalia Dining rewards rate"
- Specific cap information: "Axis Ace utilities cap per month"
- Recent changes: "SBI Cashback devaluation 2024"
- Platform-specific: "ICICI Amazon Pay SmartBuy rewards"

Args:
    query: The exact search query to perform.
    max_results: Maximum number of results (default: 5).

Returns:
    dict: Search results with title, snippet, and URL.
get_reward_balanceA
Checks the current accumulated reward points for a specific card.

Args:
    card_name: The name of the card to check.

Returns:
    Dictionary with total points, period breakdown, and card details.
adjust_reward_pointsA
Adjusts the point balance for a card. Use for redemptions, bonuses, or corrections.

Args:
    card_name: The card to adjust.
    points: Points to add (+ve) or remove (-ve). Use negative for redemptions.
    reason: Description (e.g., "Redeemed for Amazon voucher", "Welcome bonus").
    adjustment_type: One of: redemption, signup_bonus, referral, promo, correction, expiration.
    reference: Optional reference (order ID, promo code).

Returns:
    Dictionary with adjustment details and new balance.
get_points_historyA
Shows unified points history: both earned (from transactions) and adjustments (redemptions, bonuses).

This gives a complete timeline of all points activity across all cards.

Args:
    limit: Maximum number of entries to return (default: 20).

Returns:
    dict: History entries with date, card, amount, type (earned/redemption/bonus/etc), and description.
get_best_card_for_purchaseA
Finds the BEST credit card to use for a specific purchase.

Call this tool when user asks:
- "Which card should I use for X?"
- "What's the best card for this purchase?"
- "How can I maximize rewards on X?"

Args:
    amount: Purchase amount in INR (e.g., 5000)
    merchant: Where the purchase is being made (e.g., "Amazon", "Swiggy", "MakeMyTrip")
    category: Purchase category. Use valid categories from get_expense_logging_rules.
    platform: Payment platform (Default: "Direct"). Options: Direct, SmartBuy, Amazon Pay, CRED

Returns:
    dict containing recommendations and guidelines for interpreting/presenting results.
analyze_expensesA
Analyzes spending patterns and reward earnings for a given period.

Call this tool when user asks:
- "How did I spend this month?"
- "Show me my spending summary"
- "What's my reward rate?"
- "Where is my money going?"

Args:
    period: Time period to analyze. Options: "week", "month", "quarter", "year"
            Ignored if start_date/end_date provided.
    start_date: Custom start date (YYYY-MM-DD). Optional.
    end_date: Custom end date (YYYY-MM-DD). Optional.

Returns:
    dict with spending summary, category breakdown, card usage, and insights.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
list_categories Returns all valid expense categories with their descriptions. Use this resource to: 1. Know which categories are available for logging transactions. 2. Understand what each category covers (e.g., 'Dining' includes food delivery apps). 3. Check which categories are typically excluded from rewards.
list_category_names Returns a simple list of valid category names. Use this for quick validation or selection.
list_excluded_categories Returns categories that are typically excluded from credit card rewards. These include: Insurance, Government, Rent, Wallet Loads, EMI, Jewellery, Cash Advance.

TDQS

A3.6/5.0

Scored across 20 tools

Disambiguation4/5

Most tools have clearly distinct purposes, especially around transaction logging, card additions, rewards, and analytics. A few overlaps exist between read tools like get_my_cards, get_card_rules, and get_card_description, and between search_card_info and custom_web_search, but descriptions generally clarify the boundaries.

Naming Consistency4/5

The tool set is overwhelmingly consistent snake_case with verb_noun patterns such as get_my_cards, add_transaction, and delete_credit_card. The main deviation is custom_web_search, which is adjective_noun rather than verb-first, but the overall convention remains predictable.

Tool Count3/5

Twenty tools is on the heavy side for a single MCP server, crossing into the 16–25 borderline range. The domain is complex enough to justify many operations, but some guidance and search tools could potentially be consolidated.

Completeness3/5

The server covers card creation, transaction logging, reward rules, caps, redemption partners, analytics, and points history. However, there is no update path for credit cards or transactions, and reward rules, cap buckets, and redemption partners can only be added, not read individually, updated, or deleted, creating notable lifecycle gaps.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues