Skip to main content
Glama
Swipe Smart MCP

Swipe Smart MCP

by afzalmukhtar

get_transactions

Retrieve transaction records by date, category, merchant, card, platform, or bank; combine filters to find matching purchases and spending summaries.

Instructions

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
bankNo
limitNo
categoryNo
end_dateNo
merchantNo
platformNo
card_nameNo
start_dateNo

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 supplied, the description carries the full burden and does substantial work: it defines OR semantics within a filter and AND semantics across filters, states that start_date/end_date are inclusive, discloses the default limit of 5, and sketches the return shape (list plus summary count). Gaps remain on sort order, pagination beyond limit, and whether truncation is signaled, which keeps it below 5.

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?

Front-loaded with purpose, then a compact "Logic" block, then Args and Returns — a clean, scannable structure. Minor waste in restating types already present in the schema ("(int)", "(str)", "(list[str])"), but the format and example details in those lines earn their space.

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 an 8-parameter, all-optional read tool with no annotations and no output schema, the definition covers filtering logic, date inclusivity, defaults, examples, and a return sketch. An agent has enough to construct a correct call without opening the schema.

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 coverage is 0% — the schema supplies only property names and types — so the description must compensate, and it does: all 8 parameters get a type, meaning, format (YYYY-MM-DD), default, and worked examples, plus the cross-parameter OR/AND rule. This is meaning well beyond what the schema provides.

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?

States a specific verb and resource ("Retrieves transactions") and adds the notion of flexible filtering. It is clearly distinct from write siblings like add_transaction or delete_transaction, but it never names or contrasts them, so differentiation is implicit rather than stated.

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: filter transactions by date range, category, merchant, card, platform, bank, capped by limit. There is no explicit when-to-use guidance, no mention of when a different tool (e.g., analyze_expenses for aggregation) would be better, and no guidance on what happens with no filters.

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