You're viewing a demo portfolio

Join the waitlist
PRSM

validate_promotion

Active

Tool of FavCRM

declared in 1.0.0

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.

Parameters schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "promotionCode",
    "channel",
    "amount"
  ],
  "properties": {
    "amount": {
      "type": "number",
      "description": "Order subtotal in major units (dollars, not cents)"
    },
    "channel": {
      "enum": [
        "booking",
        "event",
        "online",
        "pos"
      ],
      "type": "string",
      "description": "Where the promo is being applied"
    },
    "accountId": {
      "type": "string",
      "description": "Customer account ID — used for per-customer usage limits"
    },
    "promotionCode": {
      "type": "string",
      "description": "The code customer entered"
    }
  }
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.70.

Parent server

FavCRM

https://github.com/favcrm/mcp

1/7 registries
View full server →