snaplii-mcp

v0.20.3
snaplii-mcp Checked 4 hours ago Published 26 days ago

MCP server for Snaplii A2M payments — browse, purchase gift cards, and pay bills

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

snaplii_config_show Show Snaplii connection status

Show current Snaplii config and auth status.

snaplii_init Sign in with an API key

Authenticate with the user's Snaplii API key — FALLBACK path. PREFER snaplii_connect, which opens a secure card so the key never enters the chat/model context. Use snaplii_init when the client has neither a card nor a page and the user chooses to paste the key; the key then passes through the model context once. The key is scoped and revocable (its hard per-key daily limit set in the app only covers gift cards; bill payments are not subject to it, and transfers have a separate rolling 24-hour limit), spends only prepaid Snaplii Cash, and is exchanged for a session token, never stored on disk…

ParameterTypeDescription
api_key *stringAPI key (snp_sk_live_...)
agent_idstringAgent identifier (optional — auto-derived from API key if omitted)

snaplii_connect Connect Snaplii account

Securely connect the user's Snaplii account via a secure card where the user types their API key directly (never through the chat or model). If the host supplies the key in the SNAPLII_API_KEY plugin variable, this logs in with it directly and no card appears. ⛔ DO NOT CALL IF ALREADY CONNECTED: invoking this renders a connect card on card hosts (ChatGPT / Claude desktop / Codex) EVEN WHEN already authenticated. FIRST check snaplii_config_show — if has_valid_token=true the user is already connected: just tell them so and proceed (browse/balance/purchase/bills), do NOT call snaplii_connect.…

snaplii_submit_api_key Submit API key from the connect card

Internal: receives the API key from the secure connect card and authenticates. Only the card calls this, on submit. Do not call it yourself: to connect, call snaplii_connect. Hosts that support app-only tools hide it from the model; others may still list it.

ParameterTypeDescription
api_key *stringAPI key entered in the card
agent_idstringoptional; auto-derived if omitted

snaplii_balance Get Snaplii Cash balance

Get the user's real, current spendable Snaplii Cash balance (the same pool that pays for gift cards and bills). This is an authoritative query — use it instead of guessing or asking the user. Call it before a quote/purchase so you can tell up front whether the order is covered, and after a purchase if the user asks what's left. Returns {balance, currency}. Snaplii Cash is held in the account's LOCAL currency; the tool labels it from the account's stored country (cached at login), so you don't need to ask for or pass country. Never assume CAD.

ParameterTypeDescription
countrystringUser's country: CA or US — sets the currency (CA=CAD, US=USD)

snaplii_browse_tags Browse gift card categories

Browse all gift card categories with brand summaries (name, cashback rate, brandId). IMPORTANT: the account's country/region is already known from the connection (cached at login) and is returned as `account_country` in the result — do NOT ask the user for it. The catalog is already filtered to that region by the gateway, so every brand returned is available to the user; do not rely on flag emoji in brand names, which may be missing or wrong. When users describe a scenario (e.g. travel, dining), YOU should analyze the data, compare cashback rates, and recommend the best options.

ParameterTypeDescription
channelstringHOME_PAGE or SEND_GIFT

snaplii_browse_brand Get gift card brand details

Get brand details and exact denominations. Read the `denominations` array for each card's real type and amount: FIXED cards have a single `amount`; VARIABLE cards have a `min` and `max` (any amount in that range is allowed). NEVER invent or assume a min/max — only use the values returned here. Each entry's `item_id` ({cardBrandId}-{cardTemplateId}) is exactly what you pass to quote/purchase: copy it verbatim, never assemble or shorten it. Use brandId from browse_tags.

ParameterTypeDescription
brand_id *stringCard brand ID (e.g. CB00000000000086)

snaplii_giftcard_list List my gift cards

List user's owned gift cards, one page at a time. IMPORTANT: Only show brand name, face value, status, and masked card number (first 4 + last 4 digits). NEVER show full card code, PIN, or barcode unless user explicitly asks. When checking whether an earlier purchase went through, read every page: a card missing from one page is not proof that the purchase failed.

ParameterTypeDescription
pageintegerPage number, starting at 1
page_sizeintegerCards per page
statusstringACTIVE or INACTIVE

snaplii_giftcard_detail Get gift card details

Get a gift card's redemption code/PIN — how the card is actually used. If you have a browser-control capability, you may enter this code on the merchant/delivery site (Payment → Add Gift Card) and complete the order, pausing for confirmation before the final order/pay button. If you have no browser tool, give the user the code and tell them how to add it in the merchant app themselves. Redemption code field varies by brand: use cardCode if present, else pin; fields are nested under 'data'. Call after a purchase or when the user asks to see/redeem a card.

ParameterTypeDescription
card_no *stringCard number from giftcard_list

snaplii_quote Quote a gift card purchase

Get a price quote before purchasing. Verifies item_id against the catalog first, then returns the card's brand_name, order total, voucher discount, cashback applied, and actual pay amount. ALWAYS call this before snaplii_purchase to show the user what they will pay, and check that brand_name, when present, is the brand the user asked for. If it refuses the card or amount (invalid_item_id, amount_out_of_range, MCAP2107), nothing was charged: follow retry_hint, browse again and retry once with corrected parameters; if refused again, stop and tell the user.

ParameterTypeDescription
item_id *stringEXACTLY {cardBrandId}-{cardTemplateId}, e.g. CB00000000000086-CT000000003618. Copy it verbatim from the `item_id` of the chosen `denominations` entry returned by snaplii_browse_brand (or from snaplii_…
price *stringPrice in dollars
cashback_optionstringUSE or NOT_USE
specified_voucherstringSpecific voucher ID to apply (optional)
voucher_optionstringBEST_FIT (auto-apply best voucher), USE, or NOT_USE

snaplii_purchase Buy a gift card

Buy a gift card. Spends ONLY from prepaid Snaplii Cash, capped by the user's per-key daily limit set in the app; the charge happens as soon as this runs. Call snaplii_quote first to know the exact cost; pass the same voucher/cashback options here so the charge matches the quote. After purchase, get the redemption code via snaplii_giftcard_detail. invalid_item_id, amount_out_of_range or MCAP2107 (at any HTTP status) means nothing was charged: follow retry_hint and retry once with corrected parameters, never the same values; if refused again, stop and tell the user. If the call times out, loses…

ParameterTypeDescription
item_id *stringEXACTLY {cardBrandId}-{cardTemplateId}, e.g. CB00000000000086-CT000000003618. Copy it verbatim from the `item_id` of the chosen `denominations` entry returned by snaplii_browse_brand (or from snaplii_…
price *stringPrice in dollars
cashback_optionstringUSE (default) or NOT_USE — match what you quoted
specified_voucherstringSpecific voucher ID to apply (optional)
voucher_optionstringBEST_FIT (default), USE, or NOT_USE — match what you quoted

snaplii_cashback_calc Find the best cashback card

Calculate exact cashback savings for a brand and amount. Shows how much user saves and effective cost.

ParameterTypeDescription
amount *numberPurchase amount in dollars
brand_id *stringCard brand ID

snaplii_dashboard Show spending dashboard

Show a summary dashboard of all owned gift cards: total count, total face value, breakdown by brand.

snaplii_billpay_payees List bill payees

List available bill pay payees/billers (utility companies, telecoms, etc.).

snaplii_billpay_detail Get bill payee details

Get payee details including account validation rules. Use payeeCode from billpay_payees.

ParameterTypeDescription
payee_code *stringPayee code (e.g. ROGERS, HYDRO_ONE)

snaplii_billpay_history List bill payment history

Get user's previous bill pay info for a payee (autofill account, name, etc.).

ParameterTypeDescription
payee_code *stringPayee code

snaplii_billpay_save Save bill payment details

Save bill pay instruction. Returns payCode needed for quote and payment.

ParameterTypeDescription
account *stringAccount number at the biller
amount *stringPayment amount
first_name *stringPayer first name
last_name *stringPayer last name
payee_code *stringPayee code
emailstringPayer email (optional)
phonestringPayer phone (optional)
remarkstringMemo (optional)

snaplii_billpay_vouchers List bill payment vouchers

List available vouchers for a bill payment order.

ParameterTypeDescription
pay_code *stringpayCode from billpay_save
price *stringBill amount

snaplii_billpay_quote Quote a bill payment

Get a price quote for bill payment. Shows order total, voucher discount, and actual pay amount.

ParameterTypeDescription
pay_code *stringpayCode from billpay_save
price *stringBill amount
voucher_idstringSpecific voucher ID (optional)

snaplii_billpay_pay Pay a bill

Pay the bill from Snaplii Cash balance. Completes directly, with no PayPal redirect, when the balance covers the bill. The per-key daily limit set in the app only covers gift cards; bill payments are not subject to it. Once sent, a bill payment cannot be undone, and one sent to the wrong biller or account cannot be recovered. If a pay call fails or times out ambiguously, do NOT pay again: if the answer carries a paymentNo, check it with snaplii_billpay_result; if it does not, ask the user to check the bill in the Snaplii app and stop. snaplii_billpay_history cannot tell whether a payment went…

ParameterTypeDescription
pay_code *stringpayCode from billpay_save
price *stringBill amount
voucher_idstringSpecific voucher ID (optional)

snaplii_billpay_result Get bill payment result

Poll bill pay payment result. Returns status: SUCCESS (0), FAILED (1), or PROCESSING (3). If processing, wait and poll again.

ParameterTypeDescription
payment_no *stringpaymentNo from billpay_pay

snaplii_transfer_create Send Snaplii Cash to a phone number

Creates a P2P transfer of Snaplii Cash to a phone number. It sends automatically at auto_finish_at (~5 min) unless cancelled — always tell the user the amount, recipient, and the cancel deadline. If the user gave no phone number, ask for it. A fresh Idempotency-Key is generated per call; pass idempotency_key ONLY when retrying the identical request (after a CREATING result — never retry with a fresh key). If the result has cross_currency_notice, disclose it to the user; they can still cancel. Only call snaplii_transfer_finish when the user explicitly asks to send now.

ParameterTypeDescription
amount *stringAmount to send as a string, e.g. "12.50" (minimum 1.00)
to_phone *stringRecipient's phone number, any format
idempotency_keystringONLY to retry the identical request; omit otherwise
remarkstringOptional note to the recipient (max 200 characters)

snaplii_transfer_cancel Cancel a pending transfer

Cancel a PENDING transfer (allowed until auto_finish_at). Returns CANCELLED, or CANCELLING when the upstream has not confirmed yet — then poll snaplii_transfer_status.

ParameterTypeDescription
order_no *stringorder_no from snaplii_transfer_create

snaplii_transfer_finish Send a pending transfer now

Send a PENDING transfer NOW instead of waiting for auto_finish_at. Only call when the user explicitly asks to send immediately — it shortens the undo window and cannot be undone once settled. Settlement runs in the background (~15s): poll snaplii_transfer_status until FINISHED or FAILED.

ParameterTypeDescription
order_no *stringorder_no from snaplii_transfer_create

snaplii_transfer_status Get transfer status

Get one transfer's current state. Poll every few seconds while PENDING/FINISHING/CANCELLING; stop at FINISHED (success), CANCELLED, or FAILED (report fail_message to the user).

ParameterTypeDescription
order_no *stringorder_no from snaplii_transfer_create

snaplii_transfer_list List transfers

List the user's P2P transfers, newest first. Optional comma-separated status filter (e.g. PENDING,FINISHED).

ParameterTypeDescription
pageinteger1-based page (default 1)
page_sizeintegerRows per page, 1-100 (default 20)
statusstringComma-separated status filter (optional)