Skip to main content
Glama

CardPolo credit cards

Best card for a purchase

best_card_for_purchase
Read-onlyIdempotent

Which credit card earns the most on one purchase. Give the amount, the kind of spend and either the cards the person holds (to pick among them) or a country (to rank every card on sale there). Returns the reward in the card currency with the rate and any cap, plus each card's conditions to check. Rates are category rates from the issuer; a merchant-specific rate is listed under conditions, not applied to all spend.

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>",
      "category": "<category>"
    },
    "name": "best_card_for_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardsNoCard ids (slugs) the person holds. When given, only these are ranked.
amountYesPurchase amount in the local currency of the cards (rupees for India, dollars for the US, dirhams for the UAE).
countryNoWhere the card is issued: IN (India), US (United States), EU (United Kingdom and euro area), AE (United Arab Emirates).
categoryYesKind of spend: shopping (online and retail), dining (restaurants, food delivery), travel (flights, hotels), fuel, or other.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuinely useful behavioral context beyond that: results are expressed in the card currency, include the rate and any cap, and expose per-card conditions the agent must check, plus the important caveat that merchant-specific rates live under conditions rather than being applied to all spend.

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 answer and its inputs are front-loaded in the first two sentences, and the rate/conditions caveat is placed last where it belongs. The sentences are long and clause-heavy, but each one carries distinct information with no filler.

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?

With no output schema, the description takes on the burden of describing returns and does so: reward amount in card currency, rate, cap, and conditions to verify. The only gap is behavior when neither cards nor country is supplied, which matters since only amount and category are required.

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 100%, so the baseline is 3, but the description earns more by explaining a relationship the schema does not encode: cards and country are alternative selectors that switch the tool between 'rank my cards' and 'rank the market'. That mutual-exclusivity/mode semantics is the key piece of meaning missing from the raw property descriptions.

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 opening sentence names a specific question the tool answers ('Which credit card earns the most on one purchase'), which is a concrete verb+resource framing an agent can match to a user request. It is clearly scoped to a single purchase, unlike a broad comparison tool, though it never names a sibling such as compare_cards or find_cards to draw the boundary explicitly.

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 description states the two operating modes clearly: supply the cards a person holds to rank only those, or supply a country to rank every card on sale there. That is real when-to-use guidance tied to input shape, but it gives no exclusion rules for when a different tool (e.g. a general comparison or card lookup) would be the better call.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources