Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| REFGROW_API_KEY | Yes | Your Refgrow API key (starts with `rgk_`) | |
| REFGROW_API_URL | No | Base URL of your Refgrow instance | https://refgrow.com |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_affiliates | List all affiliates in your Refgrow project with their stats (clicks, signups, purchases, earnings). Supports filtering by status and pagination. |
| get_affiliate_details | Get detailed information about a specific affiliate by their email address, including click count, signups, purchases, and earnings. |
| create_affiliate | Create a new affiliate in your Refgrow project. An affiliate receives a unique referral code and can start referring customers. |
| update_affiliate | Update an existing affiliate's details such as email, referral code, status, or partner slug. |
| delete_affiliate | Delete an affiliate from your project. This also removes their associated referral data. |
| list_referrals | List referred users (signups tracked through affiliate links). Filter by affiliate or conversion status. Shows which affiliate referred each user. |
| get_referral_details | Get details for a specific referred user by their email address. |
| create_referral | Manually create a referred user record, optionally linking them to a specific affiliate. |
| list_conversions | List conversions (signups and purchases) tracked in your affiliate program. Filter by type, affiliate, date range, or paid status. |
| get_conversion | Get details for a specific conversion by its ID. |
| create_conversion | Manually create a conversion (signup or purchase). For purchases, the commission is auto-calculated from project settings if value is not provided. You can identify the affiliate by ID or referral code. |
| update_conversion | Update a conversion's details. Commonly used to mark a conversion as paid or update its value. |
| delete_conversion | Delete a conversion record by its ID. |
| list_coupons | List coupon codes associated with affiliates in your project. Filter by status, affiliate, or coupon code search. |
| get_coupon | Get details for a specific coupon by its ID. |
| create_coupon | Create a new coupon code linked to an affiliate. Optionally tie it to a Stripe coupon ID or LemonSqueezy discount code for automatic attribution. |
| update_coupon | Update an existing coupon's code, linked affiliate, payment provider IDs, or status. |
| delete_coupon | Delete a coupon by its ID. If linked to a Stripe coupon, it will also be deleted from Stripe. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |