Skip to main content
Glama

Credit card fees and rewards

get_credit_card_costs
Read-onlyIdempotent

What each credit card costs and earns this card year: annual fee with GST and progress towards the spend that waives it, forex fees (markup + GST) paid, rewards earned (points or cashback, estimated from spending) with the points balance and points expiring, and the net cost (fee + forex fees − rewards value). The estimates are approximate: say so.

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_credit_card_costs"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardNameNoCard name, bank or last 4 digits (partial match); leave out for all cards

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, closed-world behavior, so the description's job is to add context — and it does, disclosing that rewards are estimated from spending, that the figures are approximate, and the exact net-cost formula (fee + forex − rewards value). The remaining gap is that it does not say what happens for a card with no activity or how the card-year boundary is determined.

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?

One dense but well-ordered sentence lists the returned fields and ends with the net-cost formula, followed by a short directive to flag the estimates as approximate. Every clause carries information; it is long only because the return payload is rich.

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?

With no output schema, the description must carry the return payload, and it does — enumerating each field, giving the aggregation formula, and warning that rewards are estimates. Nothing an agent needs in order to call this correctly or describe its results is missing.

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

Parameters3/5

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

Schema coverage is 100% and the single cardName parameter already documents partial matching and the omit-for-all-cards behavior, so the description adds nothing beyond the schema. Baseline 3 applies when the schema does the work.

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 description names the resource precisely (per-card annual fee, forex fees, rewards, points balance, net cost) and scopes it to 'this card year', so an agent knows exactly what data comes back. It does not distinguish itself from the sibling get_credit_cards_summary or get_credit_card_statements, which is the only thing keeping it from a 5.

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 only implied: an agent can infer this is the tool for cost/benefit analysis of cards rather than for transactions or statements, but the description never states when to choose it over the sibling card tools. No exclusions or prerequisites are given.

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