tap-mcp

v0.4.0
tap-mcp Checked 2 days ago Published 20 days ago

The step before an AI agent pays: which card, which credit applies, what's already used, what's about to expire.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

delete_my_data

Deletes everything Tap has saved for the user (cards, credits used, benefits, balances). Only when the user asks for it, and after they confirm.

ParameterTypeDescription
confirm *booleanMust be true: the user confirmed.

optimize_purchase

The step before you pay: call BEFORE paying for anything. Given the merchant, category and amount, ranks the user's cards by rewards earned (rates from CardSavvy's catalog) plus any statement credit that applies and hasn't been used this period, returns the conditions to check first (enrollment, activation, booking channel), the risks of the payment method, any non-card benefit that covers it (HSA/FSA, reimbursements, memberships: in `benefits`, with how to use each), and credits, allowances and balances expiring within 14 days. Recommend the best card, relay the warnings, and ask the user the…

ParameterTypeDescription
amount *numberPurchase total in USD.
category *stringWhat is being bought. Use general when nothing more specific fits (most online shopping, e.g. household items on Amazon).
merchant *stringMerchant or brand being paid, e.g. 'Delta Stays', 'Uber', 'lululemon'.
booked_viastringissuer_portal = booked through the card issuer's travel site.
datestringISO date of the purchase; defaults to today.
railstringstaged_virtual_card = paying with a wallet's one-time card (e.g. Link) instead of the card itself.

whats_expiring

What the user is about to lose: balances (airline codes, earned credits, certificates) nearing expiry, this period's card credits not yet used, and benefit allowances or deadlines (a monthly gym reimbursement, an FSA use-by date), soonest first, with what each needs (enrollment, booking channel, spend). Call it when planning trips or purchases, or when asked what's expiring.

ParameterTypeDescription
todaystringISO date to evaluate from; defaults to today.
within_daysnumberLook-ahead window in days. Default 90.

list_cards

Lists the cards and memberships Tap knows (slug, name, annual fee) and which ones the user holds. Use it to match what the user says to slugs.

set_my_cards

Save which cards the user holds (replaces the list), and optionally each card's renewal date. Call it when the user tells you their cards. Only cards from list_cards are supported.

ParameterTypeDescription
cards *arrayEvery card slug the user holds.
anniversariesobjectCard slug → renewal date as MM-DD, when the user knows it.

mark_credit

Record what the user said about one card credit this period: used = true if they've used it, false if they confirmed it's still unused (Tap then stops asking until the period resets). Credit ids come from optimize_purchase and ask_user.

ParameterTypeDescription
card *string
credit *stringThe credit's id.
used *boolean
datestringISO date; defaults to today.

set_benefits

Save the user's benefits beyond credit cards: health plan (HSA, FSA, gym or wellness reimbursement), employer (commuter, phone, learning stipends), memberships (Costco, AAA, Prime). Adds or replaces by id (default: source + name); `remove` drops ids. Call it with an empty list when the user has none. Give categories or merchants so Tap knows which purchases each covers. Never store account or member numbers.

ParameterTypeDescription
benefits *array
membershipsarrayEvery membership the user holds that list_cards knows (replaces the list); Tap supplies their checked benefits.
removearrayBenefit ids to delete.

mark_benefit

Record whether the user has used a benefit this period: used = true, or false if they confirmed it's still unused. Ids come from set_benefits, optimize_purchase and whats_expiring.

ParameterTypeDescription
benefit *string
used *boolean
datestringISO date; defaults to today.

set_balance

Save a balance the user owns that can expire: an airline voucher or code, an earned credit, a certificate, points. Same name + program replaces; value 0 removes it. Never store account or member numbers.

ParameterTypeDescription
name *stringe.g. 'Companion fare', '$100 travel voucher'.
program *stringe.g. 'Alaska', 'Delta', 'Marriott'.
unit *string
value *number
expiresstringISO date it expires, if any.
notesstring
ownerstringWhose account it's on, if not the user's (e.g. a partner).