perly-pay-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PERLY_PAY_API | No | Perly Pay API base URL. Default `https://pay.perly.io`. Plain `http` only for `localhost`. | https://pay.perly.io |
| PERLY_PAY_SECRET_KEY | Yes | Your Perly Pay API secret key. Use `sk_test_…` while you build. `sk_live_…` works too, with the limits below. | |
| PERLY_PAY_WEBHOOK_SECRET | No | Optional `whsec_…`, the default for `verify_webhook_signature`. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_invoicesC | List invoices. Newest first; pass |
| create_invoiceA | Create an invoice. Lines are prices ( Test keys only: refused with a live key. |
| retrieve_invoiceC | Retrieve an invoice. |
| cancel_invoiceA | Cancel an invoice. Only while nothing has arrived. Money that arrives later is still seen (the address stays watched) and lands in review. Test keys only: refused with a live key. Cannot be undone — Cancels the invoice: its buyer can no longer pay it. Ask the person first, then call with |
| simulate_paymentA | Simulate a payment (test mode only). Test keys only. Pass the invoice's Test keys only: refused with a live key. |
| create_checkout_sessionA | Create a checkout session. A cart of 1–20 prices in one currency. Send the buyer to Test keys only: refused with a live key. |
| retrieve_checkout_sessionC | Retrieve a checkout session. |
| list_productsB | List products. Newest first; pass |
| create_productB | Create a product. Test keys only: refused with a live key. |
| update_productA | Update a product. Set Test keys only: refused with a live key. |
| list_pricesC | List prices. Newest first; pass |
| create_priceA | Create a price. Every model: one_time, pay_what_you_want (with a minimum), fixed_term (N days of access), subscription (interval, trial, grace, prepay), lifetime (optional cap and cohort tiers), credit_pack. Amounts are immutable; make a new price to change one. Body is one of: model = one_time: needs product, model, unit_amount; model = pay_what_you_want: needs product, model, custom_amount; model = fixed_term: needs product, model, unit_amount, term_days; model = subscription: needs product, model, unit_amount, recurring; model = lifetime: needs product, model; model = credit_pack: needs product, model, unit_amount, credits. Test keys only: refused with a live key. |
| update_priceA | Update a price. Nickname, active, refund terms ( Test keys only: refused with a live key. |
| list_customersC | List customers. Newest first; pass |
| create_customerC | Create a customer. Test keys only: refused with a live key. |
| retrieve_customerC | Retrieve a customer. |
| list_subscriptionsB | List subscriptions. Newest first; pass |
| create_subscriptionB | Create a subscription. Renewed by invoice: the customer pays each period themselves. Without a trial the first invoice opens now ( Test keys only: refused with a live key. |
| retrieve_subscriptionC | Retrieve a subscription. |
| list_payment_linksA | List payment links. Newest first; pass |
| create_payment_linkB | Create a payment link. A page at /l/ that sells one price. Share it anywhere, or open it with pay.js. Test keys only: refused with a live key. |
| update_payment_linkC | Update a payment link. Test keys only: refused with a live key. |
| check_entitlementB | Check access. One call: may this customer use this product now? Name the customer by |
| list_entitlementsC | List entitlements. Newest first; pass |
| consume_entitlement_creditsA | Spend credits. Spends credits from one credit pack, atomically. Refused when fewer are left. Test keys only: refused with a live key. |
| list_credit_usageA | List credit spends. Newest first; pass |
| list_paymentsA | List payments. Transfers seen on chain into addresses we handed out, newest first. Newest first; pass |
| retrieve_paymentC | Retrieve a payment. |
| list_refundsB | List refunds. Newest first; pass |
| create_refundA | Open a refund. Starts a refund in the asset that was paid. We email the buyer a link to give an address; the link is never returned, since whoever holds it decides where the money goes. With no email on the invoice, the owner makes one in the dashboard. When the address is checked, the refund is Test keys only: refused with a live key. Cannot be undone — Opens a refund to the buyer. Ask the person first, then call with |
| list_receiptsB | List receipts. One for every fulfilled payment and every confirmed refund, newest first. Newest first; pass |
| retrieve_receiptC | Retrieve a receipt. |
| list_eventsA | List events. What happened in the last 30 days, newest first. Newest first; pass |
| list_webhook_endpointsA | List webhook endpoints. Newest first; pass |
| create_webhook_endpointA | Create a webhook endpoint. The response carries Test keys only: refused with a live key. |
| delete_webhook_endpointA | Delete a webhook endpoint. Test keys only: refused with a live key. Cannot be undone — Deletes the webhook endpoint: its events stop. Ask the person first, then call with |
| verify_webhook_signatureA | Checks a Perly Pay webhook on this machine: the HMAC-SHA256 in its Perly-Signature header against the raw body and the endpoint's signing secret, and that it is under five minutes old. Nothing is sent anywhere. Use it to debug a webhook handler that rejects real events. Pass the body exactly as received (the raw text, before JSON parsing). |
| pay_linksA | The Perly Pay dashboard pages for steps no API key can take: pay a Perly Pay bill, connect a wallet (public key only), go live, set up two-factor sign-in, manage API keys and live webhooks, send live refunds, and the go-live checklist. Give the person the link and say what to do there; do not try these through other tools. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 38 tools
Most tools map to a distinct resource and action, and the descriptions clarify differences. However, create_invoice, create_checkout_session, create_payment_link, and create_subscription all represent ways to charge a buyer, so an agent may still need to reason carefully about which flow to use.
Names consistently use snake_case with a verb-first pattern such as list_invoices, create_product, retrieve_receipt, and delete_webhook_endpoint. The one meta tool, pay_links, is slightly unusual semantically but still fits the snake_case convention.
With 38 tools, the surface is well past the 25-tool threshold and feels heavy for an agent to navigate, even for a broad payments platform. Many resources have separate list/create/retrieve/update tools that could potentially be consolidated.
Core resources generally have create/list/retrieve coverage, and refunds, receipts, events, and webhooks are represented. But there are notable gaps: subscriptions lack update/cancel operations, customers lack update, and several resources such as products, prices, payment links, and refunds lack a retrieve operation.