Skip to main content
Glama
Swipe Smart MCP

Swipe Smart MCP

by afzalmukhtar

get_best_card_for_purchase

Identifies the credit card to use for a purchase by amount, merchant, category, and payment platform, helping users maximize rewards for that transaction.

Instructions

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.

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": {
      "amount": "<amount>",
      "merchant": "<merchant>",
      "category": "<category>"
    },
    "name": "get_best_card_for_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYes
categoryYes
merchantYes
platformNoDirect

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden well: it discloses the default platform ('Direct'), the allowed platform values, the dependency on get_expense_logging_rules for valid categories, and that the return is a dict of recommendations plus interpretation guidelines. It omits failure behavior (e.g., no matching card) and does not state that it is a non-mutating lookup.

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 is front-loaded, then Args and Returns sections in a scannable structure. The three bulleted example questions are somewhat redundant with the first sentence but still earn their place as trigger cues; nothing else is padding.

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 4-parameter tool with no output schema and no annotations, the description covers inputs, defaults, a cross-tool dependency, and the shape of the return value. The main remaining gap is edge-case behavior when no card qualifies or an invalid category is passed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description fully compensates: amount is specified as INR with an example value, merchant gets real examples ('Amazon', 'Swiggy', 'MakeMyTrip'), category points to the tool that supplies valid values, and platform documents both the default and the four accepted options. That is meaning well beyond the bare schema titles.

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?

The first line gives a specific verb and resource -- 'Finds the BEST credit card to use for a specific purchase' -- which is concrete and distinguishable from sibling tools like get_my_cards or get_card_rules. It stops short of explicitly naming a contrasting sibling, so it sits just below the top mark.

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?

The user-question examples ('Which card should I use for X?', 'How can I maximize rewards on X?') make the triggering condition very clear. It does not state when NOT to use it or name alternative tools for overlapping needs, so it is clear context without full routing guidance.

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