create_offer_rule
ActiveTool of FavCRM
declared in 1.0.0
Create an upsell/cross-sell offer rule as draft. Specify trigger type, conditions, and suggested products with optional discounts.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name",
"type",
"triggerType"
],
"properties": {
"name": {
"type": "string",
"description": "Rule name"
},
"type": {
"enum": [
"upsell",
"cross_sell",
"bundle",
"post_purchase"
],
"type": "string",
"description": "Rule type: upsell, cross_sell, bundle, or post_purchase"
},
"products": {
"type": "array",
"items": {
"type": "object",
"required": [
"productId"
],
"properties": {
"productId": {
"type": "number",
"description": "Product ID to suggest"
},
"discountType": {
"enum": [
"percentage",
"fixed_amount"
],
"type": "string",
"description": "Discount type"
},
"discountValue": {
"type": "string",
"description": "Discount value"
}
}
},
"description": "Products to suggest with optional discounts"
},
"description": {
"type": "string",
"description": "Rule description"
},
"triggerType": {
"enum": [
"product_view",
"cart_contains",
"cart_threshold",
"post_order",
"category_view"
],
"type": "string",
"description": "When the offer triggers"
},
"triggerConfig": {
"type": "object",
"description": "Trigger-specific configuration",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
}
}Parent server
FavCRM
https://github.com/favcrm/mcp
1/7 registries