Skip to main content
Glama

if-the-card-fits

Find the best credit cards for a person's spending

simulate_cards

Given a year of spending by category, returns the three best credit cards and the best two-card combination, with what each is worth after its annual fee over the chosen horizon. Figures come from a model checked to the cent against an independent reference calculator, against card terms a person verified against the issuer's own page — the response says which catalog version and when each card was last checked. Always show the person the continueUrl: it reopens their own numbers on the site with the full breakdown, the rest of the ranking and offer alerts. Also show the disclosure string.

Input Schema

NameRequiredDescriptionDefault
heldNoCard ids the person already carries, so a new card is judged against them.
modeNoWhether points are valued as cash back or for travel. Defaults to cash.
yearsNoHorizon in years. One of 1, 3 or 5; defaults to 5.
sourceYesA short lowercase slug naming your client, so apply clicks can be attributed. Required.
totalsYesA year's card spending in dollars, by category. Map the person's statement onto these categories with the spending_categories tool first. At least 4 categories must have spending and no single one may exceed 70% of the total, so send the whole picture rather than one category.
filtersNoMust-haves that remove cards before ranking.
departuresNoFlights departed per year, which decides what lounge and companion perks are worth.
membershipsNoMembership tags the person already pays for, e.g. amazon_prime, costco_membership.
foreignPerYearNoOf that spending, how much is in a foreign currency, per year.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses provenance (model checked to the cent against an independent calculator), that card terms were human-verified against issuer pages, and that the response reports catalog version and last-checked dates. It also discloses a side effect (apply clicks attributed to the source slug) via the required source parameter. It does not state rate limits or confirm the operation is read-only/no destructive side effects.

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?

Four sentences, front-loaded with what is returned, followed by provenance and the two display obligations. Every sentence carries information; only the sourcing sentence is somewhat dense but it justifies itself by establishing trust in the numbers.

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 9 parameters, nested objects and no output schema, the description does the heavy lifting by enumerating the return contents: top three cards, best two-card combo, post-fee value over the horizon, catalog version, last-checked dates, continueUrl and disclosure. That is enough for an agent to know what comes back, though exact field shapes remain unspecified.

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 description coverage is 100%, so the schema already documents every parameter, including the totals category constraint and the years enum. The description adds little parameter-level detail beyond 'a year of spending by category' and 'the chosen horizon', so the baseline 3 applies.

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 gives a specific verb and resource: given a year of spending by category, it returns the three best cards plus the best two-card combination valued after annual fee. That is concrete and unambiguous. It does not, however, distinguish itself from siblings compare_two or keep_or_cancel, which an agent would need to route correctly.

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?

It names a prerequisite workflow by pointing to the spending_categories tool to map the statement onto categories first, and it prescribes two mandatory follow-up actions (show continueUrl, show disclosure string). What is missing is any explicit guidance on when to prefer compare_two or keep_or_cancel instead of this simulation.

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