L'Atlas / MCP servers / FavCRM
MCP server

FavCRM

io.favcrm/favcrm

MCP server OK 244 tools

Get a review See pricing

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

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/io.favcrm/favcrm.svg?lang=en)](https://latlas.dev/en/mcp/io.favcrm/favcrm)
HTML
<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

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.favcrm/favcrm.svg?lang=en)](https://latlas.dev/en/mcp/io.favcrm/favcrm)
HTML
<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

DateResultResponseTools
28 Nov 2026, 09:50OK2,488 ms244

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.

ParameterTypeRequiredDescription
searchstringnoName, email, or phone to search
lifeStageenum: "lead" | "active" | "churned" | "vip" | "prospect"noFilter by life stage
hasMembershipbooleannoFilter to members with active membership
createdAfterstringnoISO date — accounts created after this date
createdBeforestringnoISO date — accounts created before this date
lastBookingBeforestringnoISO date — members whose last booking is before this date (or have no bookings)
lastBookingAfterstringnoISO date — members who have a booking after this date
hasBookingbooleannoFilter to members with/without any booking
lastActivityBeforestringnoISO date — members with no activity since this date
lastActivityAfterstringnoISO date — members with activity after this date
inactiveDaysnumbernoMembers with no activity in the last N days
tierIdstringnoFilter by membership tier ID
membershipStatusenum: "active" | "expired" | "suspended"noFilter by membership status
sourceenum: "walk_in" | "online" | "pos" | "whatsapp" | "referral" | "import" | "api" | "shopify" …noFilter by account source
tagIdsarray<string>noFilter by tag IDs
sortstringnoSort column: name, email, or createdAt
orderenum: "asc" | "desc"noSort order
limitnumbernoMax results (default 20)

get_member_profile

Get detailed profile for a specific member/account by ID.

ParameterTypeRequiredDescription
accountIdstringyesThe 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.

ParameterTypeRequiredDescription
filenamestringnoOriginal filename for audit
rowsarray<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.

ParameterTypeRequiredDescription
sessionIdstringyessessionId from preview_customer_import
rowsarray<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.

ParameterTypeRequiredDescription
namestringyesAccount/customer display name
firstNamestringnoFirst name for individual accounts
lastNamestringnoLast name for individual accounts
emailstringnoEmail address
phonestringnoPhone number
typeenum: "individual" | "business" | "household"noAccount type. Defaults to individual.
lifeStageenum: "lead" | "active" | "churned" | "vip" | "prospect"noCRM life stage. Defaults to active.
sourceenum: "walk_in" | "online" | "pos" | "whatsapp" | "referral" | "import" | "api" | "shopify" …noAcquisition source. Defaults to api.
notesstringnoInternal notes
enrollMembershipbooleannoWhether to create an active membership immediately
tierIdstringnoMembership tier ID to enroll into. If omitted, the company default tier may apply.
expiresAtstringnoOptional ISO expiry for the membership
addressobjectnoPostal address

update_account

Update CRM account/customer profile fields such as name, phone, email, life stage, owner, notes, or member code.

ParameterTypeRequiredDescription
accountIdstringyesThe account ID to update
namestringnoAccount/customer display name
firstNamestring | nullnoFirst name for individual accounts
lastNamestring | nullnoLast name for individual accounts
emailstringnoEmail address
phonestringnoPhone number
typeenum: "individual" | "business" | "household"noAccount type
lifeStageenum: "lead" | "active" | "churned" | "vip" | "prospect"noCRM life stage
sourceenum: "walk_in" | "online" | "pos" | "whatsapp" | "referral" | "import" | "api" | "shopify" …noAcquisition source
assignedTostring | nullnoAssigned team member user ID, or null to clear
notesstringnoInternal notes
memberCodestring | nullnoMerchant member code, or null to clear
referredByAccountIdstring | nullnoReferrer account ID, or null to clear
genderstringnoGender
dateOfBirthstring | nullnoYYYY-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.

ParameterTypeRequiredDescription
accountIdstringyesThe account ID to soft-delete

list_tags

List all available tags for the merchant.

ParameterTypeRequiredDescription
searchstringnoSearch tags by name

create_tag

Create a CRM tag for customer segmentation and organization.

ParameterTypeRequiredDescription
namestringyesTag name
colorstringnoOptional display color, e.g. #2563eb

update_tag

Rename or recolor an existing CRM tag.

ParameterTypeRequiredDescription
tagIdstringyesThe tag ID to update
namestringnoNew tag name
colorstring | nullnoNew color, or null to clear

delete_tag

Delete a CRM tag and remove it from all tagged entities.

ParameterTypeRequiredDescription
tagIdstringyesThe tag ID to delete

attach_tags

Attach one or more tags to a member/account. Useful for segmenting members after filtering.

ParameterTypeRequiredDescription
accountIdsarray<string>yesMember/account IDs to tag (max 100)
tagIdstringyesTag ID to attach

detach_tags

Detach one tag from one or more member/account records.

ParameterTypeRequiredDescription
accountIdsarray<string>yesMember/account IDs to untag (max 100)
tagIdstringyesTag 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.

ParameterTypeRequiredDescription
tierIdstringyesThe tier ID

issue_rewards

Issue a gift/reward to multiple members. Requires a gift offer ID and member IDs.

ParameterTypeRequiredDescription
giftOfferIdstringyesThe gift offer/reward scheme ID to issue
memberIdsarray<string>yesMember/account IDs to receive the reward (max 50)
expiresAtstringnoOptional 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.

ParameterTypeRequiredDescription
accountIdstringyesThe member/account ID to enrol
tierIdstringnoThe membership tier ID. Omit to enrol on the default no-tier membership.
expiresAtstringnoOptional 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.

ParameterTypeRequiredDescription
accountIdstringyesThe 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.

ParameterTypeRequiredDescription
accountIdstringyesThe member/account ID
fieldenum: "points" | "stamps"yesWhich loyalty unit to credit
amountintegeryesPositive integer amount to credit
reasonstringnoAudit-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.

ParameterTypeRequiredDescription
statusenum: "draft" | "held" | "pending" | "confirmed" | "cancelled" | "completed" | "no_show"noFilter by booking status
serviceIdstringnoFilter by service ID
staffIdstringnoFilter by staff member ID
accountIdstringnoFilter by member/account ID
dateFromstringnoISO date — bookings from this date
dateTostringnoISO date — bookings up to this date
limitnumbernoMax results (default 20)

get_booking_detail

Get full booking details including line items, status history, and participants.

ParameterTypeRequiredDescription
bookingIdstringyesThe 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.

ParameterTypeRequiredDescription
serviceIdstringyesThe service to check availability for
datestringyesISO date to check (YYYY-MM-DD)
staffIdstringnoOptional: filter by specific staff member
resourceIdstringnoOptional: filter by specific resource

list_services

List booking services with name, price, duration, and status.

ParameterTypeRequiredDescription
statusenum: "active" | "inactive" | "archived"noFilter by status
searchstringnoSearch by name
limitnumbernoMax results (default 20)

get_service_detail

Get full service details including addons, staff, resources, and tier pricing.

ParameterTypeRequiredDescription
serviceIdstringyesThe service ID

get_service_tier_pricing

Read every membership-tier pricing configuration for one booking service.

ParameterTypeRequiredDescription
serviceIdstringyesBooking service ID

set_service_tier_pricing

Set the complete pricing and booking-policy configuration for one membership tier on a booking service.

ParameterTypeRequiredDescription
serviceIdstringyesBooking service ID
tierIdstringyesMembership tier ID
priceOverridestring | nullyes
discountPercentstring | nullyes
advanceBookingDaysinteger | nullyes
timeSlotPricingarray<object> | nullyes
bookingLimitsobject | nullyes

copy_service_tier_pricing

Copy the complete pricing and booking-policy configuration from one membership tier to another on the same booking service.

ParameterTypeRequiredDescription
serviceIdstringyesBooking service ID
sourceTierIdstringyesMembership tier to copy from
targetTierIdstringyesMembership 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.

ParameterTypeRequiredDescription
namestringyesService name
durationMinutesnumberyesDuration of one booking in minutes
pricestringnoDecimal string, e.g. "80.00". Defaults to "0".
currencystringnoISO currency code, default HKD
capacitynumbernoHow many participants per slot (default 1)
categoryIdstringnoExisting service category ID
descriptionstringnoDescription
typeenum: "one_on_one" | "group" | "class"noDefault one_on_one
cooldownMinutesnumbernoMinimum gap before bookings can be cancelled (default 0)
requiresStaffbooleannoWhether the service requires staff assignment
requiresResourcebooleannoWhether the service requires a resource (room/equipment)
requiresConfirmationbooleannoIf true, bookings start as pending and need confirm_booking
requireLoginbooleannoDefault true — guests cannot book
visibilityenum: "public" | "members_only" | "hidden"noVisibility: public | members_only | hidden
allowedTierIdsarray<string>noRequired when visibility=members_only
statusenum: "active" | "inactive" | "archived"noDefault active
sortOrdernumbernoSort order (lower = earlier)
commissionTypeenum: "fixed" | "percentage" | nullnoCommission type: "fixed" or "percentage"
commissionValuestring | nullnoCommission amount as decimal string
commissionCurrencystring | nullnoCommission currency (ISO code)

update_service

Update an existing booking service. Pass only the fields you want to change.

ParameterTypeRequiredDescription
serviceIdstringyesService ID to update
namestringnoName
descriptionstringnoDescription
durationMinutesnumbernoDuration of one booking in minutes
pricestringnoDecimal string, e.g. "80.00"
capacitynumbernoParticipants per slot
categoryIdstring | nullnoCategory ID
statusenum: "active" | "inactive" | "archived"noStatus filter
visibilityenum: "public" | "members_only" | "hidden"noVisibility: public | members_only | hidden
requiresStaffbooleannoWhether the service requires staff assignment
requiresResourcebooleannoWhether the service requires a resource (room/equipment)
requiresConfirmationbooleannoIf true, bookings start pending and need explicit confirmation
requireLoginbooleannoIf true, guests cannot book without an account
cooldownMinutesnumbernoCooldown minutes between bookings
commissionTypeenum: "fixed" | "percentage" | nullnoCommission type: "fixed" or "percentage"
commissionValuestring | nullnoCommission amount as decimal string
commissionCurrencystring | nullnoCommission currency (ISO code)

create_service_schedule

Create a bookable schedule window for a service, including recurring weekly/daily availability.

ParameterTypeRequiredDescription
serviceIdstringyesService ID
datestringyesStart date or one-off date (YYYY-MM-DD)
startTimestringyesHH:MM (24h)
endTimestringyesHH:MM (24h)
maxCapacitynumbernoMax bookings per generated slot
staffIdstringnoOptional companyMembers.id to bind this schedule to staff
resourceIdstringnoOptional resource ID to bind this schedule to a room/resource
recurrenceenum: "none" | "daily" | "weekly" | "monthly"noDefault none
recurrenceIntervalnumbernoDefault 1
byWeekdayarray<integer>noWeekdays for weekly recurrence: 0=Mon, 1=Tue, ... 6=Sun
recurrenceEndDatestringnoYYYY-MM-DD
notesstringnoFree-form notes

list_service_schedules

List schedule windows for booking services.

ParameterTypeRequiredDescription
serviceIdstringnoService ID
staffIdstringnoStaff member ID
resourceIdstringnoResource ID (room/equipment)
dateFromstringnoYYYY-MM-DD
dateTostringnoYYYY-MM-DD
isOverridebooleannoFilter to override entries only
limitnumbernoMax results (default 20)

update_service_schedule

Update a service schedule window. Pass only fields to change.

ParameterTypeRequiredDescription
scheduleIdstringyesSchedule ID
datestringnoDate (YYYY-MM-DD)
startTimestringnoStart time (HH:mm)
endTimestringnoEnd time (HH:mm)
maxCapacitynumbernoMaximum capacity for this slot
staffIdstring | nullnoStaff member ID
resourceIdstring | nullnoResource ID (room/equipment)
recurrenceenum: "none" | "daily" | "weekly" | "monthly"noRecurrence rule: none | daily | weekly | monthly
recurrenceIntervalnumbernoRecurrence interval (e.g. every N weeks)
byWeekdayarray<integer> | nullnoWeekdays (0=Mon..6=Sun) for weekly recurrence
recurrenceEndDatestring | nullnoRecurrence end date (YYYY-MM-DD)
notesstring | nullnoFree-form notes

assign_staff_to_service

Assign a staff member to a booking service. Pass users.id from list_staff.userId.

ParameterTypeRequiredDescription
serviceIdstringyesService ID
userIdstringyesusers.id from list_staff.userId

link_resource_to_service

Link a room/resource to a booking service.

ParameterTypeRequiredDescription
serviceIdstringyesService ID
resourceIdstringyesResource 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.

ParameterTypeRequiredDescription
namestringyesCategory name
descriptionstringnoDescription
sortOrdernumbernoSort order (lower = earlier)

create_resource

Create a bookable resource (room, equipment, vehicle). Used by services that have requiresResource=true.

ParameterTypeRequiredDescription
namestringyesResource name (e.g. "Treatment Room A")
typestringyesFree-form type label, e.g. "room", "equipment"
descriptionstringnoDescription
capacitynumbernoHow many concurrent bookings (default 1)
statusenum: "active" | "inactive"noDefault 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.

ParameterTypeRequiredDescription
resourceIdstringyesResource ID
startTimestringyesHH:MM (24h)
endTimestringyesHH:MM (24h)
typeenum: "available" | "blocked"noDefault available
dayOfWeekenum: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun"noDay of week (0=Sun..6=Sat)
datestringnoYYYY-MM-DD for a specific date instead of dayOfWeek
isRecurringbooleannoDefault 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.

ParameterTypeRequiredDescription
memberIdstringyescompanyMembers.id of the staff
startTimestringyesHH:MM (24h)
endTimestringyesHH:MM (24h)
typeenum: "available" | "blocked"noDefault available
dayOfWeekenum: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun"noDay of week (0=Sun..6=Sat)
datestringnoYYYY-MM-DD for a specific date instead of dayOfWeek
isRecurringbooleannoDefault 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.

ParameterTypeRequiredDescription
globalCooldownDaysinteger | nullnoMinimum days between customer bookings, or null to disable
cooldownMessagestring | nullnoOptional message shown when cooldown blocks a booking
blockUntilFinishedbooleannoBlock customers from booking again while they have active bookings
showCouponbooleannoShow coupon field in booking flow
showAccessPassbooleannoShow access pass/package options in booking flow
accessPassBeforeMinutesintegernoMinutes before booking start when the access QR becomes usable
accessPassAfterMinutesintegernoMinutes after booking end when the access QR remains usable
premisePassCodestring | nullnoOne premise pass code for this company. Guest templates show it only when they include the pass code variable. Empty clears it.
calendarStyleenum: "list" | "calendar"noBooking flow calendar presentation
hideUnavailableTimeslotsbooleannoHide unavailable timeslots instead of showing them as full
bookingReminderEnabledbooleannoSend the default pre-booking reminder
bookingReminderLeadHoursintegernoHours before booking start for the default reminder
sameDayReminderEnabledbooleannoSend an additional same-day reminder before booking start
sameDayReminderLeadHoursintegernoHours before booking start for the same-day reminder
bookingReminderLeadHoursListarray<integer>noUp 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.
allowMemberCancellationbooleannoAllow members to cancel bookings from the customer portal
memberReschedulingModeenum: "disabled" | "merchant_only" | "member"noChoose whether rescheduling is disabled, merchant-only, or available to members
memberCancellationCutoffHoursinteger | nullnoHours before booking start when member cancellation closes, or null for no cutoff
minimumAdvanceBookingMinutesinteger | nullnoMinutes before slot start when customer booking closes. null/0 = no cutoff; set > 0 to require advance notice
requireBookingConfirmationbooleannoRequire merchant confirmation before bookings are confirmed

list_tickets

List support tickets with optional filters.

ParameterTypeRequiredDescription
statusenum: "open" | "in_progress" | "waiting_customer" | "resolved" | "closed"noFilter by status
priorityenum: "critical" | "high" | "medium" | "low"noFilter by priority
categoryenum: "bug" | "feature_request" | "account" | "billing" | "general" | "other"noFilter by category
accountIdstringnoFilter by CRM account ID
searchstringnoSearch by subject
limitnumbernoMax results (default 20)

get_ticket_stats

Get ticket counts grouped by status.

No parameters.

create_ticket

Create a support ticket for a member issue.

ParameterTypeRequiredDescription
subjectstringyesTicket subject/title
descriptionstringnoDetailed description of the issue
categoryenum: "bug" | "feature_request" | "account" | "billing" | "general" | "other"noTicket category
priorityenum: "critical" | "high" | "medium" | "low"noTicket priority
sourceenum: "portal" | "email" | "phone" | "walk_in" | "api" | "mobile_app"noWhere the ticket originated
accountIdstringnoMember/account ID this ticket is about
contactNamestringnoContact name if no account ID
contactEmailstringnoContact email if no account ID
contactPhonestringnoContact phone if no account ID

update_ticket_status

Update the status of an existing support ticket.

ParameterTypeRequiredDescription
ticketIdstringyesThe ticket ID to update
statusenum: "open" | "in_progress" | "waiting_customer" | "resolved" | "closed"yesNew status

list_surveys

List surveys with optional status/search filters.

ParameterTypeRequiredDescription
statusenum: "draft" | "published" | "closed" | "archived"noFilter by survey status
searchstringnoSearch survey title or description
limitnumbernoMax results (default 20)

create_survey

Create a survey with custom question blocks. Publish it later or set status to published for immediate portal access.

ParameterTypeRequiredDescription
titlestringyesSurvey title
descriptionstringnoOptional survey description
slugstringnoOptional URL slug; generated from title when omitted
statusenum: "draft" | "published" | "closed" | "archived"noInitial status
visibilityenum: "public" | "members_only" | "token_only" | "private"noWho can access the survey
questionBlocksarray<object>yesOrdered survey question blocks
settingsobjectnoSurvey settings such as allowMultipleResponses, collectEmail, collectIpAddress, requireAuthentication, showProgress, successMessage
openAtstringnoOptional ISO datetime when the survey opens
closeAtstringnoOptional ISO datetime when the survey closes

get_survey

Get survey detail, including blocks, publishing status, visibility, settings, and response count.

ParameterTypeRequiredDescription
surveyIdstringyesSurvey ID

update_survey

Update a survey draft or publishing configuration. Use questionBlocks to replace the ordered form block list.

ParameterTypeRequiredDescription
surveyIdstringyesSurvey ID
titlestringnoSurvey title
descriptionstring | nullnoSurvey description
slugstringnoURL slug
statusenum: "draft" | "published" | "closed" | "archived"noSurvey status
visibilityenum: "public" | "members_only" | "token_only" | "private"noSurvey access mode
questionBlocksarray<object>noOrdered survey question blocks
settingsobjectnoSurvey settings such as allowMultipleResponses, collectEmail, collectIpAddress, requireAuthentication, showProgress, successMessage
openAtstring | nullnoOptional ISO datetime when the survey opens
closeAtstring | nullnoOptional ISO datetime when the survey closes

archive_survey

Archive a survey and remove it from active survey lists.

ParameterTypeRequiredDescription
surveyIdstringyesSurvey ID to archive

get_survey_stats

Get response and invitation metrics for a survey overview dashboard.

ParameterTypeRequiredDescription
surveyIdstringyesSurvey ID

get_survey_responses

List responses for a survey.

ParameterTypeRequiredDescription
surveyIdstringyesSurvey ID
limitnumbernoMax responses (default 50)

list_survey_invitations

List survey invitation history without exposing token hashes or old invitation tokens.

ParameterTypeRequiredDescription
surveyIdstringyesSurvey ID
limitnumbernoMax invitations (default 50)

create_survey_invitation

Create a token-auth survey invitation for a specific member/account or contact.

ParameterTypeRequiredDescription
surveyIdstringyesSurvey ID
accountIdstringnoCRM account ID to invite
contactIdstringnoContact ID to invite
recipientEmailstringnoRecipient email for link tracking
recipientPhonestringnoRecipient phone for link tracking
recipientNamestringnoRecipient display name for link tracking
channelstringnoIntended channel, e.g. email, sms, whatsapp, link
expiresAtstringnoOptional invitation expiry ISO datetime
metadataobjectnoOptional invitation metadata

list_survey_workflows

List automation workflows attached to a survey.

ParameterTypeRequiredDescription
surveyIdstringyesSurvey ID

upsert_survey_workflow

Create or update a survey automation workflow, usually triggered by survey_response_submitted.

ParameterTypeRequiredDescription
surveyIdstringyesSurvey ID
workflowIdstringnoExisting workflow ID when updating
namestringyesWorkflow name
statusenum: "draft" | "active" | "disabled"noWorkflow status
triggerstringnoTrigger name, default from graph.trigger
graphobjectyesWorkflow graph definition

list_deals

List CRM deals (sales pipeline) with optional filters.

ParameterTypeRequiredDescription
pagenumbernoPage number (default 1)
limitnumbernoItems per page (default 20)
searchstringnoSearch by name or description
accountIdstringnoFilter by account
stagestringnoFilter by stage
dealTypestringnoFilter by deal type

get_deal

Get detailed CRM deal information by ID.

ParameterTypeRequiredDescription
dealIdstringyesThe deal ID

create_deal

Create a CRM sales pipeline deal, optionally linked to a customer account and contact.

ParameterTypeRequiredDescription
namestringyesDeal name
accountIdstring | nullnoLinked CRM account ID
contactIdstring | nullnoLinked contact ID
amountnumber | nullnoDeal amount
closingDatestring | nullnoExpected closing date
stagestring | nullnoPipeline stage
probabilitystring | nullnoWin probability, e.g. 25
dealTypestring | nullnoDeal type/category
descriptionstring | nullnoDeal notes or description
ownerIdstring | nullnoOwner user/team member ID

update_deal

Update a CRM deal. Pass only fields to change; use null for nullable links/fields to clear them.

ParameterTypeRequiredDescription
dealIdstringyesThe deal ID
namestringnoDeal name
accountIdstring | nullnoLinked CRM account ID, or null to clear
contactIdstring | nullnoLinked contact ID, or null to clear
amountnumber | nullnoDeal amount, or null to clear
closingDatestring | nullnoExpected closing date, or null to clear
stagestring | nullnoPipeline stage, or null to clear
probabilitystring | nullnoWin probability, or null to clear
dealTypestring | nullnoDeal type/category, or null to clear
descriptionstring | nullnoDeal notes or description, or null to clear
ownerIdstring | nullnoOwner user/team member ID, or null to clear

delete_deal

Soft-delete a CRM deal from the sales pipeline.

ParameterTypeRequiredDescription
dealIdstringyesThe deal ID to delete

update_deal_stage

Move a deal to a different pipeline stage.

ParameterTypeRequiredDescription
dealIdstringyesThe deal ID
stageenum: "discovery" | "qualified" | "proposal" | "negotiation" | "won" | "lost" | "lead" | "new" …yesNew pipeline stage. "lead", "new" and "open" are accepted aliases of "discovery".
probabilitystringnoOptional win probability (percent string)
lostReasonstringnoRequired when moving to lost

mark_deal_won

Mark a CRM deal as won and set close date.

ParameterTypeRequiredDescription
dealIdstringyesThe deal ID
closingDatestringnoOptional close date (YYYY-MM-DD)

mark_deal_lost

Mark a CRM deal as lost. Requires a lost reason.

ParameterTypeRequiredDescription
dealIdstringyesThe deal ID
reasonstringyesWhy 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.

ParameterTypeRequiredDescription
accountIdstringyesLead account ID
createDealbooleannoDeprecated and ignored — a convert always links a deal
dealNamestringnoOptional deal name
dealAmountnumbernoOptional deal amount
dealStageenum: "discovery" | "qualified" | "proposal" | "negotiation" | "won" | "lost" | "lead" | "new" …noOptional initial deal stage ("lead" is an alias of "discovery")
dealClosingDatestringnoOptional deal close date
lifeStageenum: "active" | "vip"noLifecycle after convert (default active)

list_contacts

List contacts (people linked to CRM accounts), optionally filtered by account or search.

ParameterTypeRequiredDescription
accountIdstringnoFilter by account
searchstringnoMatch name, email, or phone
limitnumbernoMax results (default 20)

get_contact

Fetch a single contact by ID.

ParameterTypeRequiredDescription
contactIdstringyesThe contact ID

create_contact

Create a contact on an existing CRM account.

ParameterTypeRequiredDescription
accountIdstringyesOwning account ID
namestringyesContact name
emailstringnoEmail
phonestringnoPhone
jobTitlestringnoJob title
isPrimarybooleannoMark as primary contact

update_contact

Update fields on an existing contact.

ParameterTypeRequiredDescription
contactIdstringyesThe contact ID
namestringnoName
emailstringnoEmail address
phonestringnoPhone number
jobTitlestringnoJob title
isPrimarybooleannoMark 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.

ParameterTypeRequiredDescription
contactIdstringyesThe contact ID to make primary

delete_contact

Delete a secondary contact. Primary contacts are protected; set another primary contact or delete the account instead.

ParameterTypeRequiredDescription
contactIdstringyesThe contact ID to delete

list_custom_fields

List custom field definitions for CRM entities such as account, contact, deal, or booking.

ParameterTypeRequiredDescription
entityTypeenum: "account" | "contact" | "deal" | "booking" | "ticket" | "product" | "post"yesEntity type the custom fields belong to

get_custom_field

Get a custom field definition by ID.

ParameterTypeRequiredDescription
definitionIdstringyesCustom field definition ID

create_custom_field

Create a custom field definition for CRM entities. Use options for select or multiselect fields.

ParameterTypeRequiredDescription
entityTypeenum: "account" | "contact" | "deal" | "booking" | "ticket" | "product" | "post"yesEntity type, e.g. account, contact, deal, booking
fieldNamestringyesStable machine name, e.g. preferred_branch
fieldLabelstringyesHuman-readable label, e.g. Preferred branch
fieldTypeenum: "text" | "number" | "date" | "select" | "multiselect" | "boolean" | "url" | "email" …yesField type
optionsarray<string>noAllowed values for select/multiselect fields
isRequiredbooleannoWhether this field is required
sortOrdernumbernoDisplay order

update_custom_field

Update a custom field definition label, type, options, required flag, or sort order.

ParameterTypeRequiredDescription
definitionIdstringyesCustom field definition ID
fieldLabelstringnoHuman-readable label
fieldTypeenum: "text" | "number" | "date" | "select" | "multiselect" | "boolean" | "url" | "email" …noField type
optionsarray<string>noAllowed values for select/multiselect fields
isRequiredbooleannoWhether this field is required
sortOrdernumbernoDisplay order

delete_custom_field

Delete a custom field definition and its stored values.

ParameterTypeRequiredDescription
definitionIdstringyesCustom field definition ID

get_custom_field_values

Get custom field values for a CRM entity such as an account, contact, deal, or booking.

ParameterTypeRequiredDescription
entityTypeenum: "account" | "contact" | "deal" | "booking" | "ticket" | "product" | "post"yesEntity type
entityIdstringyesEntity 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.

ParameterTypeRequiredDescription
entityTypeenum: "account" | "contact" | "deal" | "booking" | "ticket" | "product" | "post"yesEntity type
entityIdstringyesEntity ID
valuesarray<object>yesValues to upsert

list_tasks

List tasks with optional status, assignee, and account filters.

ParameterTypeRequiredDescription
statusenum: "todo" | "in_progress" | "blocked" | "done"noFilter by task status
assigneeIdstringnoFilter by assignee company_members.id
accountIdstringnoFilter by related CRM account
limitnumbernoMax results (default 20)

get_task

Get detailed task information by ID.

ParameterTypeRequiredDescription
taskIdstringyesThe task ID

create_task

Create a task. Optionally link to a CRM account or assign to a team member.

ParameterTypeRequiredDescription
titlestringyesTask title
descriptionstringnoDescription
priorityenum: "low" | "medium" | "high" | "urgent"noPriority
statusenum: "todo" | "in_progress" | "blocked" | "done"noStatus filter
assigneeIdstringnocompany_members.id
accountIdstringnoLinked CRM account
dueDatestringnoISO date (YYYY-MM-DD)

update_task

Update a task (status, priority, assignee, due date, completion).

ParameterTypeRequiredDescription
taskIdstringyesThe task ID
statusenum: "todo" | "in_progress" | "blocked" | "done"noStatus filter
priorityenum: "low" | "medium" | "high" | "urgent"noPriority
titlestringnoTitle
descriptionstringnoDescription
assigneeIdstringnoAssignee company_members.id (team member ID, not user ID)
dueDatestringnoDue date (ISO 8601)

delete_task

Soft-delete a CRM task.

ParameterTypeRequiredDescription
taskIdstringyesThe task ID to delete

search_crm

Search across CRM accounts and contacts by name, email, or phone.

ParameterTypeRequiredDescription
querystringyesSearch string
limitnumbernoMax per entity (default 10)

list_invoices

List invoices with optional filters. Use status "OVERDUE" to find unpaid invoices past due date.

ParameterTypeRequiredDescription
statusenum: "DRAFT" | "SENT" | "PARTIALLY_PAID" | "PAID" | "OVERDUE" | "VOID" | "CANCELLED"noFilter by invoice status
searchstringnoSearch by invoice number, account name, email, or phone
sortstringnoSort column
orderenum: "asc" | "desc"noSort order
limitnumbernoMax results (default 20)

get_invoice

Fetch a single invoice with line items, payment history, and customer detail.

ParameterTypeRequiredDescription
invoiceIdstringyesInvoice ID

create_invoice

Create a new invoice for a customer. Optionally include line items inline. Returns the new invoiceId.

ParameterTypeRequiredDescription
accountIdstringyesCustomer accountId (CRM account)
currencystringnoISO currency code (defaults to company default)
dueDatestringnoDue date (ISO 8601 date)
notesstringnoFree-form notes shown on the invoice
lineItemsarray<object>noLine 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.

ParameterTypeRequiredDescription
invoiceIdstringyesInvoice ID to record payment against
amountstringyesPayment amount as decimal string, e.g. "100.00"
methodenum: "cash" | "bank_transfer" | "cheque" | "card" | "stripe" | "qfpay" | "eftpay" | "yedpay" …yesPayment method
referencestringnoExternal reference (cheque number, bank transfer ID)
notestringnoInternal 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.

ParameterTypeRequiredDescription
invoiceIdstringyesInvoice 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.

ParameterTypeRequiredDescription
invoiceIdstringyesInvoice ID to void

delete_invoice

Delete a DRAFT invoice. Only invoices that have never been sent can be deleted; otherwise use void_invoice.

ParameterTypeRequiredDescription
invoiceIdstringyesInvoice ID to delete

restore_invoice

Restore a previously deleted DRAFT invoice.

ParameterTypeRequiredDescription
invoiceIdstringyesInvoice 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.

ParameterTypeRequiredDescription
eventIdstringyesEvent ID
statusesarray<enum: "pending" | "confirmed" | "paid" | "cancelled">noRegistration statuses to include. Omit to include all statuses.
limitintegernoMax results (default 50, maximum 100)
offsetintegernoNumber 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.

ParameterTypeRequiredDescription
eventIdstringyesEvent ID

list_events

List events for the active company with optional status and search filters.

ParameterTypeRequiredDescription
statusenum: "DRAFT" | "PUBLISHED" | "CANCELLED" | "COMPLETED"noFilter by event status
searchstringnoSearch event title or venue
limitintegernoMax results (default 20)
offsetintegernoOffset (default 0)

create_event

Create a new event (initially DRAFT unless status is specified) for the active company.

ParameterTypeRequiredDescription
namestringyesEvent title
descriptionstringnoEvent description or introduction
startDatestringnoISO start date/time
endDatestringnoISO end date/time
locationstringnoVenue name
venueAddressstringnoStreet address of the venue
ticketPricenumbernoTicket price in major currency units (0 for free)
visibilityenum: "public" | "members_only"noEvent visibility
deliveryModeenum: "in_person" | "online" | "hybrid"noDelivery format

check_in_event_attendee

Mark an event attendee registration as present or absent for a specific event session.

ParameterTypeRequiredDescription
eventIdstringyesEvent ID
sessionIdstringyesEvent session ID
registrationIdstringyesEvent registration ID
statusenum: "present" | "absent"noAttendance status (default: present)
reasonstringnoOptional note or reason

list_tutor_courses

List structured courses and multi-session classes in the active company.

ParameterTypeRequiredDescription
statusenum: "draft" | "published" | "archived"noFilter by course status
limitintegernoMax results (default 25)
offsetintegernoOffset (default 0)

get_tutor_course

Retrieve full details, sections, and enrollment summary for a structured course.

ParameterTypeRequiredDescription
courseIdstringyesCourse ID

create_tutor_course

Create a new draft structured course or class curriculum.

ParameterTypeRequiredDescription
namestringyesCourse title
descriptionstringnoCourse syllabus or overview
levelstringnoSkill or grade level label
requiresLevelApprovalbooleannoRequire instructor approval before enrollment
startsOnstringnoCourse start date (YYYY-MM-DD)
endsOnstringnoCourse end date (YYYY-MM-DD)

list_subscriptions

List member subscriptions. Filter by status to find active, cancelled, or past-due subscriptions.

ParameterTypeRequiredDescription
statusenum: "trialing" | "active" | "past_due" | "cancelled"noFilter by subscription status
limitnumbernoMax results (default 20)

get_subscription

Fetch a single subscription with customer, tier, billing cycle, and renewal info.

ParameterTypeRequiredDescription
subscriptionIdstringyesSubscription ID

create_subscription

Create a manual, non-renewing subscription record for a member. Use a subscription action link for provider-backed recurring billing.

ParameterTypeRequiredDescription
accountIdstringyesCustomer accountId
tierIdstringnoMembership tier ID — if set, amount/currency default from the tier
billingCycleenum: "monthly" | "quarterly" | "yearly" | "one_off"noBilling cycle (default monthly)
amountnumbernoOverride amount per cycle (otherwise derived from tier)
currencystringnoISO currency code (otherwise derived from tier or company default)
autoRenewbooleannoManual records cannot auto-renew
currentPeriodStartstringnoPeriod start (ISO 8601). Defaults to now.
currentPeriodEndstringnoPeriod 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.

ParameterTypeRequiredDescription
subscriptionIdstringyesSubscription ID

resume_subscription

Resume a paused manual subscription back to active. Provider-backed subscriptions must be managed at the payment provider.

ParameterTypeRequiredDescription
subscriptionIdstringyesSubscription 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.

ParameterTypeRequiredDescription
subscriptionIdstringyesSubscription ID

list_campaigns

List marketing campaigns (email, SMS, WhatsApp, or push) with delivery stats. Use the returned IDs when excluding recipients of previous campaigns.

ParameterTypeRequiredDescription
channelenum: "sms" | "email" | "whatsapp" | "push"noFilter by channel
searchstringnoSearch by campaign name
sortstringnoSort column
orderenum: "asc" | "desc"noSort order
limitnumbernoMax results (default 20)

get_campaign

Get a campaign by ID, including its recipient source, audience exclusions, channel configuration, and delivery stats.

ParameterTypeRequiredDescription
campaignIdstringyesCampaign 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".

ParameterTypeRequiredDescription
namestringyesCampaign name (internal)
channelenum: "sms" | "email" | "whatsapp" | "push"yesemail | sms | whatsapp | push
statusenum: "DRAFT" | "SCHEDULED"noDefault DRAFT
recipientSourceenum: "all" | "segment" | "individual" | "csv" | "list"noWhere to source recipients from. "list" is normalized to "individual".
segmentIdstring | nullnoRequired if recipientSource="segment"
recipientIdsarray<string>noRequired if recipientSource="individual", "list", or "csv"; values are account IDs
audienceExclusionsobjectnoOptional 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.
channelConfigobjectnoChannel-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.
scheduledAtstring | nullnoISO 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.

ParameterTypeRequiredDescription
campaignIdstringyesCampaign ID
namestringnoName
statusenum: "DRAFT" | "SCHEDULED" | "PAUSED" | "CANCELLED"noNew campaign status
recipientSourceenum: "all" | "segment" | "individual" | "csv" | "list"noRecipient source: all | segment | individual | csv | list
segmentIdstring | nullnoSegment ID
recipientIdsarray<string>noExplicit customer account IDs
audienceExclusionsobjectnoOptional exclusions: accountIds contains specific customer account IDs; campaignIds contains previous campaign IDs whose accepted recipients must be omitted. Pass empty arrays to clear exclusions.
channelConfigobjectnoFor email, use subject + htmlBody + optional plainTextBody. Legacy html is normalized to htmlBody.
scheduledAtstring | nullnoScheduled timestamp (ISO 8601)

delete_campaign

Delete a campaign. Only allowed in DRAFT status; sent campaigns are kept for audit history.

ParameterTypeRequiredDescription
campaignIdstringyesCampaign ID

restore_campaign

Restore a previously deleted campaign.

ParameterTypeRequiredDescription
campaignIdstringyesCampaign 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.

ParameterTypeRequiredDescription
campaignIdstringyesBuffered 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.

ParameterTypeRequiredDescription
campaignIdstringyesCampaign ID to validate

list_notification_logs

List notification delivery logs for the current company. Recipients are masked by default for incident-response safety.

ParameterTypeRequiredDescription
channelenum: "email" | "sms" | "whatsapp" | "push"noNotification channel filter
eventTypeenum: "account_created" | "account_updated" | "booking_created" | "booking_confirmed" | "booking_checked_in" | "booking_cancelled" | "booking_completed" | "booking_reminder" …noEvent type filter
statusenum: "pending" | "retrying" | "sent" | "delivered" | "failed" | "skipped"noStatus filter
recipientstringnoSubstring search on recipient
entityIdstringnoEntity ID filter
dateFromstringnoISO timestamp lower bound
dateTostringnoISO timestamp upper bound
limitnumbernoMax 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.

ParameterTypeRequiredDescription
channelenum: "whatsapp" | "sms" | "email" | "messenger" | "instagram" | "threads" | "web_form"noFilter by channel
statusenum: "active" | "archived" | "closed"noFilter by conversation status
searchstringnoSearch by contact name, phone, or email
assigneeenum: "mine" | "unassigned"no"mine": conversations assigned to you. "unassigned": no assignee. Cannot be combined with assignedToId.
assignedToIdstringnoOnly conversations assigned to this company member ID (companyMembers.id)
pagenumbernoPage number (default 1)
limitnumbernoPage 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.

ParameterTypeRequiredDescription
limitintegernoMaximum rows to return
actionstringnoExact tool/action name, e.g. delete_campaign
resourcestringnoResource name, e.g. campaigns
resourceIdstringnoResource ID
userIdstringnoActor user ID
sourceenum: "mcp" | "ai_agent" | "merchant_api" | "payment_webhook" | "manual_refresh" | "qfpay_reconciliation" | "hold_expiry_sweeper"noAudit source, e.g. mcp, ai_agent, payment_webhook, merchant_api
outcomeenum: "success" | "failed" | "blocked"noExecution outcome
destructivebooleannoWhether the audited tool was destructive
createdAfterstringnoISO timestamp lower bound
createdBeforestringnoISO timestamp upper bound

search_audit_logs

Search audit logs by free text across action, resource, resource ID, changes JSON, and metadata JSON.

ParameterTypeRequiredDescription
querystringyesText to search for
limitintegernoMaximum rows to return
createdAfterstringnoISO timestamp lower bound
createdBeforestringnoISO timestamp upper bound

get_audit_log

Fetch a single audit log entry by ID, including before/after snapshots when available.

ParameterTypeRequiredDescription
auditLogIdstringyesAudit 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.

ParameterTypeRequiredDescription
auditLogIdstringyesAudit log ID to revert
reasonstringnoReason 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.

ParameterTypeRequiredDescription
entityTypeenum: "product" | "tier" | "campaign" | "post" | "service_package" | "promotion" | "gift_offer"yesType of entity to clone
entityIdstringyesID of the entity to clone
namestringnoOverride the name of the cloned entity (defaults to "Original Name (Copy)")

list_notes

List notes attached to a member/account, booking, or ticket.

ParameterTypeRequiredDescription
entityTypeenum: "account" | "booking" | "ticket" | "invoice"yesType of entity the notes are on
entityIdstringyesThe entity ID
limitnumbernoMax results (default 10)

create_note

Add a note to a member/account, booking, ticket, or invoice.

ParameterTypeRequiredDescription
entityTypeenum: "account" | "booking" | "ticket" | "invoice"yesType of entity
entityIdstringyesThe entity ID
bodystringyesNote content
isPinnedbooleannoPin this note to the top

confirm_booking

Confirm a pending booking.

ParameterTypeRequiredDescription
bookingIdstringyesThe booking ID to confirm

cancel_booking

Cancel a booking and create a durable refund receipt. Uses the merchant refund setting unless refundMethod is provided.

ParameterTypeRequiredDescription
bookingIdstringyesThe booking ID to cancel
reasonstringnoCancellation reason
refundMethodenum: "manual" | "account_credit"noRefund cash manually or convert refundable cash to member credit
idempotencyKeystringyesUnique 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.

ParameterTypeRequiredDescription
bookingIdstringyesThe booking ID to complete

mark_no_show

Mark a booking as no-show when the customer did not attend.

ParameterTypeRequiredDescription
bookingIdstringyesThe 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.

ParameterTypeRequiredDescription
bookingIdstringyesThe booking ID to reschedule
bookingDatestringnoNew date in YYYY-MM-DD format
startTimestringnoNew start time in HH:MM format
endTimestringnoNew end time in HH:MM format
scheduleIdstringnoTarget schedule slot ID when moving between schedule windows
staffIdstring | nullnoReassign to the staff userId returned by list_staff; null clears the assignment
resourceIdstring | nullnoAssign this resource ID; null clears the assignment
notesstring | nullnoReplace the booking notes

list_promotions

List promotion/coupon codes with optional status filter.

ParameterTypeRequiredDescription
statusenum: "DRAFT" | "ACTIVE" | "PAUSED" | "EXPIRED"noFilter by status
searchstringnoSearch by name
limitnumbernoMax results (default 20)

get_promotion

Get details of a specific promotion/coupon code.

ParameterTypeRequiredDescription
promotionIdstringyesThe 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.

ParameterTypeRequiredDescription
namestringyesPromotion name (internal)
codestringyesCoupon code customers enter at checkout (auto-uppercased)
valuestringyesDiscount value as decimal string
typeenum: "percentage" | "fixed_amount"noDefault percentage
descriptionstringnoDescription
maximumDiscountstring | nullnoCap on percentage discounts, decimal string
statusenum: "active" | "inactive" | "expired"noDefault active
startsAtstring | nullnoISO datetime — when the promo becomes valid
endsAtstring | nullnoISO datetime — when the promo expires
usageLimitTotalnumber | nullnoMax total uses across all customers
usageLimitPerCustomernumber | nullnoMax uses per single customer
minimumAmountstring | nullnoMinimum order amount required, decimal string
minimumQuantitynumber | nullnoMinimum item count required
bookingEnabledbooleannoAllow on bookings
eventEnabledbooleannoAllow on event registrations
onlineEnabledbooleannoAllow on online shop orders
posEnabledbooleannoAllow at POS

update_promotion

Update an existing promotion. Pass only the fields you want to change.

ParameterTypeRequiredDescription
promotionIdstringyesPromotion ID
namestringnoName
codestringnoPromotion code
valuestringnoDiscount value (numeric or decimal string)
typeenum: "percentage" | "fixed_amount"noType
statusenum: "active" | "inactive" | "expired"noStatus filter
startsAtstring | nullnoStart timestamp (ISO 8601)
endsAtstring | nullnoEnd timestamp (ISO 8601)
usageLimitTotalnumber | nullnoTotal usage limit across all customers
usageLimitPerCustomernumber | nullnoUsage limit per customer

delete_promotion

Delete a promotion. Past usage records are preserved.

ParameterTypeRequiredDescription
promotionIdstringyesPromotion ID

restore_promotion

Restore a previously deleted promotion.

ParameterTypeRequiredDescription
promotionIdstringyesPromotion 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.

ParameterTypeRequiredDescription
promotionCodestringyesThe code customer entered
channelenum: "booking" | "event" | "online" | "pos"yesWhere the promo is being applied
amountnumberyesOrder subtotal in major units (dollars, not cents)
accountIdstringnoCustomer account ID — used for per-customer usage limits

list_reward_schemes

List loyalty reward schemes (points/stamps programs) configured for this business.

ParameterTypeRequiredDescription
searchstringnoSearch by name
limitnumbernoMax results (default 20)

list_staff

List staff/team members in the business.

ParameterTypeRequiredDescription
limitnumbernoMax results (default 20)

list_resources

List booking resources (rooms, equipment, etc.).

ParameterTypeRequiredDescription
limitnumbernoMax results (default 20)

list_service_packages

List service packages/prepaid session bundles with optional search, status, sorting, and pagination.

ParameterTypeRequiredDescription
searchstringnoSearch package name
statusenum: "ACTIVE" | "INACTIVE"noFilter by package status
sortstringnoSort column: name, price, or createdAt
orderenum: "asc" | "desc"noSort order
limitnumbernoMax results (default 20)

get_service_package

Get service package detail including applicability and selected booking service/event items.

ParameterTypeRequiredDescription
packageIdstringyesService 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.

ParameterTypeRequiredDescription
namestringyesPackage name
descriptionstringnoDescription
sessionCountintegeryesNumber of included sessions
pricenumberyesPackage price
validDaysintegeryesValidity window after purchase, in days
applicableTypeenum: "ALL" | "ALL_BOOKINGS" | "ALL_EVENTS" | "SELECTED"noDefault ALL
statusenum: "ACTIVE" | "INACTIVE"noDefault ACTIVE
applicableItemsarray<object>noItems used when applicableType=SELECTED

update_service_package

Update an existing service package. Pass only the fields you want to change.

ParameterTypeRequiredDescription
packageIdstringyesService package ID to update
namestringnoName
descriptionstring | nullnoDescription
sessionCountintegernoNumber of sessions in the package
pricenumbernoDecimal string, e.g. "80.00"
validDaysintegernoValidity period in days
applicableTypeenum: "ALL" | "ALL_BOOKINGS" | "ALL_EVENTS" | "SELECTED"noWhat this package applies to: services | products | both
statusenum: "ACTIVE" | "INACTIVE"noStatus filter
applicableItemsarray<object>noItem IDs the package can be redeemed against

delete_service_package

Delete a service package by ID.

ParameterTypeRequiredDescription
packageIdstringyesService package ID to delete

restore_service_package

Restore a previously deleted service package by ID.

ParameterTypeRequiredDescription
packageIdstringyesService 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.

ParameterTypeRequiredDescription
toolNamestringnoMCP tool name to preflight, e.g. create_account
quotaCodestringnoQuota code to check, e.g. contacts or mcp_calls_per_minute
moduleCodestringnoModule code to check, e.g. whatsapp or crm
deltaintegernoPlanned 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.

ParameterTypeRequiredDescription
planIdstringnoTarget plan ID. Use list_plan_options first if unknown.
planCodestringnoTarget plan code, e.g. favcrm-lite. Either planId or planCode is required.
billingCycleenum: "monthly" | "yearly"no
returnUrlstringnoWhere Stripe should return after checkout/portal. Defaults to merchant billing settings.
confirmbooleannoRequired 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.

ParameterTypeRequiredDescription
emailstringyesInvitee email address
namestringnoOptional display name for a new user
roleenum: "manager" | "staff"noTeam member role to grant on acceptance
permissionsarray<object>noOptional structured module permissions to attach to the company member
modulesarray<string>noOptional legacy module list to attach to the company member
expiresInHoursintegernoInvite 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.

ParameterTypeRequiredDescription
tokenstringyesInvite 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.

ParameterTypeRequiredDescription
tokenstringyesInvite token returned by create_team_member_invite or from the invite link
codestringyes6-digit code from the invite email
namestringnoOptional 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.

ParameterTypeRequiredDescription
onboardingModeenum: "cloud_api" | "coexistence"noUse cloud_api for a new WhatsApp Cloud API connection, or coexistence when connecting a WhatsApp Business App number.
ttlMinutesintegernoConnect 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.

ParameterTypeRequiredDescription
companyIdstringyesThe 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.

ParameterTypeRequiredDescription
typestringnoFilter by post type slug (blog_post, page, or any custom type — see list_post_types).
statusenum: "draft" | "scheduled" | "published" | "archived"noFilter by status
searchstringnoSearch by title
limitnumbernoMax results (default 20)

get_post

Get detailed CMS post including content blocks, categories, and tags.

ParameterTypeRequiredDescription
postIdstringyesThe 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.

ParameterTypeRequiredDescription
typestringyesPost type slug (e.g. blog_post, page, treatment). Must exist in post_types for this company.
titlestringyesPost title
slugstringnoURL slug. Auto-generated from title if omitted; collisions get -2, -3 suffix.
blocksarray<any>noOrdered 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.
excerptstringnoPlain-text summary only — never JSON. Auto-derived from the first paragraph/heading block if omitted and the post type supports excerpts.
featuredImagestringnoCover image URL
statusenum: "draft" | "scheduled" | "published" | "archived"noStatus (default draft)
visibilityenum: "public" | "private" | "members_only"noVisibility (default public)
categoryIdsarray<string>noCategory IDs (post types with supportsCategories only)
tagIdsarray<string>noTag IDs to attach to the post
metaobjectnoStructured 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.
seoTitlestringnoSEO title override
seoDescriptionstringnoSEO meta description
parentIdstring | nullnoParent post ID for nested types (e.g. pages).
sortOrdernumbernoSort order (lower = earlier)
publishedAtstring | nullnoISO timestamp; required when status=scheduled.

update_post

Update an existing CMS post (any post type). Only provided fields are changed.

ParameterTypeRequiredDescription
postIdstringyesThe post ID
typestringnoChange post type (e.g. blog_post → treatment). Slug is re-checked for uniqueness under the new type.
titlestringnoPost title
slugstringnoURL slug (must be unique per company+type).
blocksarray<any>noReplaces 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,…
featuredImagestringnoCover image URL
statusenum: "draft" | "scheduled" | "published" | "archived"noPost status
visibilityenum: "public" | "private" | "members_only"noVisibility
excerptstringnoPlain-text summary only — never JSON. Omit to leave unchanged.
categoryIdsarray<string>noCategory IDs
tagIdsarray<string>noTag IDs to sync (replaces existing tags)
metaobjectnoCustom field values; merged shallowly with existing meta. Use this for structured data, not excerpt.
seoTitlestringnoSEO title override
seoDescriptionstringnoSEO description override
parentIdstring | nullnoParent post ID for nested types.
sortOrdernumbernoSort order (lower = earlier)
publishedAtstring | nullnoPublish timestamp (ISO 8601)

delete_post

Delete a CMS post by ID. Soft-deleted posts can be restored with restore_post.

ParameterTypeRequiredDescription
postIdstringyesThe post ID

restore_post

Restore a previously deleted CMS post.

ParameterTypeRequiredDescription
postIdstringyesThe 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.

ParameterTypeRequiredDescription
promptstringyesGeneration prompt
modelCodestringyesImage model code from list_image_models
aspectRatiostringnoOutput aspect ratio (e.g. 16:9, 1:1)
negativePromptstringnoThings to exclude from generation
seedintegernoRandom seed for reproducible output
pollTimeoutMsintegernoDefault 60000.
pollIntervalMsintegernoDefault 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.

ParameterTypeRequiredDescription
postIdstringyesThe post ID
promptstringyesImage generation prompt
modelCodestringyesImage model code from list_image_models (e.g. nano-banana-2)
aspectRatiostringnoAspect ratio passed to the model, e.g. "16:9", "1:1"
negativePromptstringnoThings to exclude from generation
seedintegernoRandom seed for reproducible output
pollTimeoutMsintegernoDefault 60000.
pollIntervalMsintegernoDefault 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.

ParameterTypeRequiredDescription
postIdstringyesThe post ID
jobIdstringyesThe ai-media job ID (from generate_image, generate_post_cover, or POST /v6/merchant/ai-media/generate)
assetIndexintegernoWhich asset to use when the job produced multiple outputs. Default 0.
pollIfRunningbooleannoWhen true, advance polling once if the job is still running. Default true.
pollTimeoutMsintegernoWhen 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.

ParameterTypeRequiredDescription
postIdstringyesThe post ID
sourceUrlstringyesPublic 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.

ParameterTypeRequiredDescription
namestringyesCategory name
slugstringnoAuto-generated from name if omitted.
descriptionstringnoDescription
sortOrdernumbernoSort order (lower = earlier)

update_category

Update a CMS post category.

ParameterTypeRequiredDescription
categoryIdstringyesCategory ID
namestringnoName
slugstringnoURL slug
descriptionstring | nullnoDescription
sortOrdernumbernoSort order (lower = earlier)

delete_category

Delete a CMS post category. Posts in the category are not deleted; they are simply unlinked.

ParameterTypeRequiredDescription
categoryIdstringyesCategory ID

restore_category

Restore a previously deleted CMS post category.

ParameterTypeRequiredDescription
categoryIdstringyesCategory 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.

ParameterTypeRequiredDescription
slugstringyesLowercase identifier, e.g. "treatment". Auto-derived from label if omitted.
labelstringyesSingular UI label, e.g. "Treatment"
labelPluralstringyesPlural UI label, e.g. "Treatments"
iconstring | nullnoIcon name or URL
supportsCategoriesbooleannoDefault true
supportsFeaturedImagebooleannoDefault true
supportsNestingbooleannoDefault false
supportsExcerptbooleannoDefault true
supportsBlocksbooleannoDefault true
sortOrdernumbernoSort 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.

ParameterTypeRequiredDescription
postTypeIdstringyesPost 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.

ParameterTypeRequiredDescription
postTypeIdstringyesPost type ID (from list_post_types)
labelstringyesHuman-readable field label, e.g. "Tagline"
fieldTypeenum: "text" | "textarea" | "richtext" | "number" | "boolean" | "date" | "datetime" | "select" …yesField type: text | textarea | richtext | number | boolean | date | datetime | select | multiselect | url | email | image | file | gallery | attachments | repeater
keystringnosnake_case key used in meta. Auto-derived from label if omitted.
requiredbooleannoWhether the field is required on post creation (default false)
helpTextstringnoOptional hint shown in the UI
optionsobjectnoFor 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.
fieldsarray<object>noRequired for fieldType="repeater". Defines the child fields stored in each row object.
sortOrdernumbernoSort order (lower = earlier)

update_post_type

Update a custom post type. Built-in types (blog_post, page) cannot be modified.

ParameterTypeRequiredDescription
postTypeIdstringyesPost type ID
labelstringnoDisplay label
labelPluralstringnoPlural display label
iconstring | nullnoIcon name or URL
supportsCategoriesbooleannoAllow categories on this post type
supportsFeaturedImagebooleannoAllow a featured image
supportsNestingbooleannoAllow parent/child nesting
supportsExcerptbooleannoAllow an excerpt field
supportsBlocksbooleannoAllow content blocks (rich body)
sortOrdernumbernoSort 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.

ParameterTypeRequiredDescription
postTypeIdstringyesPost type ID

restore_post_type

Restore a previously deleted custom post type.

ParameterTypeRequiredDescription
postTypeIdstringyesPost 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.

ParameterTypeRequiredDescription
postTypeIdstringyesPost type ID
fieldIdstringyesField ID
labelstringnoDisplay label
fieldTypeenum: "text" | "textarea" | "richtext" | "number" | "boolean" | "date" | "datetime" | "select" …noField type
requiredbooleannoWhether the field is required
helpTextstring | nullnoHelp text shown next to the input
optionsobject | nullnoFor URL fields, { uploadable: true } enables file upload while preserving a URL string in meta.
fieldsarray<object> | nullnoChild fields for fieldType="repeater".
sortOrdernumbernoSort order (lower = earlier)
forcebooleannoOverride 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).

ParameterTypeRequiredDescription
postTypeIdstringyesPost type ID
fieldIdstringyesField ID
forcebooleannoDelete 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.

ParameterTypeRequiredDescription
postTypeIdstringyesPost type ID
fieldIdstringyesField ID

reorder_post_type_fields

Reorder fields on a post type. Pass field IDs in the desired display order; sortOrder is updated to match.

ParameterTypeRequiredDescription
postTypeIdstringyesPost type ID
orderedFieldIdsarray<string>yesField 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.

ParameterTypeRequiredDescription
postIdstringyesThe post ID
blocksarray<any>yesBlock(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.

ParameterTypeRequiredDescription
postIdstringyesThe post ID
indexintegeryes0-based index of the block to replace
blockobject | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | objectyesReplacement block

remove_post_block

Remove the block at the given index (0-based). All subsequent blocks shift up by one.

ParameterTypeRequiredDescription
postIdstringyesThe post ID
indexintegeryes0-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.

ParameterTypeRequiredDescription
postIdstringyesThe post ID
orderedBlockIdsarray<string>yesBlock 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.

ParameterTypeRequiredDescription
serviceIdstringyesThe service ID
accountIdstringyesThe member/account ID
bookingDatestringyesDate in YYYY-MM-DD format
startTimestringyesStart time in HH:MM format
endTimestringyesEnd time in HH:MM format
staffIdstringnoStaff member ID
resourceIdstringnoResource ID
outletIdstringnoOutlet/location ID. Required when the company has multiple outlets and the member has no default outlet.
notesstringnoBooking notes

get_conversation_messages

Get messages from a specific conversation thread. Shows the chat history between the merchant and a contact.

ParameterTypeRequiredDescription
conversationIdstringyesThe conversation ID
searchstringnoSearch within messages
pagenumbernoPage number, newest first (default 1)
limitnumbernoPage 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.

ParameterTypeRequiredDescription
agentIdstringyesAI colleague ID for the Workroom DM
userIdstringnoMerchant user ID to notify. Defaults to the current MCP user when omitted.
titlestringnoOptional 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.

ParameterTypeRequiredDescription
attachmentIdstringyesThe 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.

ParameterTypeRequiredDescription
threadIdstringyesWorkroom thread ID
agentIdstringyesAI colleague ID that is a participant in the thread
contentstringyesMessage to show in Workroom. Markdown is allowed.
metadataobjectnoOptional 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.

ParameterTypeRequiredDescription
conversationIdstringyesInbox conversation ID
agentIdstringyesAI colleague ID creating the suggestion
bodystringyesDraft reply text for the merchant to review
sourceMessageIdstringnoInbound message ID this draft responds to
subjectstringnoOptional email subject suggestion
metadataobjectnoOptional 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.

ParameterTypeRequiredDescription
threadIdstringyesWorkroom thread ID where the approval button should appear
agentIdstringyesAI colleague ID that is a participant in the thread
actionTypeenum: "send_message" | "send_whatsapp_message" | "send_test_campaign" | "send_campaign"yesThe customer-facing action to execute only after merchant approval
summarystringyesHuman-readable draft/recipient/campaign summary shown above the approval buttons
payloadobjectyesExact 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.

ParameterTypeRequiredDescription
searchstringnoSearch by segment name
limitnumbernoMax results (default 20)

get_segment

Get customer segment details including type, criteria, and live member count.

ParameterTypeRequiredDescription
segmentIdstringyesThe segment ID

get_segment_members

Get the members that belong to a specific segment.

ParameterTypeRequiredDescription
segmentIdstringyesThe segment ID
limitnumbernoMax results (default 20)

create_segment

Create a new customer segment. Use STATIC for manual member lists, DYNAMIC for criteria-based auto-filtering.

ParameterTypeRequiredDescription
namestringyesSegment name
descriptionstringnoSegment description
segmentTypeenum: "STATIC" | "DYNAMIC"noSegment type (default DYNAMIC)
criteriaobjectnoDynamic segment criteria

update_segment

Update an existing customer segment by id. Pass only the fields to change; criteria replaces the existing rules.

ParameterTypeRequiredDescription
segmentIdstringyesThe segment ID to update
namestringnoNew segment name
descriptionstringnoNew segment description
segmentTypeenum: "STATIC" | "DYNAMIC"noChange segment type
criteriaobject | nullnoReplace 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.

ParameterTypeRequiredDescription
criteriaobject | nullnoDynamic 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.

ParameterTypeRequiredDescription
segmentIdstringyesThe segment ID
accountIdsarray<string>yesCRM account IDs to set as segment members

delete_segment

Delete a customer segment.

ParameterTypeRequiredDescription
segmentIdstringyesThe 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.

ParameterTypeRequiredDescription
limitintegernoMax 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.

ParameterTypeRequiredDescription
namestringyesFriendly template name (a Meta-safe id is derived from it).
categoryenum: "MARKETING" | "UTILITY" | "AUTHENTICATION"yesUTILITY = transactional (order/shipping), MARKETING = promos, AUTHENTICATION = codes.
messagestringyesBody text. Use {{1}}, {{2}} for personalised values.
languagestringnoLanguage code, default en_US.
headerTextstringnoOptional short bold header above the body.
footerstringnoOptional small footer text.
variableSamplesobjectnoExample values per variable number, e.g. {"1":"Sara"} — Meta reviews with these.

list_outlets

List shop outlets/locations for the company.

ParameterTypeRequiredDescription
activeOnlybooleannoWhen true, only return active outlets (default false)

create_outlet

Create a shop outlet/location. Optionally pass id to preserve a legacy UUID during migration.

ParameterTypeRequiredDescription
idstringnoOptional outlet UUID (for legacy migration; non-standard formats accepted)
namestringyesOutlet name
addressstring | nullnoStreet address
phonestring | nullnoContact phone
latitudestring | number | nullnoLatitude
longitudestring | number | nullnoLongitude
logoUrlstring | nullnoLogo URL
sortOrderintegernoDisplay sort order (default 0)
isActivebooleannoWhether outlet is active (default true)
acceptsOrdersbooleannoWhether outlet accepts online orders (default true)

update_outlet

Update an existing shop outlet/location by ID.

ParameterTypeRequiredDescription
idstringyesOutlet ID (UUID)
namestringnoOutlet name
addressstring | nullnoStreet address
phonestring | nullnoContact phone
latitudestring | number | nullnoLatitude
longitudestring | number | nullnoLongitude
logoUrlstring | nullnoLogo URL
sortOrderintegernoDisplay sort order
isActivebooleannoWhether outlet is active
acceptsOrdersbooleannoWhether outlet accepts online orders

list_products

List shop products with optional filters by name, status, or category.

ParameterTypeRequiredDescription
searchstringnoSearch by product name
statusenum: "DRAFT" | "ACTIVE" | "ARCHIVED"noFilter by status
categoryIdnumbernoFilter by category ID
limitnumbernoMax results (default 20)

get_product

Get full product detail including images, options, and variations.

ParameterTypeRequiredDescription
productIdnumberyesThe product ID

create_product

Create a new shop product as DRAFT. Merchant can review and activate from the portal.

ParameterTypeRequiredDescription
namestringyesProduct name
descriptionstringnoProduct description
pricestringyesPrice as decimal string (e.g. "29.99")
discountPricestringnoDiscounted price
memberPricestringnoMembers-only price
skustringnoSKU code
categoryIdsarray<number>noCategory IDs (first is primary)
productTypeenum: "one_time" | "recurring"noProduct type (default one_time)

update_product

Update an existing product. Only provided fields are changed.

ParameterTypeRequiredDescription
productIdnumberyesThe product ID
namestringnoProduct name
descriptionstringnoProduct description
pricestringnoPrice as decimal string
discountPricestringnoDiscounted price
memberPricestringnoMembers-only price
skustringnoSKU code
statusenum: "DRAFT" | "ACTIVE" | "ARCHIVED"noProduct status
categoryIdsarray<number>noCategory 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.

ParameterTypeRequiredDescription
namestringyesCategory name
descriptionstringnoCategory description
parentIdnumbernoParent category ID for subcategories
onlineEnabledbooleannoShow in online store (default true)
sortOrdernumbernoDisplay sort order

create_variation

Add a variation (size, color, etc.) to an existing product.

ParameterTypeRequiredDescription
productIdnumberyesThe product ID
namestringnoVariation name
skustringnoVariation SKU
pricestringyesPrice as decimal string (e.g. "29.99")
discountPricestringnoDiscounted price
memberPricestringnoMembers-only price
stockQuantitynumbernoStock quantity
stockStatusenum: "in_stock" | "out_of_stock" | "low_stock"noStock status
selectedOptionsobjectnoOption selections e.g. {"Size": "Large"}

list_orders

List shop orders with optional status and search filters.

ParameterTypeRequiredDescription
statusenum: "pending" | "confirmed" | "processing" | "shipped" | "delivered" | "cancelled" | "refunded"noFilter by order status
searchstringnoSearch by order number or customer name/email
limitnumbernoMax results (default 20)

get_order

Get full order detail including line items.

ParameterTypeRequiredDescription
orderIdstringyesThe order UUID

update_order_status

Update the status of a shop order (e.g. confirm, ship, cancel).

ParameterTypeRequiredDescription
orderIdstringyesThe order UUID
statusenum: "pending" | "confirmed" | "processing" | "shipped" | "delivered" | "cancelled" | "refunded"yesNew order status

list_offer_rules

List upsell/cross-sell offer rules with optional filters.

ParameterTypeRequiredDescription
statusenum: "draft" | "active" | "paused"noFilter by status
typeenum: "upsell" | "cross_sell" | "bundle" | "post_purchase"noFilter by rule type
limitnumbernoMax results (default 20)

get_offer_rule

Get offer rule detail including associated products and discounts.

ParameterTypeRequiredDescription
ruleIdstringyesThe 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.

ParameterTypeRequiredDescription
namestringyesRule name
descriptionstringnoRule description
typeenum: "upsell" | "cross_sell" | "bundle" | "post_purchase"yesRule type: upsell, cross_sell, bundle, or post_purchase
triggerTypeenum: "product_view" | "cart_contains" | "cart_threshold" | "post_order" | "category_view"yesWhen the offer triggers
triggerConfigobjectnoTrigger-specific configuration
productsarray<object>noProducts 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.

ParameterTypeRequiredDescription
querystringyesPlain-language capability question, e.g. "create a booking" or "send a campaign safely"
areaenum: "all" | "tools" | "skills" | "features"noRestrict search area (default all)
limitintegernoMaximum 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.

ParameterTypeRequiredDescription
querystringnoPlain-language tool search, e.g. "delete a segment" or "set custom field values"
scopestringnoOptional exact scope filter, e.g. contacts, customer_segments, invoices
writebooleannoFilter to write tools (true) or read-only tools (false)
limitintegernoMaximum results (default 8, max 20)
includeInputSchemabooleannoInclude 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.

ParameterTypeRequiredDescription
toolNamestringyesExact target tool name returned by search_tools
argumentsobjectnoArguments 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.

ParameterTypeRequiredDescription
querystringyesQuestion or keywords to search for in company knowledge
limitintegernoMaximum matching snippets (default 5)
maxSnippetCharsintegernoMaximum 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.

ParameterTypeRequiredDescription
updatedAfterstringnoISO timestamp — only return docs updated after this. Use for delta sync.
limitnumbernoMax 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.

ParameterTypeRequiredDescription
documentIdstringyesKnowledge 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.

ParameterTypeRequiredDescription
urlstringyesURL 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.

ParameterTypeRequiredDescription
namestringyesFriendly title for the document
contentstringyesDocument 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.

ParameterTypeRequiredDescription
documentIdstringyesKnowledge document ID

restore_knowledge_document

Restore a previously deleted knowledge document.

ParameterTypeRequiredDescription
documentIdstringyesKnowledge 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.

ParameterTypeRequiredDescription
titlestringyesShort issue title
severityenum: "critical" | "high" | "medium" | "low"yesImpact level
areaenum: "mcp_tool_missing" | "mcp_tool_error" | "mcp_schema_confusing" | "auth" | "cli" | "docs" | "sdk_fallback" | "other"yesIssue area
expectedBehaviorstringyesWhat the agent or user expected to happen
actualBehaviorstringyesWhat actually happened
stepsTriedarray<string>yesConcrete steps the agent tried before reporting
toolCallsarray<object>noRelevant MCP/CLI/SDK calls, arguments, and outcomes
logsarray<string>noRelevant error messages, command output, or stack traces
aiAnalysisstringyesAgent analysis of likely root cause and impact
clarificationQuestionsarray<string>noQuestions the platform team should ask the agent/user to resolve ambiguity
referencesarray<object>noSource links, file paths, docs, screenshots, or IDs that support the report
environmentobjectnoRuntime context such as MCP URL, CLI version, token type, client, sandbox, model, OS
workaroundstringnoTemporary 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.

ParameterTypeRequiredDescription
organisationNamestringyesBusiness / brand name (used as the first company name too)
emailstringyesOwner email — receives a 6-digit code (10 min TTL)
industryenum: "beauty" | "fitness" | "tutoring" | "retail" | "hospitality" | "services" | "other"noVertical — drives default templates
countrystringnoISO 3166-1 alpha-2 country code (HK, US, GB, ...)
timezonestringnoIANA 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.

ParameterTypeRequiredDescription
requestIdstringyesFrom register_organisation_request
codestringyes6-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.

ParameterTypeRequiredDescription
accountIdstringyesCRM account ID
conversationLimitnumbernoMax linked conversations, 1-20 (default 10)
taskLimitnumbernoMax 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.

ParameterTypeRequiredDescription
conversationIdstringyesThe 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.

ParameterTypeRequiredDescription
conversationIdstringyesThe 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.

ParameterTypeRequiredDescription
statusenum: "todo" | "in_progress" | "done"noTask status: todo, in_progress or done
ownerenum: "mine"no"mine" shows only tasks you own
ownerIdstringnoOnly tasks owned by this users.id. Company membership IDs do not match.
accountIdstringnoOnly tasks linked to this CRM account, if you can see it
dueWindowenum: "overdue" | "today"nooverdue: due before now. today: due today in the company timezone. Both list open tasks only.
dueAfterstringnoISO 8601 datetime with timezone offset or Z; inclusive lower bound
dueBeforestringnoISO 8601 datetime with timezone offset or Z; exclusive upper bound
pagenumbernoPage number (default 1)
limitnumbernoPage 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.

ParameterTypeRequiredDescription
taskIdstringyesCRM 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.

ParameterTypeRequiredDescription
titlestringyesTask title
descriptionstringnoDetails
relatedTypeenum: "account" | "conversation" | "none"noLink to a CRM account or conversation. Default none.
relatedIdstringnoID of the account or conversation named by relatedType
dueAtstringnoExact ISO 8601 datetime with timezone offset or Z. Relative dates like "tomorrow" must be resolved by the user first.
priorityenum: "low" | "medium" | "high" | "urgent"noPriority (default medium)
ownerIdstring | nullnoOwner 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.

ParameterTypeRequiredDescription
taskIdstringyesCRM task ID
titlestringnoNew title
descriptionstring | nullnoNew description, or null to clear
dueAtstring | nullnoExact ISO 8601 datetime with timezone offset or Z, or null to clear
ownerIdstring | nullnoNew owner users.id, or null to unassign
statusenum: "todo" | "in_progress" | "done"notodo, in_progress or done
priorityenum: "low" | "medium" | "high" | "urgent"noPriority

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.

ParameterTypeRequiredDescription
daysintegernoRolling window in days by last message time, 1-90 (default 30)
channelenum: "whatsapp" | "sms" | "email" | "messenger" | "instagram" | "threads" | "web_form"noOnly conversations on this channel
limitintegernoMax generation attempts in this call, 1-10 (default 10). A remaining time budget can yield fewer.
dryRunbooleannotrue (default) previews candidates with no model call, billing or writes. false generates summaries.
cursorstringnoOpaque 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.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://api.favcrm.io/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http favcrm https://api.favcrm.io/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : favcrm ; URL : https://api.favcrm.io/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : favcrm ; Server URL : https://api.favcrm.io/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "favcrm": {
      "url": "https://api.favcrm.io/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "favcrm": {
      "type": "http",
      "url": "https://api.favcrm.io/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "favcrm": {
      "url": "https://api.favcrm.io/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "favcrm": {
      "httpUrl": "https://api.favcrm.io/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[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

Markdown
[FavCRM — L’Atlas](https://latlas.dev/en/mcp/io.favcrm/favcrm)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.