Skip to main content
Glama
Swipe Smart MCP

Swipe Smart MCP

by afzalmukhtar

get_card_rules

Retrieves credit card reward rules, including category multipliers, caps, and limits, by card ID or partial card name so users can compare earning structures.

Instructions

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'.

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_identifier": "<card_identifier>"
    },
    "name": "get_card_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
card_identifierYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/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 behavioral burden and does well: it clearly indicates a read-only retrieval and documents the response shape, including status, match_count, cards, and rule fields such as capped_by limits. It does not discuss authentication, rate limits, or error semantics beyond a status field, but for a simple read operation those gaps are minor.

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 description is front-loaded with purpose and structured into Args, Returns, and Example sections. It is somewhat docstring-verbose, but every section adds useful semantics, especially because the schema has no parameter descriptions or output schema.

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?

For a one-parameter read-only tool with no annotations and no output schema, the definition supplies the purpose, parameter behavior, return structure, and examples needed to invoke it correctly. Nothing essential for correct selection and invocation is missing.

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?

The sole parameter has 0% schema description coverage, but the description fully compensates by explaining that card_identifier is the search term, can be a numeric Card ID for precise lookup or a partial Card Name for matching multiple cards, and provides concrete examples. This adds substantial meaning beyond the bare 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?

States a specific verb and resource: retrieves detailed reward logic (multipliers, caps, limits) for specific credit cards. This distinguishes it from general card-description or card-search siblings by focusing precisely on reward rules.

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 implied: use it when you need reward rules for a card, and the input-mode distinction (numeric ID for precise lookup vs partial name for broad matching) is clear. However, it does not explicitly name alternatives such as get_card_description or search_card_info, nor state when not to use this tool.

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