Jami

v0.3.0
io.github.kenawak/jami-mcp Checked 3 days ago Published 1 month ago

Jami creator payouts for your agent: ETB checkouts, orders, payouts, webhooks.

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

jami_create_checkout Create checkout

Start a checkout and get back how the buyer pays — either for one of the organization's published products, or for ANY amount with no product ("charge this buyer 1,237 ETB for order #1042"). Buyers pay in ETB via Telebirr, M-Pesa or CBE Birr; nothing is added on top. In LIVE mode a "direct" checkout pushes a real payment prompt to the buyer's phone, so only call this when the user actually wants to charge someone. What to charge: - Product: product_id (p_… token or 24-char id, must be published). amount_minor only for flexible-price (pwyw) products. - Custom amount: omit product_id,…

ParameterTypeDescription
amount_minorintegerInteger santim. Required for custom amounts (≥ 100) and pay-what-you-want products; ignored for fixed prices
checkout_linkstringCheckout link token (cl_…) to attribute this session to
collected_fieldsobjectAnswers to the product's checkout fields, keyed by field id
customer_emailstringBuyer email for the receipt. Required with gateway; optional for a payment link
customer_external_idstringYour own user id, stored on the customer record
customer_namestring
customer_phonestringBuyer phone, e.g. "251911223344"
descriptionstringCustom amount only: what the buyer is paying for, e.g. "Order #1042"
gatewaystringPayment method for paid products
metadataobjectYour own key/values, returned on order webhooks (max 20 keys)
product_idstringProduct token (p_…) or id. Omit for a custom-amount checkout.
success_urlstringWhere to send the buyer after paying

jami_get_checkout_status Get checkout status

Check a checkout session once. The server reconciles with the payment provider on every call, so this resolves even when webhooks are late. Args: - session_id: from jami_create_checkout. Returns: { session_id, status: 'open' | 'completed' | 'expired', order_id, order_status, amount_minor, amount, expires_at, failure }. When status is 'expired', failure.code explains why: payment_rejected · payment_failed · payment_canceled · payment_timed_out · initiate_failed · session_expired. Use jami_wait_for_checkout instead if you want to block until the buyer finishes.

ParameterTypeDescription
session_id *stringCheckout session id returned by jami_create_checkout, e.g. "6710c2e8b1a2f0012ab34cd9"
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload

jami_wait_for_checkout Wait for checkout

Poll a checkout session until it's paid or ends, up to timeout_seconds. Reports progress while it waits. If the buyer hasn't finished when the timeout hits, this returns status 'open' (not an error) — call it again to keep waiting. Sessions expire 30 minutes after creation. Args: - session_id: from jami_create_checkout. - timeout_seconds: 5–300 (default 90). - interval_seconds: 2–30 between polls (default 3). Returns the same shape as jami_get_checkout_status.

ParameterTypeDescription
session_id *stringCheckout session id returned by jami_create_checkout, e.g. "6710c2e8b1a2f0012ab34cd9"
interval_secondsinteger
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload
timeout_secondsinteger

jami_create_product Create product

Create a product the organization sells, and get its public Jami page (url) and p_… token. Published by default, so the page and checkouts work immediately. Pricing (can't be changed after creation; the amounts can): - fixed: amount_minor is the price, e.g. 250000 = 2,500.00 ETB. - pwyw (flexible): minimum_amount_minor; each checkout then sends its own amount. - free: no price. Subscription plans: product_type 'recurring' + pricing_model 'fixed' + billing_interval ('week' | 'month' | 'year') and optional interval_count (default 1; ≤ 52 weeks, ≤ 12 months, 1 year). amount_minor is…

ParameterTypeDescription
pricing_model *string
title *string
amount_minorintegerFixed price in santim
billing_intervalstringRecurring only: how often the payer's wallet is charged
descriptionstring
interval_countintegerRecurring only: periods per charge (default 1), e.g. 3 + month = every 3 months
minimum_amount_minorintegerFlexible price floor in santim
product_typestring
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload
statusstring

jami_update_product Update product

Change a product's title, description, status or price amount. The pricing model itself is locked. Args: product_id (p_… token or id), and any of: title, description, status ('published' | 'draft' | 'archived' — archived stops new sales), amount_minor (fixed price), minimum_amount_minor (flexible floor).

ParameterTypeDescription
product_id *stringProduct p_… token or id
amount_minorinteger
descriptionstring
minimum_amount_minorinteger
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload
statusstring
titlestring

jami_get_product Get product

Fetch one product by its p_… token or id: price, status, its public page url, and for a subscription plan its billing interval. Args: - product_id: p_… token or 24-character id. Returns: { product_id, token, url, title, status, pricing_model, product_type, billing_interval, interval_count, price }.

ParameterTypeDescription
product_id *stringProduct p_… token or id
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload

jami_list_products List products

List the organization's products, newest first. Args: status ('published' | 'draft' | 'archived', optional), page (default 1), limit 1–100 (default 20). Returns: { products: [{ product_id, token, url, title, status, pricing_model, price }], total, page, limit, count, has_more, next_page }.

ParameterTypeDescription
limitinteger
pageinteger
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload
statusstring

jami_list_subscriptions List subscriptions

List the organization's wallet subscriptions, newest first. Args: - status: 'active' | 'past_due' | 'canceled' (optional). past_due = a renewal failed and is being retried. - product_id: optional p_… token or id of the plan. - customer_external_id: optional, your own user id passed when the link was created. - page (default 1), limit 1–100 (default 20). Returns: { subscriptions: [{ subscription_id, status, product_title, amount_minor, cadence, next_charge_at, customer_email, … }], total, page, limit, count, has_more, next_page }.

ParameterTypeDescription
customer_external_idstring
limitinteger
pageinteger
product_idstringRecurring product p_… token or id
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload
statusstring

jami_get_subscription Get subscription

Fetch one wallet subscription with its newest 24 charges (one per billing period) — use it to see why a renewal failed or when the next one runs. Args: - subscription_id: the sub_… id. Returns: { subscription: { subscription_id, status, amount_minor, cadence, current_period_end, next_charge_at, cancel_at_period_end, cancellation_reason, last_failure, … }, charges: [{ charge_id, sequence, status, amount_minor, failure, order_id, paid_at }] }. Failure codes: insufficient_funds, kyc_required, payer_unavailable, simulated_failure, internal_error.

ParameterTypeDescription
subscription_id *stringSubscription id, e.g. "sub_9f2kQ…" from jami_list_subscriptions or a subscription.* webhook
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload

jami_cancel_subscription Cancel subscription

Cancel a wallet subscription so the payer is not charged again. Confirm with the user first — a cancel the payer didn't ask for loses a customer, and there are no refunds. Args: - subscription_id: the sub_… id. - at_period_end: default true — no more charges, and it ends at current_period_end (the payer keeps what they paid for). You can undo this kind of cancel before then with jami_resume_subscription. false ends it immediately (a past_due subscription always ends immediately). Returns the updated subscription: { subscription_id, status, cancel_at_period_end, ended_at, cancellati…

ParameterTypeDescription
subscription_id *stringSubscription id, e.g. "sub_9f2kQ…" from jami_list_subscriptions or a subscription.* webhook
at_period_endboolean
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload

jami_resume_subscription Resume subscription

Undo a cancel that YOU scheduled (jami_cancel_subscription with at_period_end true), so the subscription keeps renewing at next_charge_at. Only works on a cancel the organization scheduled and while the subscription hasn't ended yet. A cancel the customer made can't be undone by the organization (the payer has to subscribe again), and an ended subscription can't be resumed — both return 409 not_allowed. Args: - subscription_id: the sub_… id. Returns the updated subscription: { subscription_id, status, cancel_at_period_end: false, next_charge_at, … }. Idempotent: resuming an already-…

ParameterTypeDescription
subscription_id *stringSubscription id, e.g. "sub_9f2kQ…" from jami_list_subscriptions or a subscription.* webhook
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload

jami_simulate_subscription_renewal Simulate subscription renewal

Sandbox only: run a subscription's next renewal right now, succeeding or failing, to test subscription.renewed / subscription.payment_failed / subscription.canceled handling without waiting a billing period. No money moves. Refused with a live (jamidev_live_) token — live renewals only run on schedule. Args: - subscription_id: the sub_… id of a sandbox subscription. - outcome: 'success' (default) or 'failure'. Failures follow the real dunning schedule: retries at 1, 3 and 7 days, then the subscription is canceled with cancellation_reason payment_failed. Returns: { result: 'renewed'…

ParameterTypeDescription
subscription_id *stringSubscription id, e.g. "sub_9f2kQ…" from jami_list_subscriptions or a subscription.* webhook
outcomestring
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload

jami_list_orders List orders

List the organization's orders, newest first, one page at a time. Args: - status: 'paid' | 'pending' | 'failed' (optional filter). - page: 1-based page (default 1). - limit: 1–100 per page (default 20). Returns: { orders: [{ order_id, status, amount_minor, amount, product: { id, title }, customer: { id, email, name }, paid_at, created_at, metadata }], total, page, limit, count, has_more, next_page }. To total revenue or find a specific buyer, page through with next_page until has_more is false. Amounts are integer santim (100 = 1.00 ETB); this is what buyers paid, before any withdra…

ParameterTypeDescription
limitinteger
pageinteger
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload
statusstring

jami_get_balance Get balance

Get the organization's withdrawable JamiDev earnings — the ceiling on what jami_create_withdrawal can pay out. Returns: { balance_minor, balance, eligible, currency }. eligible is false (and balance 0) when the org can't withdraw yet: it's a sandbox org, Developer Mode is off, or KYC isn't approved. The money itself sits in the owner's unified Jami wallet, so a withdrawal can still fail with 402 if that wallet was spent elsewhere.

ParameterTypeDescription
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload

jami_quote_withdrawal Quote withdrawal

Preview what reaches the destination for a withdrawal — offline, no API call, works without a token. The JamiDev usage fee (7% unless Jami set a custom rate on the account) and any government tax are cut FROM the amount: you withdraw amount, the account receives net. Rounding is round-half-up per component. The server is authoritative; the real breakdown comes back on the withdrawal. Args: - amount_minor: gross santim (min 10000 = 100.00 ETB). - fee_rate / tax_rate: optional overrides (0–1) if you know the account's real rates. Returns the breakdown plus whether the amount auto-pays…

ParameterTypeDescription
amount_minor *integerGross amount in integer santim — the fee is cut from this. 10000 = 100.00 ETB (the minimum).
fee_ratenumber
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload
tax_ratenumber

jami_get_withdrawal Get withdrawal

Fetch one withdrawal by id to track it from pending → processing → completed (or rejected). Args: - withdrawal_id: from jami_create_withdrawal or jami_list_withdrawals.

ParameterTypeDescription
withdrawal_id *string
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload

jami_list_withdrawals List withdrawals

List the organization's withdrawals, newest first. Args: - status: 'pending' | 'reviewing' | 'approved' | 'rejected' | 'processing' | 'completed' (optional). - page (default 1), limit 1–100 (default 20). Returns: { withdrawals: [...], total, page, limit, count, has_more, next_page }.

ParameterTypeDescription
limitinteger
pageinteger
response_formatstring'markdown' (default) for a readable summary, 'json' for the full structured payload
statusstring

jami_verify_webhook Verify webhook

Check whether a webhook delivery is genuine — the same timing-safe HMAC check and replay guard the SDK runs. Use it to debug "signature mismatch" errors in a handler. Args: - payload: the RAW request body exactly as received (not re-serialized JSON — whitespace matters). - signature: the X-JamiDev-Signature header, "t=<unix>,v1=<hex>". - secret: the subscription's webhook secret (defaults to JAMI_WEBHOOK_SECRET). - tolerance_seconds: max age of the timestamp (default 300). Raise it to check an old captured delivery. Returns: { valid, reason, event_type, event_id, livemode }. An i…

ParameterTypeDescription
payload *stringRaw request body
signature *stringX-JamiDev-Signature header value
secretstring
tolerance_secondsinteger

jami_create_test_webhook Create test webhook

Build a correctly signed JamiDev webhook delivery for testing a handler locally — no real event needed. Args: - type: 'order.created' | 'order.completed' | 'benefit.granted' | 'checkout.session.expired' | 'withdrawal.paid' | 'withdrawal.failed' | 'subscription.created' | 'subscription.renewed' | 'subscription.payment_failed' | 'subscription.updated' | 'subscription.canceled'. - secret: signing secret (defaults to JAMI_WEBHOOK_SECRET; any string works for a local test). - data: optional fields to merge over the realistic sample payload. - livemode: default false (sandbox). - target…

ParameterTypeDescription
type *string
dataobject
livemodeboolean
secretstring
target_urlstring

jami_search_docs Search Jami docs

Search the official JamiDev developer docs (https://dev.jami.bio/docs) — the source of truth for integrating Jami payments. Works without an API token. Use this before writing integration code: SDK usage, REST endpoints, webhooks and signature checks, sandbox magic numbers, Sign in with Jami (OAuth/OIDC), the wallet API, the browser storefront, fees and limits. Args: - query: what you need, e.g. "verify webhook signature express", "pay what you want amount", "withdrawal fee". - limit: 1–10 results (default 5). Returns: { results: [{ title, path, url, snippet }] }. Read a full page w…

ParameterTypeDescription
query *string
limitinteger

jami_read_doc Read Jami doc page

Read one JamiDev docs page as markdown, with every code sample intact. Args: - path: a docs path from jami_search_docs, e.g. "/docs/webhooks", "api/checkout", or a full URL. Use "/docs" for the overview. - offset: character offset for long pages (default 0); the result says where to continue. Returns: { title, url, markdown, offset, next_offset? }.

ParameterTypeDescription
path *string
offsetinteger