Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ENABLE_RESOURCES | No | Set to 'true' to let the AI see 'active context' like failed payments automatically. | false |
| SALESFORCE_TOKEN | No | Salesforce security token for CRM integration tools. | |
| SALESFORCE_PASSWORD | No | Salesforce password for CRM integration tools. | |
| SALESFORCE_USERNAME | No | Salesforce username for CRM integration tools. | |
| LEMONSQUEEZY_API_KEY | Yes | Your live Lemon Squeezy API key (starts with ls_...). | |
| POLL_FAILED_PAYMENTS | No | Set to 'true' to check for failed payments every few minutes. | false |
| LEMONSQUEEZY_TEST_API_KEY | No | Optional API key used for testing without affecting real data. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_store | Get details of a specific store by ID. |
| list_stores | List all stores in your Lemon Squeezy account. |
| get_customer | Get details of a specific customer by ID. |
| list_customers | List customers with optional filtering. Useful for finding customer information, subscription status, and order history. |
| create_customer | Create a new customer in a store. |
| update_customer | Update an existing customer's information. |
| archive_customer | Archive a customer (soft delete). |
| get_product | Get details of a specific product by ID. |
| list_products | List all products, optionally filtered by store. |
| get_variant | Get details of a specific product variant by ID. |
| list_variants | List all product variants, optionally filtered by product or store. |
| get_order | Retrieve details of a specific Lemon Squeezy order by ID. Use this to verify payment status, order total, and customer information. |
| list_orders | List all orders with optional filtering. Useful for finding recent payments, the last successful payment, or browsing order history. Returns orders sorted by most recent first. |
| search_orders | Search for orders by email or customer email. Useful for finding a payment when you only have a user's email address. Returns all orders matching the email. |
| get_order_item | Get details of a specific order item by ID. |
| list_order_items | List order items, optionally filtered by order. |
| generate_order_invoice | Generate an invoice for an order. |
| issue_order_refund | Issue a refund for an order. |
| get_subscription | Check the status of a subscription. Use this to verify if credits should be active, subscription status, renewal dates, and billing information. |
| list_subscriptions | List all subscriptions, optionally filtered by store or customer. |
| update_subscription | Update a subscription (e.g., change plan, update billing details). |
| cancel_subscription | Cancel a subscription. |
| get_subscription_item | Get details of a specific subscription item by ID. |
| list_subscription_items | List subscription items, optionally filtered by subscription. |
| get_subscription_item_usage | Get current usage statistics for a subscription item (useful for usage-based billing). |
| get_subscription_invoice | Get details of a specific subscription invoice by ID. |
| list_subscription_invoices | List subscription invoices, optionally filtered by subscription. |
| generate_subscription_invoice | Generate an invoice for a subscription. |
| issue_subscription_invoice_refund | Issue a refund for a subscription invoice. |
| get_discount | Get details of a specific discount by ID. |
| list_discounts | List all discounts, optionally filtered by store. |
| create_discount | Create a new discount code. |
| delete_discount | Delete a discount. |
| get_license_key | Get details of a specific license key by ID. |
| list_license_keys | List license keys, optionally filtered by store or order. |
| update_license_key | Update a license key (e.g., activate, deactivate, update status). |
| get_file | Get details of a specific file by ID. |
| list_files | List files, optionally filtered by product or variant. |
| get_usage_record | Get details of a specific usage record by ID. |
| list_usage_records | List usage records, optionally filtered by subscription item. |
| create_usage_record | Create a new usage record for a subscription item (for usage-based billing). |
| create_checkout | Create a new checkout session for a product variant. |
| get_webhook | Get details of a specific webhook by ID. |
| list_webhooks | List all webhooks, optionally filtered by store. |
| create_webhook | Create a new webhook. |
| update_webhook | Update an existing webhook. |
| delete_webhook | Delete a webhook. |
| sync_customer_to_crm | Sync a customer to Salesforce CRM. Checks if a Lead with the email exists, and if not, creates a new Lead with source 'AI Agent'. Returns the Lead ID. |
| search_transactions_natural | Search transactions using natural language (e.g., 'refunds from yesterday', 'subscriptions this week'). Cross-references Lemon Squeezy and Firestore. |
| analyze_churn_risk | Identify users with active subscriptions who haven't logged in recently (>28 days). |
| canonize_decision | Record a business decision with a snapshot of current active user metrics. |
| get_financial_metrics | Calculate comprehensive financial metrics including revenue (total, by period, growth rates), MRR/ARR, subscription metrics, order statistics, and customer metrics. Supports date range filtering. |
| predict_churn_risk | Predict churn risk for active subscriptions by analyzing payment history, subscription age, status, and activity patterns. Returns risk scores (0-100) and risk levels (low/medium/high/critical) with detailed factors. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |