FavCRM
io.favcrm/favcrm
MCP server OK 244 tools
Agentic CRM for service businesses — bookings, customers, WhatsApp, loyalty, invoicing.
Technical sheet
- Author
- favcrm.io (registry namespace)
- Repository
- github.com/favcrm/mcp
- Site
- favcrm.io
- Version
- 1.0.0
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://api.favcrm.io/mcp Streamable HTTP
- Tools
- 244
- Categories
- Commerce and marketing, Messaging and communication
- Comparisons
- MCP servers for WhatsApp
- Last updated
- 8 Jun 2026
- Published
- 8 Jun 2026
Verified author and popularity
Entry not claimed yet. Is it your project? Claim it
Not “Popular” for now Removed automatically as soon as the criteria are no longer met.
- Distinct visitors of this entry over 30 days: 0 (30 needed) not yet
- or install configs copied over 30 days: 0 (5 needed) not yet
- and a successful test less than 14 days old: tested 28 Nov 2026 met
Badge updates by itself. Always “tested on …”, never “certified”. How it works
[](https://latlas.dev/en/mcp/io.favcrm/favcrm)<a href="https://latlas.dev/en/mcp/io.favcrm/favcrm"><img src="https://latlas.dev/badge/statut/mcp/io.favcrm/favcrm.svg?lang=en" alt="Status on L’Atlas" height="20"></a>Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.favcrm/favcrm)<a href="https://latlas.dev/en/mcp/io.favcrm/favcrm"><img src="https://latlas.dev/badge/fiche/io.favcrm/favcrm.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://api.favcrm.io/mcp
- Last result
- OK 28 Nov 2026, 09:50
- Response time
- 2,488 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- favcrm 1.0.0
- Tools
- 244
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 09:50 | OK | 2,488 ms | 244 |
Exposed tools (244, from tools/list, 28 Nov 2026)
search_members
Search and filter members/accounts by text, date, tier, tags or history. OAuth filters require the related read permission; activity history filters are unavailable to OAuth.
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | string | no | Name, email, or phone to search |
| lifeStage | enum: "lead" | "active" | "churned" | "vip" | "prospect" | no | Filter by life stage |
| hasMembership | boolean | no | Filter to members with active membership |
| createdAfter | string | no | ISO date — accounts created after this date |
| createdBefore | string | no | ISO date — accounts created before this date |
| lastBookingBefore | string | no | ISO date — members whose last booking is before this date (or have no bookings) |
| lastBookingAfter | string | no | ISO date — members who have a booking after this date |
| hasBooking | boolean | no | Filter to members with/without any booking |
| lastActivityBefore | string | no | ISO date — members with no activity since this date |
| lastActivityAfter | string | no | ISO date — members with activity after this date |
| inactiveDays | number | no | Members with no activity in the last N days |
| tierId | string | no | Filter by membership tier ID |
| membershipStatus | enum: "active" | "expired" | "suspended" | no | Filter by membership status |
| source | enum: "walk_in" | "online" | "pos" | "whatsapp" | "referral" | "import" | "api" | "shopify" … | no | Filter by account source |
| tagIds | array<string> | no | Filter by tag IDs |
| sort | string | no | Sort column: name, email, or createdAt |
| order | enum: "asc" | "desc" | no | Sort order |
| limit | number | no | Max results (default 20) |
get_member_profile
Get detailed profile for a specific member/account by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | yes | The account ID |
preview_customer_import
Preview a bulk customer import (max 2000 rows). Matches existing accounts by phone/email and shows create vs update actions plus points/stamps/credit deltas. Use commit_customer_import with the returned sessionId to apply.
| Parameter | Type | Required | Description |
|---|---|---|---|
| filename | string | no | Original filename for audit |
| rows | array<object> | yes |
commit_customer_import
Commit a previewed customer import. Pass the same rows and sessionId returned by preview_customer_import. Creates/updates accounts and applies points, stamps, and credit deltas.
| Parameter | Type | Required | Description |
|---|---|---|---|
| sessionId | string | yes | sessionId from preview_customer_import |
| rows | array<object> | yes |
create_account
Create a CRM account/customer with a primary contact. Optionally enroll the account as a member; use enrol_membership later when the account already exists.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Account/customer display name |
| firstName | string | no | First name for individual accounts |
| lastName | string | no | Last name for individual accounts |
| string | no | Email address | |
| phone | string | no | Phone number |
| type | enum: "individual" | "business" | "household" | no | Account type. Defaults to individual. |
| lifeStage | enum: "lead" | "active" | "churned" | "vip" | "prospect" | no | CRM life stage. Defaults to active. |
| source | enum: "walk_in" | "online" | "pos" | "whatsapp" | "referral" | "import" | "api" | "shopify" … | no | Acquisition source. Defaults to api. |
| notes | string | no | Internal notes |
| enrollMembership | boolean | no | Whether to create an active membership immediately |
| tierId | string | no | Membership tier ID to enroll into. If omitted, the company default tier may apply. |
| expiresAt | string | no | Optional ISO expiry for the membership |
| address | object | no | Postal address |
update_account
Update CRM account/customer profile fields such as name, phone, email, life stage, owner, notes, or member code.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | yes | The account ID to update |
| name | string | no | Account/customer display name |
| firstName | string | null | no | First name for individual accounts |
| lastName | string | null | no | Last name for individual accounts |
| string | no | Email address | |
| phone | string | no | Phone number |
| type | enum: "individual" | "business" | "household" | no | Account type |
| lifeStage | enum: "lead" | "active" | "churned" | "vip" | "prospect" | no | CRM life stage |
| source | enum: "walk_in" | "online" | "pos" | "whatsapp" | "referral" | "import" | "api" | "shopify" … | no | Acquisition source |
| assignedTo | string | null | no | Assigned team member user ID, or null to clear |
| notes | string | no | Internal notes |
| memberCode | string | null | no | Merchant member code, or null to clear |
| referredByAccountId | string | null | no | Referrer account ID, or null to clear |
| gender | string | no | Gender |
| dateOfBirth | string | null | no | YYYY-MM-DD date of birth, or null to clear |
delete_account
Soft-delete a CRM account/customer. This releases the primary phone for future reuse while keeping account history for audit.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | yes | The account ID to soft-delete |
list_tags
List all available tags for the merchant.
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | string | no | Search tags by name |
create_tag
Create a CRM tag for customer segmentation and organization.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Tag name |
| color | string | no | Optional display color, e.g. #2563eb |
update_tag
Rename or recolor an existing CRM tag.
| Parameter | Type | Required | Description |
|---|---|---|---|
| tagId | string | yes | The tag ID to update |
| name | string | no | New tag name |
| color | string | null | no | New color, or null to clear |
delete_tag
Delete a CRM tag and remove it from all tagged entities.
| Parameter | Type | Required | Description |
|---|---|---|---|
| tagId | string | yes | The tag ID to delete |
attach_tags
Attach one or more tags to a member/account. Useful for segmenting members after filtering.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountIds | array<string> | yes | Member/account IDs to tag (max 100) |
| tagId | string | yes | Tag ID to attach |
detach_tags
Detach one tag from one or more member/account records.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountIds | array<string> | yes | Member/account IDs to untag (max 100) |
| tagId | string | yes | Tag ID to detach |
list_tiers
List all membership tiers with member counts and stats.
No parameters.
get_membership_tier
Get a specific membership tier by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| tierId | string | yes | The tier ID |
issue_rewards
Issue a gift/reward to multiple members. Requires a gift offer ID and member IDs.
| Parameter | Type | Required | Description |
|---|---|---|---|
| giftOfferId | string | yes | The gift offer/reward scheme ID to issue |
| memberIds | array<string> | yes | Member/account IDs to receive the reward (max 50) |
| expiresAt | string | no | Optional ISO date when the reward expires |
enrol_membership
Enrol a member into a membership tier. Free tiers enrol immediately; paid tiers return PAYMENT_REQUIRED unless skipPriceCheck is set. Use list_tiers first to find the target tier.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | yes | The member/account ID to enrol |
| tierId | string | no | The membership tier ID. Omit to enrol on the default no-tier membership. |
| expiresAt | string | no | Optional ISO date to override the tier-computed expiry. |
get_loyalty_balance
Get a member's current loyalty balance — points, stamps, credits, lifetime totals, and active membership tier. Returns null if the member is not enrolled.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | yes | The member/account ID |
earn_loyalty_points
Credit loyalty points or stamps to a member. Use field="points" for points, "stamps" for stamps. Server records a transaction with the reason as audit context.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | yes | The member/account ID |
| field | enum: "points" | "stamps" | yes | Which loyalty unit to credit |
| amount | integer | yes | Positive integer amount to credit |
| reason | string | no | Audit-trail reason (e.g. "Booking completed", "Manual adjustment") |
get_dashboard_stats
Get high-level business KPIs: member count, new members this week, active subscriptions, total points issued, active promotions, rewards redeemed, messages sent.
No parameters.
list_bookings
List bookings with filters for date range, status, service, staff, or member.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "draft" | "held" | "pending" | "confirmed" | "cancelled" | "completed" | "no_show" | no | Filter by booking status |
| serviceId | string | no | Filter by service ID |
| staffId | string | no | Filter by staff member ID |
| accountId | string | no | Filter by member/account ID |
| dateFrom | string | no | ISO date — bookings from this date |
| dateTo | string | no | ISO date — bookings up to this date |
| limit | number | no | Max results (default 20) |
get_booking_detail
Get full booking details including line items, status history, and participants.
| Parameter | Type | Required | Description |
|---|---|---|---|
| bookingId | string | yes | The booking ID |
get_booking_stats
Get booking counts: today, this week, this month, and breakdown by status.
No parameters.
get_available_slots
Find available booking slots for a service on a specific date.
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | string | yes | The service to check availability for |
| date | string | yes | ISO date to check (YYYY-MM-DD) |
| staffId | string | no | Optional: filter by specific staff member |
| resourceId | string | no | Optional: filter by specific resource |
list_services
List booking services with name, price, duration, and status.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "active" | "inactive" | "archived" | no | Filter by status |
| search | string | no | Search by name |
| limit | number | no | Max results (default 20) |
get_service_detail
Get full service details including addons, staff, resources, and tier pricing.
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | string | yes | The service ID |
get_service_tier_pricing
Read every membership-tier pricing configuration for one booking service.
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | string | yes | Booking service ID |
set_service_tier_pricing
Set the complete pricing and booking-policy configuration for one membership tier on a booking service.
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | string | yes | Booking service ID |
| tierId | string | yes | Membership tier ID |
| priceOverride | string | null | yes | |
| discountPercent | string | null | yes | |
| advanceBookingDays | integer | null | yes | |
| timeSlotPricing | array<object> | null | yes | |
| bookingLimits | object | null | yes |
copy_service_tier_pricing
Copy the complete pricing and booking-policy configuration from one membership tier to another on the same booking service.
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | string | yes | Booking service ID |
| sourceTierId | string | yes | Membership tier to copy from |
| targetTierId | string | yes | Membership tier to replace |
create_service
Create a bookable service. Sets duration, price, capacity, and policies. Use list_service_categories first if you want to attach to an existing category.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Service name |
| durationMinutes | number | yes | Duration of one booking in minutes |
| price | string | no | Decimal string, e.g. "80.00". Defaults to "0". |
| currency | string | no | ISO currency code, default HKD |
| capacity | number | no | How many participants per slot (default 1) |
| categoryId | string | no | Existing service category ID |
| description | string | no | Description |
| type | enum: "one_on_one" | "group" | "class" | no | Default one_on_one |
| cooldownMinutes | number | no | Minimum gap before bookings can be cancelled (default 0) |
| requiresStaff | boolean | no | Whether the service requires staff assignment |
| requiresResource | boolean | no | Whether the service requires a resource (room/equipment) |
| requiresConfirmation | boolean | no | If true, bookings start as pending and need confirm_booking |
| requireLogin | boolean | no | Default true — guests cannot book |
| visibility | enum: "public" | "members_only" | "hidden" | no | Visibility: public | members_only | hidden |
| allowedTierIds | array<string> | no | Required when visibility=members_only |
| status | enum: "active" | "inactive" | "archived" | no | Default active |
| sortOrder | number | no | Sort order (lower = earlier) |
| commissionType | enum: "fixed" | "percentage" | null | no | Commission type: "fixed" or "percentage" |
| commissionValue | string | null | no | Commission amount as decimal string |
| commissionCurrency | string | null | no | Commission currency (ISO code) |
update_service
Update an existing booking service. Pass only the fields you want to change.
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | string | yes | Service ID to update |
| name | string | no | Name |
| description | string | no | Description |
| durationMinutes | number | no | Duration of one booking in minutes |
| price | string | no | Decimal string, e.g. "80.00" |
| capacity | number | no | Participants per slot |
| categoryId | string | null | no | Category ID |
| status | enum: "active" | "inactive" | "archived" | no | Status filter |
| visibility | enum: "public" | "members_only" | "hidden" | no | Visibility: public | members_only | hidden |
| requiresStaff | boolean | no | Whether the service requires staff assignment |
| requiresResource | boolean | no | Whether the service requires a resource (room/equipment) |
| requiresConfirmation | boolean | no | If true, bookings start pending and need explicit confirmation |
| requireLogin | boolean | no | If true, guests cannot book without an account |
| cooldownMinutes | number | no | Cooldown minutes between bookings |
| commissionType | enum: "fixed" | "percentage" | null | no | Commission type: "fixed" or "percentage" |
| commissionValue | string | null | no | Commission amount as decimal string |
| commissionCurrency | string | null | no | Commission currency (ISO code) |
create_service_schedule
Create a bookable schedule window for a service, including recurring weekly/daily availability.
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | string | yes | Service ID |
| date | string | yes | Start date or one-off date (YYYY-MM-DD) |
| startTime | string | yes | HH:MM (24h) |
| endTime | string | yes | HH:MM (24h) |
| maxCapacity | number | no | Max bookings per generated slot |
| staffId | string | no | Optional companyMembers.id to bind this schedule to staff |
| resourceId | string | no | Optional resource ID to bind this schedule to a room/resource |
| recurrence | enum: "none" | "daily" | "weekly" | "monthly" | no | Default none |
| recurrenceInterval | number | no | Default 1 |
| byWeekday | array<integer> | no | Weekdays for weekly recurrence: 0=Mon, 1=Tue, ... 6=Sun |
| recurrenceEndDate | string | no | YYYY-MM-DD |
| notes | string | no | Free-form notes |
list_service_schedules
List schedule windows for booking services.
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | string | no | Service ID |
| staffId | string | no | Staff member ID |
| resourceId | string | no | Resource ID (room/equipment) |
| dateFrom | string | no | YYYY-MM-DD |
| dateTo | string | no | YYYY-MM-DD |
| isOverride | boolean | no | Filter to override entries only |
| limit | number | no | Max results (default 20) |
update_service_schedule
Update a service schedule window. Pass only fields to change.
| Parameter | Type | Required | Description |
|---|---|---|---|
| scheduleId | string | yes | Schedule ID |
| date | string | no | Date (YYYY-MM-DD) |
| startTime | string | no | Start time (HH:mm) |
| endTime | string | no | End time (HH:mm) |
| maxCapacity | number | no | Maximum capacity for this slot |
| staffId | string | null | no | Staff member ID |
| resourceId | string | null | no | Resource ID (room/equipment) |
| recurrence | enum: "none" | "daily" | "weekly" | "monthly" | no | Recurrence rule: none | daily | weekly | monthly |
| recurrenceInterval | number | no | Recurrence interval (e.g. every N weeks) |
| byWeekday | array<integer> | null | no | Weekdays (0=Mon..6=Sun) for weekly recurrence |
| recurrenceEndDate | string | null | no | Recurrence end date (YYYY-MM-DD) |
| notes | string | null | no | Free-form notes |
assign_staff_to_service
Assign a staff member to a booking service. Pass users.id from list_staff.userId.
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | string | yes | Service ID |
| userId | string | yes | users.id from list_staff.userId |
link_resource_to_service
Link a room/resource to a booking service.
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | string | yes | Service ID |
| resourceId | string | yes | Resource ID |
list_service_categories
List service categories (groups for booking services like "Treatments", "Classes").
No parameters.
create_service_category
Create a service category (e.g. "Treatments", "Classes") to group bookable services.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Category name |
| description | string | no | Description |
| sortOrder | number | no | Sort order (lower = earlier) |
create_resource
Create a bookable resource (room, equipment, vehicle). Used by services that have requiresResource=true.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Resource name (e.g. "Treatment Room A") |
| type | string | yes | Free-form type label, e.g. "room", "equipment" |
| description | string | no | Description |
| capacity | number | no | How many concurrent bookings (default 1) |
| status | enum: "active" | "inactive" | no | Default active |
set_resource_availability
Add an availability window for a resource. Use day-of-week + recurring=true for weekly schedules, or a specific date for one-off blocks.
| Parameter | Type | Required | Description |
|---|---|---|---|
| resourceId | string | yes | Resource ID |
| startTime | string | yes | HH:MM (24h) |
| endTime | string | yes | HH:MM (24h) |
| type | enum: "available" | "blocked" | no | Default available |
| dayOfWeek | enum: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun" | no | Day of week (0=Sun..6=Sat) |
| date | string | no | YYYY-MM-DD for a specific date instead of dayOfWeek |
| isRecurring | boolean | no | Default true |
set_staff_availability
Add an availability window for a staff member (companyMembers.id). Use day-of-week + recurring for weekly schedules, or a specific date for one-off changes.
| Parameter | Type | Required | Description |
|---|---|---|---|
| memberId | string | yes | companyMembers.id of the staff |
| startTime | string | yes | HH:MM (24h) |
| endTime | string | yes | HH:MM (24h) |
| type | enum: "available" | "blocked" | no | Default available |
| dayOfWeek | enum: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun" | no | Day of week (0=Sun..6=Sat) |
| date | string | no | YYYY-MM-DD for a specific date instead of dayOfWeek |
| isRecurring | boolean | no | Default true |
get_booking_settings
Get global booking settings for the customer booking flow, cancellation rules, visibility options, and confirmation requirements.
No parameters.
update_booking_settings
Update global booking settings. Pass only the fields you want to change.
| Parameter | Type | Required | Description |
|---|---|---|---|
| globalCooldownDays | integer | null | no | Minimum days between customer bookings, or null to disable |
| cooldownMessage | string | null | no | Optional message shown when cooldown blocks a booking |
| blockUntilFinished | boolean | no | Block customers from booking again while they have active bookings |
| showCoupon | boolean | no | Show coupon field in booking flow |
| showAccessPass | boolean | no | Show access pass/package options in booking flow |
| accessPassBeforeMinutes | integer | no | Minutes before booking start when the access QR becomes usable |
| accessPassAfterMinutes | integer | no | Minutes after booking end when the access QR remains usable |
| premisePassCode | string | null | no | One premise pass code for this company. Guest templates show it only when they include the pass code variable. Empty clears it. |
| calendarStyle | enum: "list" | "calendar" | no | Booking flow calendar presentation |
| hideUnavailableTimeslots | boolean | no | Hide unavailable timeslots instead of showing them as full |
| bookingReminderEnabled | boolean | no | Send the default pre-booking reminder |
| bookingReminderLeadHours | integer | no | Hours before booking start for the default reminder |
| sameDayReminderEnabled | boolean | no | Send an additional same-day reminder before booking start |
| sameDayReminderLeadHours | integer | no | Hours before booking start for the same-day reminder |
| bookingReminderLeadHoursList | array<integer> | no | Up to four reminder leads in hours. Replaces the legacy pair when set. Empty turns customer reminders off. Leads must be at least 2 hours apart. |
| allowMemberCancellation | boolean | no | Allow members to cancel bookings from the customer portal |
| memberReschedulingMode | enum: "disabled" | "merchant_only" | "member" | no | Choose whether rescheduling is disabled, merchant-only, or available to members |
| memberCancellationCutoffHours | integer | null | no | Hours before booking start when member cancellation closes, or null for no cutoff |
| minimumAdvanceBookingMinutes | integer | null | no | Minutes before slot start when customer booking closes. null/0 = no cutoff; set > 0 to require advance notice |
| requireBookingConfirmation | boolean | no | Require merchant confirmation before bookings are confirmed |
list_tickets
List support tickets with optional filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "open" | "in_progress" | "waiting_customer" | "resolved" | "closed" | no | Filter by status |
| priority | enum: "critical" | "high" | "medium" | "low" | no | Filter by priority |
| category | enum: "bug" | "feature_request" | "account" | "billing" | "general" | "other" | no | Filter by category |
| accountId | string | no | Filter by CRM account ID |
| search | string | no | Search by subject |
| limit | number | no | Max results (default 20) |
get_ticket_stats
Get ticket counts grouped by status.
No parameters.
create_ticket
Create a support ticket for a member issue.
| Parameter | Type | Required | Description |
|---|---|---|---|
| subject | string | yes | Ticket subject/title |
| description | string | no | Detailed description of the issue |
| category | enum: "bug" | "feature_request" | "account" | "billing" | "general" | "other" | no | Ticket category |
| priority | enum: "critical" | "high" | "medium" | "low" | no | Ticket priority |
| source | enum: "portal" | "email" | "phone" | "walk_in" | "api" | "mobile_app" | no | Where the ticket originated |
| accountId | string | no | Member/account ID this ticket is about |
| contactName | string | no | Contact name if no account ID |
| contactEmail | string | no | Contact email if no account ID |
| contactPhone | string | no | Contact phone if no account ID |
update_ticket_status
Update the status of an existing support ticket.
| Parameter | Type | Required | Description |
|---|---|---|---|
| ticketId | string | yes | The ticket ID to update |
| status | enum: "open" | "in_progress" | "waiting_customer" | "resolved" | "closed" | yes | New status |
list_surveys
List surveys with optional status/search filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "draft" | "published" | "closed" | "archived" | no | Filter by survey status |
| search | string | no | Search survey title or description |
| limit | number | no | Max results (default 20) |
create_survey
Create a survey with custom question blocks. Publish it later or set status to published for immediate portal access.
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | yes | Survey title |
| description | string | no | Optional survey description |
| slug | string | no | Optional URL slug; generated from title when omitted |
| status | enum: "draft" | "published" | "closed" | "archived" | no | Initial status |
| visibility | enum: "public" | "members_only" | "token_only" | "private" | no | Who can access the survey |
| questionBlocks | array<object> | yes | Ordered survey question blocks |
| settings | object | no | Survey settings such as allowMultipleResponses, collectEmail, collectIpAddress, requireAuthentication, showProgress, successMessage |
| openAt | string | no | Optional ISO datetime when the survey opens |
| closeAt | string | no | Optional ISO datetime when the survey closes |
get_survey
Get survey detail, including blocks, publishing status, visibility, settings, and response count.
| Parameter | Type | Required | Description |
|---|---|---|---|
| surveyId | string | yes | Survey ID |
update_survey
Update a survey draft or publishing configuration. Use questionBlocks to replace the ordered form block list.
| Parameter | Type | Required | Description |
|---|---|---|---|
| surveyId | string | yes | Survey ID |
| title | string | no | Survey title |
| description | string | null | no | Survey description |
| slug | string | no | URL slug |
| status | enum: "draft" | "published" | "closed" | "archived" | no | Survey status |
| visibility | enum: "public" | "members_only" | "token_only" | "private" | no | Survey access mode |
| questionBlocks | array<object> | no | Ordered survey question blocks |
| settings | object | no | Survey settings such as allowMultipleResponses, collectEmail, collectIpAddress, requireAuthentication, showProgress, successMessage |
| openAt | string | null | no | Optional ISO datetime when the survey opens |
| closeAt | string | null | no | Optional ISO datetime when the survey closes |
archive_survey
Archive a survey and remove it from active survey lists.
| Parameter | Type | Required | Description |
|---|---|---|---|
| surveyId | string | yes | Survey ID to archive |
get_survey_stats
Get response and invitation metrics for a survey overview dashboard.
| Parameter | Type | Required | Description |
|---|---|---|---|
| surveyId | string | yes | Survey ID |
get_survey_responses
List responses for a survey.
| Parameter | Type | Required | Description |
|---|---|---|---|
| surveyId | string | yes | Survey ID |
| limit | number | no | Max responses (default 50) |
list_survey_invitations
List survey invitation history without exposing token hashes or old invitation tokens.
| Parameter | Type | Required | Description |
|---|---|---|---|
| surveyId | string | yes | Survey ID |
| limit | number | no | Max invitations (default 50) |
create_survey_invitation
Create a token-auth survey invitation for a specific member/account or contact.
| Parameter | Type | Required | Description |
|---|---|---|---|
| surveyId | string | yes | Survey ID |
| accountId | string | no | CRM account ID to invite |
| contactId | string | no | Contact ID to invite |
| recipientEmail | string | no | Recipient email for link tracking |
| recipientPhone | string | no | Recipient phone for link tracking |
| recipientName | string | no | Recipient display name for link tracking |
| channel | string | no | Intended channel, e.g. email, sms, whatsapp, link |
| expiresAt | string | no | Optional invitation expiry ISO datetime |
| metadata | object | no | Optional invitation metadata |
list_survey_workflows
List automation workflows attached to a survey.
| Parameter | Type | Required | Description |
|---|---|---|---|
| surveyId | string | yes | Survey ID |
upsert_survey_workflow
Create or update a survey automation workflow, usually triggered by survey_response_submitted.
| Parameter | Type | Required | Description |
|---|---|---|---|
| surveyId | string | yes | Survey ID |
| workflowId | string | no | Existing workflow ID when updating |
| name | string | yes | Workflow name |
| status | enum: "draft" | "active" | "disabled" | no | Workflow status |
| trigger | string | no | Trigger name, default from graph.trigger |
| graph | object | yes | Workflow graph definition |
list_deals
List CRM deals (sales pipeline) with optional filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | number | no | Page number (default 1) |
| limit | number | no | Items per page (default 20) |
| search | string | no | Search by name or description |
| accountId | string | no | Filter by account |
| stage | string | no | Filter by stage |
| dealType | string | no | Filter by deal type |
get_deal
Get detailed CRM deal information by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| dealId | string | yes | The deal ID |
create_deal
Create a CRM sales pipeline deal, optionally linked to a customer account and contact.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Deal name |
| accountId | string | null | no | Linked CRM account ID |
| contactId | string | null | no | Linked contact ID |
| amount | number | null | no | Deal amount |
| closingDate | string | null | no | Expected closing date |
| stage | string | null | no | Pipeline stage |
| probability | string | null | no | Win probability, e.g. 25 |
| dealType | string | null | no | Deal type/category |
| description | string | null | no | Deal notes or description |
| ownerId | string | null | no | Owner user/team member ID |
update_deal
Update a CRM deal. Pass only fields to change; use null for nullable links/fields to clear them.
| Parameter | Type | Required | Description |
|---|---|---|---|
| dealId | string | yes | The deal ID |
| name | string | no | Deal name |
| accountId | string | null | no | Linked CRM account ID, or null to clear |
| contactId | string | null | no | Linked contact ID, or null to clear |
| amount | number | null | no | Deal amount, or null to clear |
| closingDate | string | null | no | Expected closing date, or null to clear |
| stage | string | null | no | Pipeline stage, or null to clear |
| probability | string | null | no | Win probability, or null to clear |
| dealType | string | null | no | Deal type/category, or null to clear |
| description | string | null | no | Deal notes or description, or null to clear |
| ownerId | string | null | no | Owner user/team member ID, or null to clear |
delete_deal
Soft-delete a CRM deal from the sales pipeline.
| Parameter | Type | Required | Description |
|---|---|---|---|
| dealId | string | yes | The deal ID to delete |
update_deal_stage
Move a deal to a different pipeline stage.
| Parameter | Type | Required | Description |
|---|---|---|---|
| dealId | string | yes | The deal ID |
| stage | enum: "discovery" | "qualified" | "proposal" | "negotiation" | "won" | "lost" | "lead" | "new" … | yes | New pipeline stage. "lead", "new" and "open" are accepted aliases of "discovery". |
| probability | string | no | Optional win probability (percent string) |
| lostReason | string | no | Required when moving to lost |
mark_deal_won
Mark a CRM deal as won and set close date.
| Parameter | Type | Required | Description |
|---|---|---|---|
| dealId | string | yes | The deal ID |
| closingDate | string | no | Optional close date (YYYY-MM-DD) |
mark_deal_lost
Mark a CRM deal as lost. Requires a lost reason.
| Parameter | Type | Required | Description |
|---|---|---|---|
| dealId | string | yes | The deal ID |
| reason | string | yes | Why the deal was lost |
convert_lead
Convert an account: qualify its open lead (creating one if needed) and link exactly one pipeline deal. Also promotes lifeStage lead -> active. Safe to repeat — a second call lands on the same lead and deal. Works on accounts that are already active.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | yes | Lead account ID |
| createDeal | boolean | no | Deprecated and ignored — a convert always links a deal |
| dealName | string | no | Optional deal name |
| dealAmount | number | no | Optional deal amount |
| dealStage | enum: "discovery" | "qualified" | "proposal" | "negotiation" | "won" | "lost" | "lead" | "new" … | no | Optional initial deal stage ("lead" is an alias of "discovery") |
| dealClosingDate | string | no | Optional deal close date |
| lifeStage | enum: "active" | "vip" | no | Lifecycle after convert (default active) |
list_contacts
List contacts (people linked to CRM accounts), optionally filtered by account or search.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | no | Filter by account |
| search | string | no | Match name, email, or phone |
| limit | number | no | Max results (default 20) |
get_contact
Fetch a single contact by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| contactId | string | yes | The contact ID |
create_contact
Create a contact on an existing CRM account.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | yes | Owning account ID |
| name | string | yes | Contact name |
| string | no | ||
| phone | string | no | Phone |
| jobTitle | string | no | Job title |
| isPrimary | boolean | no | Mark as primary contact |
update_contact
Update fields on an existing contact.
| Parameter | Type | Required | Description |
|---|---|---|---|
| contactId | string | yes | The contact ID |
| name | string | no | Name |
| string | no | Email address | |
| phone | string | no | Phone number |
| jobTitle | string | no | Job title |
| isPrimary | boolean | no | Mark as the primary contact |
set_primary_contact
Set a contact as the primary contact for its CRM account and demote other contacts on that account.
| Parameter | Type | Required | Description |
|---|---|---|---|
| contactId | string | yes | The contact ID to make primary |
delete_contact
Delete a secondary contact. Primary contacts are protected; set another primary contact or delete the account instead.
| Parameter | Type | Required | Description |
|---|---|---|---|
| contactId | string | yes | The contact ID to delete |
list_custom_fields
List custom field definitions for CRM entities such as account, contact, deal, or booking.
| Parameter | Type | Required | Description |
|---|---|---|---|
| entityType | enum: "account" | "contact" | "deal" | "booking" | "ticket" | "product" | "post" | yes | Entity type the custom fields belong to |
get_custom_field
Get a custom field definition by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| definitionId | string | yes | Custom field definition ID |
create_custom_field
Create a custom field definition for CRM entities. Use options for select or multiselect fields.
| Parameter | Type | Required | Description |
|---|---|---|---|
| entityType | enum: "account" | "contact" | "deal" | "booking" | "ticket" | "product" | "post" | yes | Entity type, e.g. account, contact, deal, booking |
| fieldName | string | yes | Stable machine name, e.g. preferred_branch |
| fieldLabel | string | yes | Human-readable label, e.g. Preferred branch |
| fieldType | enum: "text" | "number" | "date" | "select" | "multiselect" | "boolean" | "url" | "email" … | yes | Field type |
| options | array<string> | no | Allowed values for select/multiselect fields |
| isRequired | boolean | no | Whether this field is required |
| sortOrder | number | no | Display order |
update_custom_field
Update a custom field definition label, type, options, required flag, or sort order.
| Parameter | Type | Required | Description |
|---|---|---|---|
| definitionId | string | yes | Custom field definition ID |
| fieldLabel | string | no | Human-readable label |
| fieldType | enum: "text" | "number" | "date" | "select" | "multiselect" | "boolean" | "url" | "email" … | no | Field type |
| options | array<string> | no | Allowed values for select/multiselect fields |
| isRequired | boolean | no | Whether this field is required |
| sortOrder | number | no | Display order |
delete_custom_field
Delete a custom field definition and its stored values.
| Parameter | Type | Required | Description |
|---|---|---|---|
| definitionId | string | yes | Custom field definition ID |
get_custom_field_values
Get custom field values for a CRM entity such as an account, contact, deal, or booking.
| Parameter | Type | Required | Description |
|---|---|---|---|
| entityType | enum: "account" | "contact" | "deal" | "booking" | "ticket" | "product" | "post" | yes | Entity type |
| entityId | string | yes | Entity ID |
set_custom_field_values
Set or clear custom field values for a CRM entity. Values are stored as strings; pass null to clear a value.
| Parameter | Type | Required | Description |
|---|---|---|---|
| entityType | enum: "account" | "contact" | "deal" | "booking" | "ticket" | "product" | "post" | yes | Entity type |
| entityId | string | yes | Entity ID |
| values | array<object> | yes | Values to upsert |
list_tasks
List tasks with optional status, assignee, and account filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "todo" | "in_progress" | "blocked" | "done" | no | Filter by task status |
| assigneeId | string | no | Filter by assignee company_members.id |
| accountId | string | no | Filter by related CRM account |
| limit | number | no | Max results (default 20) |
get_task
Get detailed task information by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| taskId | string | yes | The task ID |
create_task
Create a task. Optionally link to a CRM account or assign to a team member.
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | yes | Task title |
| description | string | no | Description |
| priority | enum: "low" | "medium" | "high" | "urgent" | no | Priority |
| status | enum: "todo" | "in_progress" | "blocked" | "done" | no | Status filter |
| assigneeId | string | no | company_members.id |
| accountId | string | no | Linked CRM account |
| dueDate | string | no | ISO date (YYYY-MM-DD) |
update_task
Update a task (status, priority, assignee, due date, completion).
| Parameter | Type | Required | Description |
|---|---|---|---|
| taskId | string | yes | The task ID |
| status | enum: "todo" | "in_progress" | "blocked" | "done" | no | Status filter |
| priority | enum: "low" | "medium" | "high" | "urgent" | no | Priority |
| title | string | no | Title |
| description | string | no | Description |
| assigneeId | string | no | Assignee company_members.id (team member ID, not user ID) |
| dueDate | string | no | Due date (ISO 8601) |
delete_task
Soft-delete a CRM task.
| Parameter | Type | Required | Description |
|---|---|---|---|
| taskId | string | yes | The task ID to delete |
search_crm
Search across CRM accounts and contacts by name, email, or phone.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search string |
| limit | number | no | Max per entity (default 10) |
list_invoices
List invoices with optional filters. Use status "OVERDUE" to find unpaid invoices past due date.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "DRAFT" | "SENT" | "PARTIALLY_PAID" | "PAID" | "OVERDUE" | "VOID" | "CANCELLED" | no | Filter by invoice status |
| search | string | no | Search by invoice number, account name, email, or phone |
| sort | string | no | Sort column |
| order | enum: "asc" | "desc" | no | Sort order |
| limit | number | no | Max results (default 20) |
get_invoice
Fetch a single invoice with line items, payment history, and customer detail.
| Parameter | Type | Required | Description |
|---|---|---|---|
| invoiceId | string | yes | Invoice ID |
create_invoice
Create a new invoice for a customer. Optionally include line items inline. Returns the new invoiceId.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | yes | Customer accountId (CRM account) |
| currency | string | no | ISO currency code (defaults to company default) |
| dueDate | string | no | Due date (ISO 8601 date) |
| notes | string | no | Free-form notes shown on the invoice |
| lineItems | array<object> | no | Line items to bill — totals are computed server-side |
record_invoice_payment
Record a manual payment against an invoice (cash, bank transfer, cheque, card terminal). Updates invoice status to PARTIAL or PAID based on the running total.
| Parameter | Type | Required | Description |
|---|---|---|---|
| invoiceId | string | yes | Invoice ID to record payment against |
| amount | string | yes | Payment amount as decimal string, e.g. "100.00" |
| method | enum: "cash" | "bank_transfer" | "cheque" | "card" | "stripe" | "qfpay" | "eftpay" | "yedpay" … | yes | Payment method |
| reference | string | no | External reference (cheque number, bank transfer ID) |
| note | string | no | Internal note about this payment |
mark_invoice_sent
Mark an invoice as sent to the customer (transitions DRAFT → OPEN). Use after delivering the invoice via email or share link. Idempotent.
| Parameter | Type | Required | Description |
|---|---|---|---|
| invoiceId | string | yes | Invoice ID |
void_invoice
Void an invoice. Destructive — invoice can no longer be paid or edited; existing payments are preserved as history. Cannot void invoices that are already PAID or VOIDED.
| Parameter | Type | Required | Description |
|---|---|---|---|
| invoiceId | string | yes | Invoice ID to void |
delete_invoice
Delete a DRAFT invoice. Only invoices that have never been sent can be deleted; otherwise use void_invoice.
| Parameter | Type | Required | Description |
|---|---|---|---|
| invoiceId | string | yes | Invoice ID to delete |
restore_invoice
Restore a previously deleted DRAFT invoice.
| Parameter | Type | Required | Description |
|---|---|---|---|
| invoiceId | string | yes | Invoice ID to restore |
get_invoice_stats
Outstanding totals, overdue counts, and revenue this period. Used by the weekly-snapshot playbook.
No parameters.
list_event_registrations
List registrations for an event in the active company, including CRM account IDs for campaign exclusions.
| Parameter | Type | Required | Description |
|---|---|---|---|
| eventId | string | yes | Event ID |
| statuses | array<enum: "pending" | "confirmed" | "paid" | "cancelled"> | no | Registration statuses to include. Omit to include all statuses. |
| limit | integer | no | Max results (default 50, maximum 100) |
| offset | integer | no | Number of matching registrations to skip (default 0) |
get_event_campaign_exclusions
Resolve pending, confirmed, and paid event registrations into unique CRM account IDs for campaign exclusions. Pass accountIds to audienceExclusions only when ready=true; cancelled registrations are omitted and unmatched guests make the result not ready.
| Parameter | Type | Required | Description |
|---|---|---|---|
| eventId | string | yes | Event ID |
list_events
List events for the active company with optional status and search filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "DRAFT" | "PUBLISHED" | "CANCELLED" | "COMPLETED" | no | Filter by event status |
| search | string | no | Search event title or venue |
| limit | integer | no | Max results (default 20) |
| offset | integer | no | Offset (default 0) |
create_event
Create a new event (initially DRAFT unless status is specified) for the active company.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Event title |
| description | string | no | Event description or introduction |
| startDate | string | no | ISO start date/time |
| endDate | string | no | ISO end date/time |
| location | string | no | Venue name |
| venueAddress | string | no | Street address of the venue |
| ticketPrice | number | no | Ticket price in major currency units (0 for free) |
| visibility | enum: "public" | "members_only" | no | Event visibility |
| deliveryMode | enum: "in_person" | "online" | "hybrid" | no | Delivery format |
check_in_event_attendee
Mark an event attendee registration as present or absent for a specific event session.
| Parameter | Type | Required | Description |
|---|---|---|---|
| eventId | string | yes | Event ID |
| sessionId | string | yes | Event session ID |
| registrationId | string | yes | Event registration ID |
| status | enum: "present" | "absent" | no | Attendance status (default: present) |
| reason | string | no | Optional note or reason |
list_tutor_courses
List structured courses and multi-session classes in the active company.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "draft" | "published" | "archived" | no | Filter by course status |
| limit | integer | no | Max results (default 25) |
| offset | integer | no | Offset (default 0) |
get_tutor_course
Retrieve full details, sections, and enrollment summary for a structured course.
| Parameter | Type | Required | Description |
|---|---|---|---|
| courseId | string | yes | Course ID |
create_tutor_course
Create a new draft structured course or class curriculum.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Course title |
| description | string | no | Course syllabus or overview |
| level | string | no | Skill or grade level label |
| requiresLevelApproval | boolean | no | Require instructor approval before enrollment |
| startsOn | string | no | Course start date (YYYY-MM-DD) |
| endsOn | string | no | Course end date (YYYY-MM-DD) |
list_subscriptions
List member subscriptions. Filter by status to find active, cancelled, or past-due subscriptions.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "trialing" | "active" | "past_due" | "cancelled" | no | Filter by subscription status |
| limit | number | no | Max results (default 20) |
get_subscription
Fetch a single subscription with customer, tier, billing cycle, and renewal info.
| Parameter | Type | Required | Description |
|---|---|---|---|
| subscriptionId | string | yes | Subscription ID |
create_subscription
Create a manual, non-renewing subscription record for a member. Use a subscription action link for provider-backed recurring billing.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | yes | Customer accountId |
| tierId | string | no | Membership tier ID — if set, amount/currency default from the tier |
| billingCycle | enum: "monthly" | "quarterly" | "yearly" | "one_off" | no | Billing cycle (default monthly) |
| amount | number | no | Override amount per cycle (otherwise derived from tier) |
| currency | string | no | ISO currency code (otherwise derived from tier or company default) |
| autoRenew | boolean | no | Manual records cannot auto-renew |
| currentPeriodStart | string | no | Period start (ISO 8601). Defaults to now. |
| currentPeriodEnd | string | no | Period end (ISO 8601). Defaults to start + cycle. |
pause_subscription
Mark an active manual subscription as past_due. Provider-backed subscriptions cannot be paused here — cancel them or manage them at the payment provider.
| Parameter | Type | Required | Description |
|---|---|---|---|
| subscriptionId | string | yes | Subscription ID |
resume_subscription
Resume a paused manual subscription back to active. Provider-backed subscriptions must be managed at the payment provider.
| Parameter | Type | Required | Description |
|---|---|---|---|
| subscriptionId | string | yes | Subscription ID |
cancel_subscription
Cancel a subscription. Destructive. Manual records are marked cancelled. Provider-backed records are cancelled with the payment provider — Stripe is scheduled to stop at the period end and QFPay is cancelled at the gateway — so auto-renew turns off and paid access continues until the period ends. If the provider is unreachable or unsupported the call fails and the subscription is left unchanged.
| Parameter | Type | Required | Description |
|---|---|---|---|
| subscriptionId | string | yes | Subscription ID |
list_campaigns
List marketing campaigns (email, SMS, WhatsApp, or push) with delivery stats. Use the returned IDs when excluding recipients of previous campaigns.
| Parameter | Type | Required | Description |
|---|---|---|---|
| channel | enum: "sms" | "email" | "whatsapp" | "push" | no | Filter by channel |
| search | string | no | Search by campaign name |
| sort | string | no | Sort column |
| order | enum: "asc" | "desc" | no | Sort order |
| limit | number | no | Max results (default 20) |
get_campaign
Get a campaign by ID, including its recipient source, audience exclusions, channel configuration, and delivery stats.
| Parameter | Type | Required | Description |
|---|---|---|---|
| campaignId | string | yes | Campaign ID |
create_campaign
Create an email, SMS, WhatsApp, or push campaign in DRAFT. audienceExclusions can omit specific account IDs and recipients of previous campaign IDs. For email channelConfig, use subject + htmlBody + optional plainTextBody. recipientSource="list" is accepted as an alias for "individual".
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Campaign name (internal) |
| channel | enum: "sms" | "email" | "whatsapp" | "push" | yes | email | sms | whatsapp | push |
| status | enum: "DRAFT" | "SCHEDULED" | no | Default DRAFT |
| recipientSource | enum: "all" | "segment" | "individual" | "csv" | "list" | no | Where to source recipients from. "list" is normalized to "individual". |
| segmentId | string | null | no | Required if recipientSource="segment" |
| recipientIds | array<string> | no | Required if recipientSource="individual", "list", or "csv"; values are account IDs |
| audienceExclusions | object | no | Optional exclusions: accountIds contains specific customer account IDs; campaignIds contains previous campaign IDs whose accepted recipients must be omitted. A recipient matching any rule is excluded. |
| channelConfig | object | no | Channel-specific config: subject + htmlBody + optional plainTextBody for email; body for sms; approved templateId plus required bodyParameters, headerTextParameter, or headerMediaUrl and optional whatsappConnectionId for whatsapp. Legacy email html is normalized to htmlBody. |
| scheduledAt | string | null | no | ISO datetime for scheduled send (status must be SCHEDULED) |
update_campaign
Update an existing campaign, including audience exclusions. Channel cannot be changed after creation. Pass only fields to change.
| Parameter | Type | Required | Description |
|---|---|---|---|
| campaignId | string | yes | Campaign ID |
| name | string | no | Name |
| status | enum: "DRAFT" | "SCHEDULED" | "PAUSED" | "CANCELLED" | no | New campaign status |
| recipientSource | enum: "all" | "segment" | "individual" | "csv" | "list" | no | Recipient source: all | segment | individual | csv | list |
| segmentId | string | null | no | Segment ID |
| recipientIds | array<string> | no | Explicit customer account IDs |
| audienceExclusions | object | no | Optional exclusions: accountIds contains specific customer account IDs; campaignIds contains previous campaign IDs whose accepted recipients must be omitted. Pass empty arrays to clear exclusions. |
| channelConfig | object | no | For email, use subject + htmlBody + optional plainTextBody. Legacy html is normalized to htmlBody. |
| scheduledAt | string | null | no | Scheduled timestamp (ISO 8601) |
delete_campaign
Delete a campaign. Only allowed in DRAFT status; sent campaigns are kept for audit history.
| Parameter | Type | Required | Description |
|---|---|---|---|
| campaignId | string | yes | Campaign ID |
restore_campaign
Restore a previously deleted campaign.
| Parameter | Type | Required | Description |
|---|---|---|---|
| campaignId | string | yes | Campaign ID |
undo_campaign_send
Undo a campaign send during its one-minute safety buffer. Use immediately when the merchant says to stop or undo a submitted campaign.
| Parameter | Type | Required | Description |
|---|---|---|---|
| campaignId | string | yes | Buffered campaign ID to return to its prior draft state |
validate_campaign
Validate a campaign before sending. Resolves contactable recipient count and previews the final email subject/body without sending.
| Parameter | Type | Required | Description |
|---|---|---|---|
| campaignId | string | yes | Campaign ID to validate |
list_notification_logs
List notification delivery logs for the current company. Recipients are masked by default for incident-response safety.
| Parameter | Type | Required | Description |
|---|---|---|---|
| channel | enum: "email" | "sms" | "whatsapp" | "push" | no | Notification channel filter |
| eventType | enum: "account_created" | "account_updated" | "booking_created" | "booking_confirmed" | "booking_checked_in" | "booking_cancelled" | "booking_completed" | "booking_reminder" … | no | Event type filter |
| status | enum: "pending" | "retrying" | "sent" | "delivered" | "failed" | "skipped" | no | Status filter |
| recipient | string | no | Substring search on recipient |
| entityId | string | no | Entity ID filter |
| dateFrom | string | no | ISO timestamp lower bound |
| dateTo | string | no | ISO timestamp upper bound |
| limit | number | no | Max results (default 50, max 100) |
list_conversations
List messaging conversations across WhatsApp, Messenger, Instagram, Threads, SMS, email, and other enabled channels. Threads items are public conversations. Shows unread counts and last message time.
| Parameter | Type | Required | Description |
|---|---|---|---|
| channel | enum: "whatsapp" | "sms" | "email" | "messenger" | "instagram" | "threads" | "web_form" | no | Filter by channel |
| status | enum: "active" | "archived" | "closed" | no | Filter by conversation status |
| search | string | no | Search by contact name, phone, or email |
| assignee | enum: "mine" | "unassigned" | no | "mine": conversations assigned to you. "unassigned": no assignee. Cannot be combined with assignedToId. |
| assignedToId | string | no | Only conversations assigned to this company member ID (companyMembers.id) |
| page | number | no | Page number (default 1) |
| limit | number | no | Page size (default 20, max 50) |
list_audit_logs
List recent audit log entries for this company. Filter by action, resource, resourceId, user, source, outcome, destructive flag, and created date range.
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | integer | no | Maximum rows to return |
| action | string | no | Exact tool/action name, e.g. delete_campaign |
| resource | string | no | Resource name, e.g. campaigns |
| resourceId | string | no | Resource ID |
| userId | string | no | Actor user ID |
| source | enum: "mcp" | "ai_agent" | "merchant_api" | "payment_webhook" | "manual_refresh" | "qfpay_reconciliation" | "hold_expiry_sweeper" | no | Audit source, e.g. mcp, ai_agent, payment_webhook, merchant_api |
| outcome | enum: "success" | "failed" | "blocked" | no | Execution outcome |
| destructive | boolean | no | Whether the audited tool was destructive |
| createdAfter | string | no | ISO timestamp lower bound |
| createdBefore | string | no | ISO timestamp upper bound |
search_audit_logs
Search audit logs by free text across action, resource, resource ID, changes JSON, and metadata JSON.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Text to search for |
| limit | integer | no | Maximum rows to return |
| createdAfter | string | no | ISO timestamp lower bound |
| createdBefore | string | no | ISO timestamp upper bound |
get_audit_log
Fetch a single audit log entry by ID, including before/after snapshots when available.
| Parameter | Type | Required | Description |
|---|---|---|---|
| auditLogId | string | yes | Audit log ID |
revert_audit_action
Revert an audited action by restoring the captured before snapshot. Only works for allowlisted target tables with full before/after audit snapshots.
| Parameter | Type | Required | Description |
|---|---|---|---|
| auditLogId | string | yes | Audit log ID to revert |
| reason | string | no | Reason for reverting this action |
clone
Duplicate an existing record (product, tier, campaign, post, service package, promotion, gift offer). Creates a copy in DRAFT status with "(Copy)" appended to the name.
| Parameter | Type | Required | Description |
|---|---|---|---|
| entityType | enum: "product" | "tier" | "campaign" | "post" | "service_package" | "promotion" | "gift_offer" | yes | Type of entity to clone |
| entityId | string | yes | ID of the entity to clone |
| name | string | no | Override the name of the cloned entity (defaults to "Original Name (Copy)") |
list_notes
List notes attached to a member/account, booking, or ticket.
| Parameter | Type | Required | Description |
|---|---|---|---|
| entityType | enum: "account" | "booking" | "ticket" | "invoice" | yes | Type of entity the notes are on |
| entityId | string | yes | The entity ID |
| limit | number | no | Max results (default 10) |
create_note
Add a note to a member/account, booking, ticket, or invoice.
| Parameter | Type | Required | Description |
|---|---|---|---|
| entityType | enum: "account" | "booking" | "ticket" | "invoice" | yes | Type of entity |
| entityId | string | yes | The entity ID |
| body | string | yes | Note content |
| isPinned | boolean | no | Pin this note to the top |
confirm_booking
Confirm a pending booking.
| Parameter | Type | Required | Description |
|---|---|---|---|
| bookingId | string | yes | The booking ID to confirm |
cancel_booking
Cancel a booking and create a durable refund receipt. Uses the merchant refund setting unless refundMethod is provided.
| Parameter | Type | Required | Description |
|---|---|---|---|
| bookingId | string | yes | The booking ID to cancel |
| reason | string | no | Cancellation reason |
| refundMethod | enum: "manual" | "account_credit" | no | Refund cash manually or convert refundable cash to member credit |
| idempotencyKey | string | yes | Unique key for this cancellation attempt; reuse it only when retrying the same request |
complete_booking
Mark a booking as completed. Triggers commission calculation if configured.
| Parameter | Type | Required | Description |
|---|---|---|---|
| bookingId | string | yes | The booking ID to complete |
mark_no_show
Mark a booking as no-show when the customer did not attend.
| Parameter | Type | Required | Description |
|---|---|---|---|
| bookingId | string | yes | The booking ID to mark as no-show |
reschedule_booking
Move or reassign a single-service booking to a new date, time, staff member, resource or schedule slot. Multi-service appointments must be handled in the merchant dashboard. Runs conflict, capacity and rebooking-policy checks, enforces actor permissions and outlet access, syncs the booking calendar, and returns the updated booking.
| Parameter | Type | Required | Description |
|---|---|---|---|
| bookingId | string | yes | The booking ID to reschedule |
| bookingDate | string | no | New date in YYYY-MM-DD format |
| startTime | string | no | New start time in HH:MM format |
| endTime | string | no | New end time in HH:MM format |
| scheduleId | string | no | Target schedule slot ID when moving between schedule windows |
| staffId | string | null | no | Reassign to the staff userId returned by list_staff; null clears the assignment |
| resourceId | string | null | no | Assign this resource ID; null clears the assignment |
| notes | string | null | no | Replace the booking notes |
list_promotions
List promotion/coupon codes with optional status filter.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "DRAFT" | "ACTIVE" | "PAUSED" | "EXPIRED" | no | Filter by status |
| search | string | no | Search by name |
| limit | number | no | Max results (default 20) |
get_promotion
Get details of a specific promotion/coupon code.
| Parameter | Type | Required | Description |
|---|---|---|---|
| promotionId | string | yes | The promotion ID |
create_promotion
Create a promotion / discount code. type=percentage or fixed_amount; value is the discount as a string ("10" = 10% or 10 currency units). Codes are uppercased server-side.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Promotion name (internal) |
| code | string | yes | Coupon code customers enter at checkout (auto-uppercased) |
| value | string | yes | Discount value as decimal string |
| type | enum: "percentage" | "fixed_amount" | no | Default percentage |
| description | string | no | Description |
| maximumDiscount | string | null | no | Cap on percentage discounts, decimal string |
| status | enum: "active" | "inactive" | "expired" | no | Default active |
| startsAt | string | null | no | ISO datetime — when the promo becomes valid |
| endsAt | string | null | no | ISO datetime — when the promo expires |
| usageLimitTotal | number | null | no | Max total uses across all customers |
| usageLimitPerCustomer | number | null | no | Max uses per single customer |
| minimumAmount | string | null | no | Minimum order amount required, decimal string |
| minimumQuantity | number | null | no | Minimum item count required |
| bookingEnabled | boolean | no | Allow on bookings |
| eventEnabled | boolean | no | Allow on event registrations |
| onlineEnabled | boolean | no | Allow on online shop orders |
| posEnabled | boolean | no | Allow at POS |
update_promotion
Update an existing promotion. Pass only the fields you want to change.
| Parameter | Type | Required | Description |
|---|---|---|---|
| promotionId | string | yes | Promotion ID |
| name | string | no | Name |
| code | string | no | Promotion code |
| value | string | no | Discount value (numeric or decimal string) |
| type | enum: "percentage" | "fixed_amount" | no | Type |
| status | enum: "active" | "inactive" | "expired" | no | Status filter |
| startsAt | string | null | no | Start timestamp (ISO 8601) |
| endsAt | string | null | no | End timestamp (ISO 8601) |
| usageLimitTotal | number | null | no | Total usage limit across all customers |
| usageLimitPerCustomer | number | null | no | Usage limit per customer |
delete_promotion
Delete a promotion. Past usage records are preserved.
| Parameter | Type | Required | Description |
|---|---|---|---|
| promotionId | string | yes | Promotion ID |
restore_promotion
Restore a previously deleted promotion.
| Parameter | Type | Required | Description |
|---|---|---|---|
| promotionId | string | yes | Promotion ID |
validate_promotion
Check if a promotion code is valid for a given order. Returns isValid, discount amount, and an error code/message if invalid. Use before applying to a checkout.
| Parameter | Type | Required | Description |
|---|---|---|---|
| promotionCode | string | yes | The code customer entered |
| channel | enum: "booking" | "event" | "online" | "pos" | yes | Where the promo is being applied |
| amount | number | yes | Order subtotal in major units (dollars, not cents) |
| accountId | string | no | Customer account ID — used for per-customer usage limits |
list_reward_schemes
List loyalty reward schemes (points/stamps programs) configured for this business.
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | string | no | Search by name |
| limit | number | no | Max results (default 20) |
list_staff
List staff/team members in the business.
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | number | no | Max results (default 20) |
list_resources
List booking resources (rooms, equipment, etc.).
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | number | no | Max results (default 20) |
list_service_packages
List service packages/prepaid session bundles with optional search, status, sorting, and pagination.
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | string | no | Search package name |
| status | enum: "ACTIVE" | "INACTIVE" | no | Filter by package status |
| sort | string | no | Sort column: name, price, or createdAt |
| order | enum: "asc" | "desc" | no | Sort order |
| limit | number | no | Max results (default 20) |
get_service_package
Get service package detail including applicability and selected booking service/event items.
| Parameter | Type | Required | Description |
|---|---|---|---|
| packageId | string | yes | Service package ID |
create_service_package
Create a service package/prepaid session bundle. Use applicableType=SELECTED with applicableItems to limit the package to specific booking services or events.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Package name |
| description | string | no | Description |
| sessionCount | integer | yes | Number of included sessions |
| price | number | yes | Package price |
| validDays | integer | yes | Validity window after purchase, in days |
| applicableType | enum: "ALL" | "ALL_BOOKINGS" | "ALL_EVENTS" | "SELECTED" | no | Default ALL |
| status | enum: "ACTIVE" | "INACTIVE" | no | Default ACTIVE |
| applicableItems | array<object> | no | Items used when applicableType=SELECTED |
update_service_package
Update an existing service package. Pass only the fields you want to change.
| Parameter | Type | Required | Description |
|---|---|---|---|
| packageId | string | yes | Service package ID to update |
| name | string | no | Name |
| description | string | null | no | Description |
| sessionCount | integer | no | Number of sessions in the package |
| price | number | no | Decimal string, e.g. "80.00" |
| validDays | integer | no | Validity period in days |
| applicableType | enum: "ALL" | "ALL_BOOKINGS" | "ALL_EVENTS" | "SELECTED" | no | What this package applies to: services | products | both |
| status | enum: "ACTIVE" | "INACTIVE" | no | Status filter |
| applicableItems | array<object> | no | Item IDs the package can be redeemed against |
delete_service_package
Delete a service package by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| packageId | string | yes | Service package ID to delete |
restore_service_package
Restore a previously deleted service package by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| packageId | string | yes | Service package ID to restore |
get_plan_status
Show the current organisation plan, subscription/payment state, enabled modules, and quota usage. Use before deciding whether an agentic operation is allowed.
No parameters.
check_plan_operation
Preflight whether an intended operation is allowed by token scopes, enabled modules, subscription state, and quota. Provide toolName, quotaCode, or moduleCode.
| Parameter | Type | Required | Description |
|---|---|---|---|
| toolName | string | no | MCP tool name to preflight, e.g. create_account |
| quotaCode | string | no | Quota code to check, e.g. contacts or mcp_calls_per_minute |
| moduleCode | string | no | Module code to check, e.g. whatsapp or crm |
| delta | integer | no | Planned usage increment. Currently quota checks are single-resource preflights. |
list_plan_options
List active FavCRM plans with prices, quotas, included modules, and whether each is the current plan.
No parameters.
create_plan_upgrade_link
Create a Stripe Checkout link for a new paid subscription, or a Stripe Billing Portal link for an existing Stripe subscription. Use only after the user explicitly asks to upgrade or fix billing.
| Parameter | Type | Required | Description |
|---|---|---|---|
| planId | string | no | Target plan ID. Use list_plan_options first if unknown. |
| planCode | string | no | Target plan code, e.g. favcrm-lite. Either planId or planCode is required. |
| billingCycle | enum: "monthly" | "yearly" | no | |
| returnUrl | string | no | Where Stripe should return after checkout/portal. Defaults to merchant billing settings. |
| confirm | boolean | no | Required true to create a Stripe-hosted payment or billing link. |
create_team_member_invite
Invite a team member to this company and return a one-time MCP accept token. The invited user must verify an email code through accept_team_invite_request and accept_team_invite_verify before membership and API key issuance.
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | yes | Invitee email address | |
| name | string | no | Optional display name for a new user |
| role | enum: "manager" | "staff" | no | Team member role to grant on acceptance |
| permissions | array<object> | no | Optional structured module permissions to attach to the company member |
| modules | array<string> | no | Optional legacy module list to attach to the company member |
| expiresInHours | integer | no | Invite lifetime in hours. Defaults to 72, max 336. |
accept_team_invite_request
Step 1 of agentic team invite acceptance. Validates an invite token and sends a 6-digit verification code to the invited email. Then call accept_team_invite_verify with the code to join and receive an MCP API key.
| Parameter | Type | Required | Description |
|---|---|---|---|
| token | string | yes | Invite token returned by create_team_member_invite or from the invite link |
accept_team_invite_verify
Step 2 of agentic team invite acceptance. Verifies the emailed code, joins the invited user to the company, and returns a one-time MCP API key for that user.
| Parameter | Type | Required | Description |
|---|---|---|---|
| token | string | yes | Invite token returned by create_team_member_invite or from the invite link |
| code | string | yes | 6-digit code from the invite email |
| name | string | no | Optional display name when creating a new user |
get_whatsapp_connection_status
Check whether WhatsApp Business is connected for this company, including WABA/phone metadata and the latest agentic connect session state.
No parameters.
create_whatsapp_connect_link
Create a short-lived browser link for WhatsApp Business Embedded Signup. The user must open the link because Meta requires a browser popup to authorize and choose the WABA/phone number.
| Parameter | Type | Required | Description |
|---|---|---|---|
| onboardingMode | enum: "cloud_api" | "coexistence" | no | Use cloud_api for a new WhatsApp Cloud API connection, or coexistence when connecting a WhatsApp Business App number. |
| ttlMinutes | integer | no | Connect link lifetime in minutes. Defaults to 30. |
list_my_companies
List all companies/organisations the current user has access to. Use this to see available orgs before switching.
No parameters.
switch_company
Issue a new MCP access token scoped to another company/organisation. This does not mutate the current MCP connection: the client must use the returned token on later /mcp requests. Platform operators should prefer explicit-company admin tools when available.
| Parameter | Type | Required | Description |
|---|---|---|---|
| companyId | string | yes | The company ID to switch to (use list_my_companies to find available IDs) |
list_posts
List CMS posts (blog posts and/or pages) with optional filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | no | Filter by post type slug (blog_post, page, or any custom type — see list_post_types). |
| status | enum: "draft" | "scheduled" | "published" | "archived" | no | Filter by status |
| search | string | no | Search by title |
| limit | number | no | Max results (default 20) |
get_post
Get detailed CMS post including content blocks, categories, and tags.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postId | string | yes | The post ID |
create_post
Create a new CMS post (blog_post, page, or any custom post type). The post type must already exist — use list_post_types to discover, create_post_type to add a new one. excerpt = plain-text summary only (auto-derived from blocks if omitted). Structured custom fields go in meta, keyed by the field schema defined with create_post_type_field.
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | yes | Post type slug (e.g. blog_post, page, treatment). Must exist in post_types for this company. |
| title | string | yes | Post title |
| slug | string | no | URL slug. Auto-generated from title if omitted; collisions get -2, -3 suffix. |
| blocks | array<any> | no | Ordered array of content blocks. Each block has { id, version, type, data } where type is one of: paragraph, heading, image, list, quote, code, divider, spacer, embed, html, youtube, file, faq, callout, gallery, cta, accordion, product, columns. Unknown types are rejected. |
| excerpt | string | no | Plain-text summary only — never JSON. Auto-derived from the first paragraph/heading block if omitted and the post type supports excerpts. |
| featuredImage | string | no | Cover image URL |
| status | enum: "draft" | "scheduled" | "published" | "archived" | no | Status (default draft) |
| visibility | enum: "public" | "private" | "members_only" | no | Visibility (default public) |
| categoryIds | array<string> | no | Category IDs (post types with supportsCategories only) |
| tagIds | array<string> | no | Tag IDs to attach to the post |
| meta | object | no | Structured custom field values, keyed by field key (see list_post_type_fields). Validated against the post type field schema. Use this for all machine-readable data — never put JSON in excerpt. |
| seoTitle | string | no | SEO title override |
| seoDescription | string | no | SEO meta description |
| parentId | string | null | no | Parent post ID for nested types (e.g. pages). |
| sortOrder | number | no | Sort order (lower = earlier) |
| publishedAt | string | null | no | ISO timestamp; required when status=scheduled. |
update_post
Update an existing CMS post (any post type). Only provided fields are changed.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postId | string | yes | The post ID |
| type | string | no | Change post type (e.g. blog_post → treatment). Slug is re-checked for uniqueness under the new type. |
| title | string | no | Post title |
| slug | string | no | URL slug (must be unique per company+type). |
| blocks | array<any> | no | Replaces the entire ordered block array. Use append_post_block / replace_post_block / remove_post_block / reorder_post_blocks for per-block edits. Each block: { id, version, type, data }. Types: paragraph, heading, image, list, quote, code, divider, spacer, embed, html, youtube, file, faq, callout,… |
| featuredImage | string | no | Cover image URL |
| status | enum: "draft" | "scheduled" | "published" | "archived" | no | Post status |
| visibility | enum: "public" | "private" | "members_only" | no | Visibility |
| excerpt | string | no | Plain-text summary only — never JSON. Omit to leave unchanged. |
| categoryIds | array<string> | no | Category IDs |
| tagIds | array<string> | no | Tag IDs to sync (replaces existing tags) |
| meta | object | no | Custom field values; merged shallowly with existing meta. Use this for structured data, not excerpt. |
| seoTitle | string | no | SEO title override |
| seoDescription | string | no | SEO description override |
| parentId | string | null | no | Parent post ID for nested types. |
| sortOrder | number | no | Sort order (lower = earlier) |
| publishedAt | string | null | no | Publish timestamp (ISO 8601) |
delete_post
Delete a CMS post by ID. Soft-deleted posts can be restored with restore_post.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postId | string | yes | The post ID |
restore_post
Restore a previously deleted CMS post.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postId | string | yes | The post ID |
list_image_models
List AI image-generation models exposed to merchants (sanitized — provider/cost details hidden). Use to pick a `modelCode` for `generate_post_cover`.
No parameters.
generate_image
Generate an AI image via kie.ai and return its public R2 URL. Use to mint reusable URLs for content blocks (image, gallery), product photos, or any field that takes an image URL — does NOT attach to a post by itself. Costs credits (see list_image_models). On poll timeout the job continues running; pass `jobId` from the response to merchant ai-media APIs to retrieve it later.
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | yes | Generation prompt |
| modelCode | string | yes | Image model code from list_image_models |
| aspectRatio | string | no | Output aspect ratio (e.g. 16:9, 1:1) |
| negativePrompt | string | no | Things to exclude from generation |
| seed | integer | no | Random seed for reproducible output |
| pollTimeoutMs | integer | no | Default 60000. |
| pollIntervalMs | integer | no | Default 3000. |
generate_post_cover
Generate an AI image and attach it as a post's featuredImage. Submits a kie.ai job, polls until complete, copies the result into the canonical post-asset R2 folder, and writes the public URL onto the post. Costs credits (see list_image_models). On poll timeout, the job continues — call attach_post_cover_from_job(postId, jobId) once it finishes to attach without paying again.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postId | string | yes | The post ID |
| prompt | string | yes | Image generation prompt |
| modelCode | string | yes | Image model code from list_image_models (e.g. nano-banana-2) |
| aspectRatio | string | no | Aspect ratio passed to the model, e.g. "16:9", "1:1" |
| negativePrompt | string | no | Things to exclude from generation |
| seed | integer | no | Random seed for reproducible output |
| pollTimeoutMs | integer | no | Default 60000. |
| pollIntervalMs | integer | no | Default 3000. |
attach_post_cover_from_job
Attach a previously generated ai-media job's output as the post's featuredImage. Use when generate_post_cover timed out (job kept running) or when reusing the same generation across multiple posts. Verifies the job belongs to your company and succeeded. Does NOT charge credits — credits were charged at submit time.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postId | string | yes | The post ID |
| jobId | string | yes | The ai-media job ID (from generate_image, generate_post_cover, or POST /v6/merchant/ai-media/generate) |
| assetIndex | integer | no | Which asset to use when the job produced multiple outputs. Default 0. |
| pollIfRunning | boolean | no | When true, advance polling once if the job is still running. Default true. |
| pollTimeoutMs | integer | no | When pollIfRunning is true, wait up to this long for terminal state. Default 30000. |
upload_post_cover_from_url
Download an external image URL into R2 and attach it as the post's featuredImage. Replaces the manual flow of pasting external URLs (which break when the source goes down). Validates content-type starts with `image/` and rejects payloads larger than 20 MB. No AI credits charged — only standard storage.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postId | string | yes | The post ID |
| sourceUrl | string | yes | Public http(s) URL to fetch the image from. Must respond with an image/* content-type. |
list_categories
List CMS post categories.
No parameters.
create_category
Create a CMS post category (e.g. "Equipment", "Injection — Botox"). For sub-categories, use namespaced names — the table is flat.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Category name |
| slug | string | no | Auto-generated from name if omitted. |
| description | string | no | Description |
| sortOrder | number | no | Sort order (lower = earlier) |
update_category
Update a CMS post category.
| Parameter | Type | Required | Description |
|---|---|---|---|
| categoryId | string | yes | Category ID |
| name | string | no | Name |
| slug | string | no | URL slug |
| description | string | null | no | Description |
| sortOrder | number | no | Sort order (lower = earlier) |
delete_category
Delete a CMS post category. Posts in the category are not deleted; they are simply unlinked.
| Parameter | Type | Required | Description |
|---|---|---|---|
| categoryId | string | yes | Category ID |
restore_category
Restore a previously deleted CMS post category.
| Parameter | Type | Required | Description |
|---|---|---|---|
| categoryId | string | yes | Category ID |
list_post_types
List all post types defined for this company (built-in: blog_post, page; plus any custom types).
No parameters.
create_post_type
Define a new custom post type (e.g. "treatment", "service"). Required before creating posts of that type. After creating a post type, use create_post_type_field to define its structured field schema. Those fields are stored in meta on each post — do not use excerpt for structured data.
| Parameter | Type | Required | Description |
|---|---|---|---|
| slug | string | yes | Lowercase identifier, e.g. "treatment". Auto-derived from label if omitted. |
| label | string | yes | Singular UI label, e.g. "Treatment" |
| labelPlural | string | yes | Plural UI label, e.g. "Treatments" |
| icon | string | null | no | Icon name or URL |
| supportsCategories | boolean | no | Default true |
| supportsFeaturedImage | boolean | no | Default true |
| supportsNesting | boolean | no | Default false |
| supportsExcerpt | boolean | no | Default true |
| supportsBlocks | boolean | no | Default true |
| sortOrder | number | no | Sort order (lower = earlier) |
list_post_type_fields
List the custom field schema for a post type. Use this before creating posts to know which keys to pass in meta and what types they expect.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postTypeId | string | yes | Post type ID (from list_post_types) |
create_post_type_field
Add a custom field to a post type schema. The field key becomes the key in meta when creating/updating posts. Use fieldType="repeater" with fields=[...] for repeatable structured rows. Use this instead of storing structured data in excerpt.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postTypeId | string | yes | Post type ID (from list_post_types) |
| label | string | yes | Human-readable field label, e.g. "Tagline" |
| fieldType | enum: "text" | "textarea" | "richtext" | "number" | "boolean" | "date" | "datetime" | "select" … | yes | Field type: text | textarea | richtext | number | boolean | date | datetime | select | multiselect | url | email | image | file | gallery | attachments | repeater |
| key | string | no | snake_case key used in meta. Auto-derived from label if omitted. |
| required | boolean | no | Whether the field is required on post creation (default false) |
| helpText | string | no | Optional hint shown in the UI |
| options | object | no | For select/multiselect: { choices: [{ label, value }] }. For URL fields that should accept merchant uploads, use { uploadable: true } so the UI stores the uploaded file URL instead of asking the merchant to paste a raw URL. |
| fields | array<object> | no | Required for fieldType="repeater". Defines the child fields stored in each row object. |
| sortOrder | number | no | Sort order (lower = earlier) |
update_post_type
Update a custom post type. Built-in types (blog_post, page) cannot be modified.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postTypeId | string | yes | Post type ID |
| label | string | no | Display label |
| labelPlural | string | no | Plural display label |
| icon | string | null | no | Icon name or URL |
| supportsCategories | boolean | no | Allow categories on this post type |
| supportsFeaturedImage | boolean | no | Allow a featured image |
| supportsNesting | boolean | no | Allow parent/child nesting |
| supportsExcerpt | boolean | no | Allow an excerpt field |
| supportsBlocks | boolean | no | Allow content blocks (rich body) |
| sortOrder | number | no | Sort order (lower = earlier) |
delete_post_type
Delete a custom post type. Built-in types cannot be deleted. Fails if any posts of this type still exist — delete those first.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postTypeId | string | yes | Post type ID |
restore_post_type
Restore a previously deleted custom post type.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postTypeId | string | yes | Post type ID |
update_post_type_field
Update a field on a post type schema. Changing fieldType or flipping required=true is blocked when posts already use the field unless force=true is passed.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postTypeId | string | yes | Post type ID |
| fieldId | string | yes | Field ID |
| label | string | no | Display label |
| fieldType | enum: "text" | "textarea" | "richtext" | "number" | "boolean" | "date" | "datetime" | "select" … | no | Field type |
| required | boolean | no | Whether the field is required |
| helpText | string | null | no | Help text shown next to the input |
| options | object | null | no | For URL fields, { uploadable: true } enables file upload while preserving a URL string in meta. |
| fields | array<object> | null | no | Child fields for fieldType="repeater". |
| sortOrder | number | no | Sort order (lower = earlier) |
| force | boolean | no | Override safety guards. Required to change fieldType or flip required=true on a field that already has data in posts. |
delete_post_type_field
Remove a field from a post type schema. Blocked when posts of this type still have data in the field unless force=true is passed (orphans the data).
| Parameter | Type | Required | Description |
|---|---|---|---|
| postTypeId | string | yes | Post type ID |
| fieldId | string | yes | Field ID |
| force | boolean | no | Delete even if posts have data in this field. Existing meta values become orphaned. |
restore_post_type_field
Restore a previously deleted field on a post type schema.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postTypeId | string | yes | Post type ID |
| fieldId | string | yes | Field ID |
reorder_post_type_fields
Reorder fields on a post type. Pass field IDs in the desired display order; sortOrder is updated to match.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postTypeId | string | yes | Post type ID |
| orderedFieldIds | array<string> | yes | Field IDs in the desired order |
append_post_block
Append one or more blocks to the end of a post. Each block must be a valid block object: { id, version, type, data }. Types: paragraph, heading, image, list, quote, code, divider, spacer, embed, html, youtube, file, faq, callout, gallery, cta, accordion, product.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postId | string | yes | The post ID |
| blocks | array<any> | yes | Block(s) to append |
replace_post_block
Replace a single block at the given index (0-based). Avoids fetching the full post and re-sending all blocks via update_post.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postId | string | yes | The post ID |
| index | integer | yes | 0-based index of the block to replace |
| block | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | yes | Replacement block |
remove_post_block
Remove the block at the given index (0-based). All subsequent blocks shift up by one.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postId | string | yes | The post ID |
| index | integer | yes | 0-based index of the block to remove |
reorder_post_blocks
Reorder blocks by passing block IDs in the desired order. The id list must contain every existing block id exactly once.
| Parameter | Type | Required | Description |
|---|---|---|---|
| postId | string | yes | The post ID |
| orderedBlockIds | array<string> | yes | Block IDs in the desired order; must match the existing set exactly |
create_booking
Create a new booking for a member. Use get_available_slots first to find valid times, then create the booking with the service, member, date, and time.
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceId | string | yes | The service ID |
| accountId | string | yes | The member/account ID |
| bookingDate | string | yes | Date in YYYY-MM-DD format |
| startTime | string | yes | Start time in HH:MM format |
| endTime | string | yes | End time in HH:MM format |
| staffId | string | no | Staff member ID |
| resourceId | string | no | Resource ID |
| outletId | string | no | Outlet/location ID. Required when the company has multiple outlets and the member has no default outlet. |
| notes | string | no | Booking notes |
get_conversation_messages
Get messages from a specific conversation thread. Shows the chat history between the merchant and a contact.
| Parameter | Type | Required | Description |
|---|---|---|---|
| conversationId | string | yes | The conversation ID |
| search | string | no | Search within messages |
| page | number | no | Page number, newest first (default 1) |
| limit | number | no | Page size (default 20, max 50) |
find_or_create_workroom_thread
Find or create a Workroom DM thread between a merchant user and an AI colleague. Use this when an inbound event deserves owner attention but no threadId was provided. This only prepares an internal Workroom channel.
| Parameter | Type | Required | Description |
|---|---|---|---|
| agentId | string | yes | AI colleague ID for the Workroom DM |
| userId | string | no | Merchant user ID to notify. Defaults to the current MCP user when omitted. |
| title | string | no | Optional title if a new thread is created |
get_attachment_text
Read the text/Markdown content of a file attached to a Workroom thread or sent by a customer (PDF, image, or document). Extracts on first read and caches the result. Returns status "ready" with markdown, or "skipped"/"failed"/"not_found" with a reason. Use when a message references an attachment you need to read.
| Parameter | Type | Required | Description |
|---|---|---|---|
| attachmentId | string | yes | The attachment ID from the message attachments list |
post_workroom_message
Post an internal message from an AI colleague into a Workroom thread. Use this to report findings, ask the owner for approval, or share source links after reading CRM/Inbox data. This does not send anything to customers.
| Parameter | Type | Required | Description |
|---|---|---|---|
| threadId | string | yes | Workroom thread ID |
| agentId | string | yes | AI colleague ID that is a participant in the thread |
| content | string | yes | Message to show in Workroom. Markdown is allowed. |
| metadata | object | no | Optional generic metadata, e.g. {sourceRefs:[{type:"inbox_conversation",id:"..."}]} |
create_inbox_reply_suggestion
Create a draft reply suggestion that appears inline in the FavCRM Inbox composer. Use this for message.inbound events with replyPolicy="suggest"; it does not send anything to the customer.
| Parameter | Type | Required | Description |
|---|---|---|---|
| conversationId | string | yes | Inbox conversation ID |
| agentId | string | yes | AI colleague ID creating the suggestion |
| body | string | yes | Draft reply text for the merchant to review |
| sourceMessageId | string | no | Inbound message ID this draft responds to |
| subject | string | no | Optional email subject suggestion |
| metadata | object | no | Optional metadata such as rationale, confidence, or source refs |
request_send_approval
Create a merchant-owned Workroom approval request for a customer-facing send. The agent must not call send_message, send_whatsapp_message, send_test_campaign, or send_campaign directly.
| Parameter | Type | Required | Description |
|---|---|---|---|
| threadId | string | yes | Workroom thread ID where the approval button should appear |
| agentId | string | yes | AI colleague ID that is a participant in the thread |
| actionType | enum: "send_message" | "send_whatsapp_message" | "send_test_campaign" | "send_campaign" | yes | The customer-facing action to execute only after merchant approval |
| summary | string | yes | Human-readable draft/recipient/campaign summary shown above the approval buttons |
| payload | object | yes | Exact tool payload to execute if the merchant approves. For send_test_campaign use { campaignId, to }, with an email address or international WhatsApp number matching the campaign channel. |
list_segments
List customer segments. Segments group members by criteria for targeted campaigns.
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | string | no | Search by segment name |
| limit | number | no | Max results (default 20) |
get_segment
Get customer segment details including type, criteria, and live member count.
| Parameter | Type | Required | Description |
|---|---|---|---|
| segmentId | string | yes | The segment ID |
get_segment_members
Get the members that belong to a specific segment.
| Parameter | Type | Required | Description |
|---|---|---|---|
| segmentId | string | yes | The segment ID |
| limit | number | no | Max results (default 20) |
create_segment
Create a new customer segment. Use STATIC for manual member lists, DYNAMIC for criteria-based auto-filtering.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Segment name |
| description | string | no | Segment description |
| segmentType | enum: "STATIC" | "DYNAMIC" | no | Segment type (default DYNAMIC) |
| criteria | object | no | Dynamic segment criteria |
update_segment
Update an existing customer segment by id. Pass only the fields to change; criteria replaces the existing rules.
| Parameter | Type | Required | Description |
|---|---|---|---|
| segmentId | string | yes | The segment ID to update |
| name | string | no | New segment name |
| description | string | no | New segment description |
| segmentType | enum: "STATIC" | "DYNAMIC" | no | Change segment type |
| criteria | object | null | no | Replace dynamic criteria, or null to clear criteria |
preview_segment_count
Preview how many customers would match dynamic segment criteria before creating or updating a segment.
| Parameter | Type | Required | Description |
|---|---|---|---|
| criteria | object | null | no | Dynamic criteria to preview. Omit or null to count all active customers. |
set_segment_members
Replace the members of a STATIC customer segment with the given account IDs. The segment is converted to STATIC.
| Parameter | Type | Required | Description |
|---|---|---|---|
| segmentId | string | yes | The segment ID |
| accountIds | array<string> | yes | CRM account IDs to set as segment members |
delete_segment
Delete a customer segment.
| Parameter | Type | Required | Description |
|---|---|---|---|
| segmentId | string | yes | The segment ID to delete |
list_templates
List the company's WhatsApp message templates with their Meta approval status (PENDING / APPROVED / REJECTED). Check this to see which templates are approved before referencing one in a campaign.
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | integer | no | Max templates to return (default 20) |
create_template
Create and submit a WhatsApp message template to Meta for approval. Text templates only (header text, body with {{1}} variables, footer) — add buttons in the app. The template is NOT usable until Meta approves it (check with list_templates). Submitting consumes the store’s Meta template allowance.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Friendly template name (a Meta-safe id is derived from it). |
| category | enum: "MARKETING" | "UTILITY" | "AUTHENTICATION" | yes | UTILITY = transactional (order/shipping), MARKETING = promos, AUTHENTICATION = codes. |
| message | string | yes | Body text. Use {{1}}, {{2}} for personalised values. |
| language | string | no | Language code, default en_US. |
| headerText | string | no | Optional short bold header above the body. |
| footer | string | no | Optional small footer text. |
| variableSamples | object | no | Example values per variable number, e.g. {"1":"Sara"} — Meta reviews with these. |
list_outlets
List shop outlets/locations for the company.
| Parameter | Type | Required | Description |
|---|---|---|---|
| activeOnly | boolean | no | When true, only return active outlets (default false) |
create_outlet
Create a shop outlet/location. Optionally pass id to preserve a legacy UUID during migration.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | no | Optional outlet UUID (for legacy migration; non-standard formats accepted) |
| name | string | yes | Outlet name |
| address | string | null | no | Street address |
| phone | string | null | no | Contact phone |
| latitude | string | number | null | no | Latitude |
| longitude | string | number | null | no | Longitude |
| logoUrl | string | null | no | Logo URL |
| sortOrder | integer | no | Display sort order (default 0) |
| isActive | boolean | no | Whether outlet is active (default true) |
| acceptsOrders | boolean | no | Whether outlet accepts online orders (default true) |
update_outlet
Update an existing shop outlet/location by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Outlet ID (UUID) |
| name | string | no | Outlet name |
| address | string | null | no | Street address |
| phone | string | null | no | Contact phone |
| latitude | string | number | null | no | Latitude |
| longitude | string | number | null | no | Longitude |
| logoUrl | string | null | no | Logo URL |
| sortOrder | integer | no | Display sort order |
| isActive | boolean | no | Whether outlet is active |
| acceptsOrders | boolean | no | Whether outlet accepts online orders |
list_products
List shop products with optional filters by name, status, or category.
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | string | no | Search by product name |
| status | enum: "DRAFT" | "ACTIVE" | "ARCHIVED" | no | Filter by status |
| categoryId | number | no | Filter by category ID |
| limit | number | no | Max results (default 20) |
get_product
Get full product detail including images, options, and variations.
| Parameter | Type | Required | Description |
|---|---|---|---|
| productId | number | yes | The product ID |
create_product
Create a new shop product as DRAFT. Merchant can review and activate from the portal.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Product name |
| description | string | no | Product description |
| price | string | yes | Price as decimal string (e.g. "29.99") |
| discountPrice | string | no | Discounted price |
| memberPrice | string | no | Members-only price |
| sku | string | no | SKU code |
| categoryIds | array<number> | no | Category IDs (first is primary) |
| productType | enum: "one_time" | "recurring" | no | Product type (default one_time) |
update_product
Update an existing product. Only provided fields are changed.
| Parameter | Type | Required | Description |
|---|---|---|---|
| productId | number | yes | The product ID |
| name | string | no | Product name |
| description | string | no | Product description |
| price | string | no | Price as decimal string |
| discountPrice | string | no | Discounted price |
| memberPrice | string | no | Members-only price |
| sku | string | no | SKU code |
| status | enum: "DRAFT" | "ACTIVE" | "ARCHIVED" | no | Product status |
| categoryIds | array<number> | no | Category IDs (first is primary). Replaces all existing categories. |
list_product_categories
List all product categories for the shop.
No parameters.
create_product_category
Create a product category. Use parentId to create subcategories under an existing category.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Category name |
| description | string | no | Category description |
| parentId | number | no | Parent category ID for subcategories |
| onlineEnabled | boolean | no | Show in online store (default true) |
| sortOrder | number | no | Display sort order |
create_variation
Add a variation (size, color, etc.) to an existing product.
| Parameter | Type | Required | Description |
|---|---|---|---|
| productId | number | yes | The product ID |
| name | string | no | Variation name |
| sku | string | no | Variation SKU |
| price | string | yes | Price as decimal string (e.g. "29.99") |
| discountPrice | string | no | Discounted price |
| memberPrice | string | no | Members-only price |
| stockQuantity | number | no | Stock quantity |
| stockStatus | enum: "in_stock" | "out_of_stock" | "low_stock" | no | Stock status |
| selectedOptions | object | no | Option selections e.g. {"Size": "Large"} |
list_orders
List shop orders with optional status and search filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "pending" | "confirmed" | "processing" | "shipped" | "delivered" | "cancelled" | "refunded" | no | Filter by order status |
| search | string | no | Search by order number or customer name/email |
| limit | number | no | Max results (default 20) |
get_order
Get full order detail including line items.
| Parameter | Type | Required | Description |
|---|---|---|---|
| orderId | string | yes | The order UUID |
update_order_status
Update the status of a shop order (e.g. confirm, ship, cancel).
| Parameter | Type | Required | Description |
|---|---|---|---|
| orderId | string | yes | The order UUID |
| status | enum: "pending" | "confirmed" | "processing" | "shipped" | "delivered" | "cancelled" | "refunded" | yes | New order status |
list_offer_rules
List upsell/cross-sell offer rules with optional filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "draft" | "active" | "paused" | no | Filter by status |
| type | enum: "upsell" | "cross_sell" | "bundle" | "post_purchase" | no | Filter by rule type |
| limit | number | no | Max results (default 20) |
get_offer_rule
Get offer rule detail including associated products and discounts.
| Parameter | Type | Required | Description |
|---|---|---|---|
| ruleId | string | yes | The offer rule ID |
create_offer_rule
Create an upsell/cross-sell offer rule as draft. Specify trigger type, conditions, and suggested products with optional discounts.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Rule name |
| description | string | no | Rule description |
| type | enum: "upsell" | "cross_sell" | "bundle" | "post_purchase" | yes | Rule type: upsell, cross_sell, bundle, or post_purchase |
| triggerType | enum: "product_view" | "cart_contains" | "cart_threshold" | "post_order" | "category_view" | yes | When the offer triggers |
| triggerConfig | object | no | Trigger-specific configuration |
| products | array<object> | no | Products to suggest with optional discounts |
query_favcrm_platform
Search FavCRM MCP tools, enabled skills, and feature areas for how to use the platform. Use before guessing tool names or JSON arguments.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Plain-language capability question, e.g. "create a booking" or "send a campaign safely" |
| area | enum: "all" | "tools" | "skills" | "features" | no | Restrict search area (default all) |
| limit | integer | no | Maximum results (default 8) |
search_tools
Search the available FavCRM tool catalog for relevant operations. Use this when the curated direct tool list does not contain the operation you need.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | no | Plain-language tool search, e.g. "delete a segment" or "set custom field values" |
| scope | string | no | Optional exact scope filter, e.g. contacts, customer_segments, invoices |
| write | boolean | no | Filter to write tools (true) or read-only tools (false) |
| limit | integer | no | Maximum results (default 8, max 20) |
| includeInputSchema | boolean | no | Include full JSON input schemas for returned tools. Defaults to false to keep context small. |
execute_tool
Execute an available FavCRM tool by name after discovering it with search_tools. Target tool availability, input schema, module gates, and audit logging are still enforced.
| Parameter | Type | Required | Description |
|---|---|---|---|
| toolName | string | yes | Exact target tool name returned by search_tools |
| arguments | object | no | Arguments object for the target tool. Must match the target input schema. |
query_company_knowledge
Search this company's reviewed knowledge base and return grounded snippets with source document IDs. Use for merchant policies, FAQs, pricing notes, brand guidance, and other uploaded references.
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Question or keywords to search for in company knowledge |
| limit | integer | no | Maximum matching snippets (default 5) |
| maxSnippetChars | integer | no | Maximum characters per snippet (default 600) |
list_knowledge_documents
List merchant knowledge base documents (uploads + scraped URLs). Use reviewStatus/syncable to see what is ready for agent retrieval. Pass `updatedAfter` for delta sync. Reviewed content is fetched via GET /v6/merchant/ai/knowledge/{id}/content; source audit text is available with ?variant=extracted.
| Parameter | Type | Required | Description |
|---|---|---|---|
| updatedAfter | string | no | ISO timestamp — only return docs updated after this. Use for delta sync. |
| limit | number | no | Max results (default 100) |
get_knowledge_document
Fetch a single knowledge document with metadata + extraction/review status. Reviewed content is served via GET /v6/merchant/ai/knowledge/{id}/content; raw/extracted variants are for audit.
| Parameter | Type | Required | Description |
|---|---|---|---|
| documentId | string | yes | Knowledge document ID |
scrape_knowledge_url
Fetch a URL's content into the knowledge base. Server crawls the URL, stores the response body in R2, returns the new document ID. Failures store the row with status='failed'. Use for adding marketing pages, FAQ docs, or external references the agent should be aware of.
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | yes | URL to fetch (must be https / http and publicly reachable) |
add_knowledge_text
Add a free-form text document to the knowledge base. Use for pasted policies, FAQs, internal notes, brand voice references — anything the agent should be able to retrieve later. Stored as a single document; agent-side embedding/retrieval happens elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Friendly title for the document |
| content | string | yes | Document body text |
delete_knowledge_document
Soft-delete a knowledge document. The agent loses access immediately, but the document can be restored with restore_knowledge_document.
| Parameter | Type | Required | Description |
|---|---|---|---|
| documentId | string | yes | Knowledge document ID |
restore_knowledge_document
Restore a previously deleted knowledge document.
| Parameter | Type | Required | Description |
|---|---|---|---|
| documentId | string | yes | Knowledge document ID |
list_shipping_methods
List all shipping methods configured for the shop.
No parameters.
report_agent_issue
Report a FavCRM platform issue when an agent finds a missing MCP path, tool failure, confusing schema, CLI/docs issue, or SDK fallback. Include logs, AI analysis, references, and clarification questions so the platform team can follow up.
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | yes | Short issue title |
| severity | enum: "critical" | "high" | "medium" | "low" | yes | Impact level |
| area | enum: "mcp_tool_missing" | "mcp_tool_error" | "mcp_schema_confusing" | "auth" | "cli" | "docs" | "sdk_fallback" | "other" | yes | Issue area |
| expectedBehavior | string | yes | What the agent or user expected to happen |
| actualBehavior | string | yes | What actually happened |
| stepsTried | array<string> | yes | Concrete steps the agent tried before reporting |
| toolCalls | array<object> | no | Relevant MCP/CLI/SDK calls, arguments, and outcomes |
| logs | array<string> | no | Relevant error messages, command output, or stack traces |
| aiAnalysis | string | yes | Agent analysis of likely root cause and impact |
| clarificationQuestions | array<string> | no | Questions the platform team should ask the agent/user to resolve ambiguity |
| references | array<object> | no | Source links, file paths, docs, screenshots, or IDs that support the report |
| environment | object | no | Runtime context such as MCP URL, CLI version, token type, client, sandbox, model, OS |
| workaround | string | no | Temporary workaround used, if any |
register_organisation_request
Step 1 of agentic signup. Sends a 6-digit verification code to the email. After the user reads the code, call register_organisation_verify with it to finish and receive an API key. Use this when a user wants to create a new FavCRM workspace from inside an MCP client.
| Parameter | Type | Required | Description |
|---|---|---|---|
| organisationName | string | yes | Business / brand name (used as the first company name too) |
| string | yes | Owner email — receives a 6-digit code (10 min TTL) | |
| industry | enum: "beauty" | "fitness" | "tutoring" | "retail" | "hospitality" | "services" | "other" | no | Vertical — drives default templates |
| country | string | no | ISO 3166-1 alpha-2 country code (HK, US, GB, ...) |
| timezone | string | no | IANA timezone (e.g. Asia/Hong_Kong); falls back to country default |
register_organisation_verify
Step 2 of agentic signup. Confirms the 6-digit code and creates the workspace. Returns an API key the agent should set as Authorization: Bearer for all subsequent FavCRM MCP calls in this session.
| Parameter | Type | Required | Description |
|---|---|---|---|
| requestId | string | yes | From register_organisation_request |
| code | string | yes | 6-digit code from the verification email |
get_customer_brief
Read-only customer brief for one account: details, tags, linked conversations with cached summaries, and open CRM tasks. Only records you may read are included. A section you cannot access is returned as null and listed in availableSections. Does not call the AI model.
| Parameter | Type | Required | Description |
|---|---|---|---|
| accountId | string | yes | CRM account ID |
| conversationLimit | number | no | Max linked conversations, 1-20 (default 10) |
| taskLimit | number | no | Max open tasks, 1-20 (default 10) |
get_conversation_summary
Read the cached AI summary of a conversation with freshness information. Read-only: never calls the model, never bills, never writes. Returns summary null when no cache exists. Use refresh_conversation_summary to regenerate.
| Parameter | Type | Required | Description |
|---|---|---|---|
| conversationId | string | yes | The conversation ID |
refresh_conversation_summary
Regenerate the AI summary of one conversation on explicit user request. Uses the model and is billed to company credits. Respects the cooldown and quiet-period rules, so it may return the current cache instead. Never sends a message or changes tags or tasks.
| Parameter | Type | Required | Description |
|---|---|---|---|
| conversationId | string | yes | The conversation ID |
list_crm_tasks
List CRM follow-up tasks you may see (portal tasks, owned by users). Filter by status, owner ("mine" or ownerId), linked account, dueWindow overdue or today (company timezone), or exact dueAfter/dueBefore datetimes with a zone. Returns the true total and pages. Unassigned tasks cannot be filtered here.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | enum: "todo" | "in_progress" | "done" | no | Task status: todo, in_progress or done |
| owner | enum: "mine" | no | "mine" shows only tasks you own |
| ownerId | string | no | Only tasks owned by this users.id. Company membership IDs do not match. |
| accountId | string | no | Only tasks linked to this CRM account, if you can see it |
| dueWindow | enum: "overdue" | "today" | no | overdue: due before now. today: due today in the company timezone. Both list open tasks only. |
| dueAfter | string | no | ISO 8601 datetime with timezone offset or Z; inclusive lower bound |
| dueBefore | string | no | ISO 8601 datetime with timezone offset or Z; exclusive upper bound |
| page | number | no | Page number (default 1) |
| limit | number | no | Page size (default 20, max 50) |
get_crm_task
Get one CRM follow-up task you may see, with its UTC due instant and the company timezone. Unseen and missing tasks return not found.
| Parameter | Type | Required | Description |
|---|---|---|---|
| taskId | string | yes | CRM task ID |
create_crm_task
Create a CRM follow-up task for you or, where your assignment policy allows, another active member. Optionally link it to a CRM account or conversation you can see. dueAt must be an exact datetime with a timezone; resolve relative dates such as "tomorrow" with the user first.
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | yes | Task title |
| description | string | no | Details |
| relatedType | enum: "account" | "conversation" | "none" | no | Link to a CRM account or conversation. Default none. |
| relatedId | string | no | ID of the account or conversation named by relatedType |
| dueAt | string | no | Exact ISO 8601 datetime with timezone offset or Z. Relative dates like "tomorrow" must be resolved by the user first. |
| priority | enum: "low" | "medium" | "high" | "urgent" | no | Priority (default medium) |
| ownerId | string | null | no | Owner users.id. Defaults to you. Null leaves the task unassigned. |
update_crm_task
Update a CRM follow-up task you can work: title, description, dueAt (exact datetime, or null to clear), owner (users.id, or null to unassign), status (done sets completion) or priority. Changing the linked account or conversation is not supported; create a new task instead.
| Parameter | Type | Required | Description |
|---|---|---|---|
| taskId | string | yes | CRM task ID |
| title | string | no | New title |
| description | string | null | no | New description, or null to clear |
| dueAt | string | null | no | Exact ISO 8601 datetime with timezone offset or Z, or null to clear |
| ownerId | string | null | no | New owner users.id, or null to unassign |
| status | enum: "todo" | "in_progress" | "done" | no | todo, in_progress or done |
| priority | enum: "low" | "medium" | "high" | "urgent" | no | Priority |
backfill_conversation_summaries
Find conversations with no usable cached AI summary (missing or malformed; legacy valid caches are never touched) and generate them, at most limit per call (default 10, max 10). Newest activity first; only conversations you may read are considered. Default dryRun=true lists candidates with no model call, billing or writes. Set dryRun=false to generate; it is billed to company credits and needs company AI summaries enabled. Stops on the first generation failure, missing AI gateway configuration (rejected before any request, not billed), disabled flag, unknown usage or lost access. Cursor rules: use executeCursor from a preview to execute from its frozen window and starting position; eligibility is rechecked. nextCursor only continues the mode that produced it. Scans at most 50 visible rows per call, so hasMore may be true with no candidates in this page.
| Parameter | Type | Required | Description |
|---|---|---|---|
| days | integer | no | Rolling window in days by last message time, 1-90 (default 30) |
| channel | enum: "whatsapp" | "sms" | "email" | "messenger" | "instagram" | "threads" | "web_form" | no | Only conversations on this channel |
| limit | integer | no | Max generation attempts in this call, 1-10 (default 10). A remaining time budget can yield fewer. |
| dryRun | boolean | no | true (default) previews candidates with no model call, billing or writes. false generates summaries. |
| cursor | string | no | Opaque cursor from an earlier call. Pass the same cursor to the same mode to continue. |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://api.favcrm.io/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http favcrm https://api.favcrm.io/mcpCustomize > Connectors > + Add > Add custom connector ; Name : favcrm ; URL : https://api.favcrm.io/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : favcrm ; Server URL : https://api.favcrm.io/mcp ; Create as a plugin{
"mcpServers": {
"favcrm": {
"url": "https://api.favcrm.io/mcp"
}
}
}{
"mcpServers": {
"favcrm": {
"type": "http",
"url": "https://api.favcrm.io/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"favcrm": {
"url": "https://api.favcrm.io/mcp"
}
}
}{
"mcpServers": {
"favcrm": {
"httpUrl": "https://api.favcrm.io/mcp"
}
}
}[mcp_servers.favcrm]
url = "https://api.favcrm.io/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
FavCRM · L’Atlas · Tested on
[FavCRM — L’Atlas](https://latlas.dev/en/mcp/io.favcrm/favcrm)Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.