Skip to main content
Glama
pushengage-mcp

pushengage-mcp

Send an A/B push notification

pushengage_send_ab_notification

Create and send A/B push notifications with two variants; optionally enable intelligent auto-winner testing that sends the higher-CTR variant to the remaining audience.

Instructions

Creates an A/B notification on the current site with two variants (variant_a and variant_b). Required: variant_a (title, message, url) and variant_b (title, message, url). By default (intelligent_ab_test omitted) both variants ship as-is to the audience — no automatic winner picking. Pass intelligent_ab_test to enable intelligent / auto-winner mode: each variant is sent to sent_limit_percentage% of subscribers, and after winner_delay_minutes the higher-CTR variant is automatically delivered to the remaining audience (up to sent_limit total). Only include intelligent_ab_test when the user explicitly asks for an intelligent / auto-winner test. Do not add other optional fields (tags, audience_groups, per-variant image_url, utm_params, actions, etc.) unless the user explicitly asks. Audience (pick AT MOST one — mutually exclusive; omit both to send to all subscribers): audience_groups (1-20 predefined audience-group IDs), or subscriber_filter for "Send to Custom Audience". Both apply to both variants, and subscriber_filter behaves exactly as it does on pushengage_send_notification. Use status="schedule" with schedule_date to schedule for later, or status="draft" to save without sending.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "variant_a": "<variant_a>",
      "variant_b": "<variant_b>"
    },
    "name": "pushengage_send_ab_notification"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoUp to 5 tags, 36 chars each. Only when the user explicitly asks for tags.
statusNoSend now (sent), schedule for later (schedule), or save without sending (draft). The API only accepts sent and scheduled in the body; draft is conveyed via the action query param while the body still carries status="sent".sent
site_idNoOverride the currently selected site
variant_aYesA/B variant A. Required.
variant_bYesA/B variant B. Required.
schedule_dateNoRequired when status is "schedule". Format: YYYY-MM-DD HH:mm:ss in the site timezone.
audience_groupsNoSend to one or more predefined audience groups (1-20 group IDs). Applies to both variants. Omit to send to all subscribers. Only set when the user mentions a saved/predefined audience group. Mutually exclusive with subscriber_filter.
schedule_timezoneNoOPTIONAL. The IANA timezone `schedule_date` is written in, e.g. "Asia/Kolkata". Same behaviour as pushengage_send_notification's schedule_timezone: the value is converted to the site's local time before sending, and the response reports both wall clocks. Omit it and schedule_date is taken as the site's local time.
subscriber_filterNoOPTIONAL. "Send to Custom Audience" applied to BOTH variants — same shape and same name-resolution behaviour as pushengage_send_notification's subscriber_filter: segment names resolve to ids, and segment and attribute references are verified before anything is sent. Mutually exclusive with audience_groups; omit both to send to all subscribers.
intelligent_ab_testNoOPTIONAL. Enables intelligent A/B testing: each variant is delivered to sent_limit_percentage% of subscribers, then after winner_delay_minutes the variant with the higher click-through rate is automatically sent to the remaining audience (up to sent_limit subscribers total). Omit this field to send a plain A/B where both variants ship as-is to the audience with no automatic winner selection. Only include when the user explicitly asks for an intelligent / auto-winner A/B test.

Output Schema

NameRequiredDescriptionDefault
statusNo
view_urlNo
notification_idNo
ab_notification_idNo
schedule_conversionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed69 schema fields changedv1.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / audience_groups / items / maximum
      Added value: +9007199254740991
    • removedInput schema / properties / intelligent_ab_test / additionalProperties
      Removed value: -false
    • addedInput schema / properties / intelligent_ab_test / properties / sent_limit / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / site_id / maximum
      Added value: +9007199254740991
    • removedInput schema / properties / subscriber_filter / additionalProperties
      Removed value: -false
    • removedInput schema / properties / subscriber_filter / properties / value / items / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / variant_a / additionalProperties
      Removed value: -false
    • removedInput schema / properties / variant_a / properties / actions / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / variant_a / properties / android_push / additionalProperties
      Removed value: -false
    • removedInput schema / properties / variant_a / properties / android_push / properties / action_buttons / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / variant_a / properties / android_push / properties / channel_id / maximum
      Added value: +9007199254740991
    • removedInput schema / properties / variant_a / properties / ios_push / additionalProperties
      Removed value: -false
    • removedInput schema / properties / variant_a / properties / ios_push / properties / action_buttons / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / variant_a / properties / ios_push / properties / badge / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / variant_a / properties / ios_push / properties / badge_increment / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / variant_a / properties / ios_push / properties / content_available / anyOf
      Added value: +[
      +  {
      +    "const": 0,
      +    "type": "number"
      +  },
      +  {
      +    "const": 1,
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / variant_a / properties / ios_push / properties / content_available / enum
      Removed value: -[
      -  0,
      -  1
      -]
    • removedInput schema / properties / variant_a / properties / ios_push / properties / content_available / type
      Removed value: -"number"
    • removedInput schema / properties / variant_a / properties / utm_params / additionalProperties
      Removed value: -false
    • removedInput schema / properties / variant_b / additionalProperties
      Removed value: -false
    • removedInput schema / properties / variant_b / properties / actions / $ref
      Removed value: -"#/properties/variant_a/properties/actions"
    • addedInput schema / properties / variant_b / properties / actions / description
      Added value: +"Action buttons for this variant."
    • addedInput schema / properties / variant_b / properties / actions / items
      Added value: +{
      +  "properties": {
      +    "image_url": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "label": {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "url": {
      +      "format": "uri",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "label",
      +    "url"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / variant_b / properties / actions / maxItems
      Added value: +2
    • addedInput schema / properties / variant_b / properties / actions / minItems
      Added value: +1
    • addedInput schema / properties / variant_b / properties / actions / type
      Added value: +"array"
    • removedInput schema / properties / variant_b / properties / android_push / $ref
      Removed value: -"#/properties/variant_a/properties/android_push"
    • addedInput schema / properties / variant_b / properties / android_push / description
      Added value: +"Android-specific options for this variant."
    • addedInput schema / properties / variant_b / properties / android_push / properties
      Added value: +{
      +  "accent_color": {
      +    "type": "string"
      +  },
      +  "action_buttons": {
      +    "items": {
      +      "properties": {
      +        "icon": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "label": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "url": {
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "url",
      +        "label"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 2,
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  "big_picture": {
      +    "type": "string"
      +  },
      +  "channel_id": {
      +    "exclusiveMinimum": 0,
      +    "maximum": 9007199254740991,
      +    "type": "integer"
      +  },
      +  "deep_link": {
      +    "type": "string"
      +  },
      +  "group_key": {
      +    "type": "string"
      +  },
      +  "large_icon": {
      +    "type": "string"
      +  },
      +  "small_icon": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / variant_b / properties / android_push / type
      Added value: +"object"
    • removedInput schema / properties / variant_b / properties / big_image_url / $ref
      Removed value: -"#/properties/variant_a/properties/big_image_url"
    • addedInput schema / properties / variant_b / properties / big_image_url / description
      Added value: +"Large hero image for this variant. Only when the user explicitly asks."
    • addedInput schema / properties / variant_b / properties / big_image_url / format
      Added value: +"uri"
    • addedInput schema / properties / variant_b / properties / big_image_url / type
      Added value: +"string"
    • removedInput schema / properties / variant_b / properties / expire_in / $ref
      Removed value: -"#/properties/variant_a/properties/expire_in"
    • addedInput schema / properties / variant_b / properties / expire_in / description
      Added value: +"Variant expiry in seconds (60–2419200)."
    • addedInput schema / properties / variant_b / properties / expire_in / maximum
      Added value: +2419200
    • addedInput schema / properties / variant_b / properties / expire_in / minimum
      Added value: +60
    • addedInput schema / properties / variant_b / properties / expire_in / type
      Added value: +"integer"
    • removedInput schema / properties / variant_b / properties / image_url / $ref
      Removed value: -"#/properties/variant_a/properties/image_url"
    • addedInput schema / properties / variant_b / properties / image_url / description
      Added value: +"Small icon for this variant. Only when the user explicitly asks."
    • addedInput schema / properties / variant_b / properties / image_url / format
      Added value: +"uri"
    • addedInput schema / properties / variant_b / properties / image_url / type
      Added value: +"string"
    • removedInput schema / properties / variant_b / properties / ios_push / $ref
      Removed value: -"#/properties/variant_a/properties/ios_push"
    • addedInput schema / properties / variant_b / properties / ios_push / description
      Added value: +"iOS-specific options for this variant."
    • addedInput schema / properties / variant_b / properties / ios_push / properties
      Added value: +{
      +  "action_buttons": {
      +    "items": {
      +      "properties": {
      +        "id": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "label": {
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "label"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 2,
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  "badge": {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "badge_increment": {
      +    "maximum": 9007199254740991,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  "category": {
      +    "type": "string"
      +  },
      +  "content_available": {
      +    "anyOf": [
      +      {
      +        "const": 0,
      +        "type": "number"
      +      },
      +      {
      +        "const": 1,
      +        "type": "number"
      +      }
      +    ]
      +  },
      +  "deep_link": {
      +    "type": "string"
      +  },
      +  "media": {
      +    "type": "string"
      +  },
      +  "sound": {
      +    "type": "string"
      +  },
      +  "thread_id": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / variant_b / properties / ios_push / type
      Added value: +"object"
    • removedInput schema / properties / variant_b / properties / message / $ref
      Removed value: -"#/properties/variant_a/properties/message"
    • addedInput schema / properties / variant_b / properties / message / description
      Added value: +"Variant message body"
    • addedInput schema / properties / variant_b / properties / message / maxLength
      Added value: +135
    • addedInput schema / properties / variant_b / properties / message / minLength
      Added value: +1
    • addedInput schema / properties / variant_b / properties / message / type
      Added value: +"string"
    • removedInput schema / properties / variant_b / properties / title / $ref
      Removed value: -"#/properties/variant_a/properties/title"
    • addedInput schema / properties / variant_b / properties / title / description
      Added value: +"Variant title"
    • addedInput schema / properties / variant_b / properties / title / maxLength
      Added value: +85
    • addedInput schema / properties / variant_b / properties / title / minLength
      Added value: +1
    • addedInput schema / properties / variant_b / properties / title / type
      Added value: +"string"
    • removedInput schema / properties / variant_b / properties / url / $ref
      Removed value: -"#/properties/variant_a/properties/url"
    • addedInput schema / properties / variant_b / properties / url / description
      Added value: +"Destination URL when the subscriber clicks the variant"
    • addedInput schema / properties / variant_b / properties / url / format
      Added value: +"uri"
    • addedInput schema / properties / variant_b / properties / url / type
      Added value: +"string"
    • removedInput schema / properties / variant_b / properties / utm_params / $ref
      Removed value: -"#/properties/variant_a/properties/utm_params"
    • addedInput schema / properties / variant_b / properties / utm_params / description
      Added value: +"UTM tracking params for this variant."
    • addedInput schema / properties / variant_b / properties / utm_params / properties
      Added value: +{
      +  "enabled": {
      +    "type": "boolean"
      +  },
      +  "utm_campaign": {
      +    "type": "string"
      +  },
      +  "utm_content": {
      +    "type": "string"
      +  },
      +  "utm_medium": {
      +    "type": "string"
      +  },
      +  "utm_source": {
      +    "type": "string"
      +  },
      +  "utm_term": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / variant_b / properties / utm_params / required
      Added value: +[
      +  "enabled"
      +]
    • addedInput schema / properties / variant_b / properties / utm_params / type
      Added value: +"object"
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / schedule_conversion / additionalProperties
      Previous value: -trueNew value: +{}
  2. Changed4 schema fields changedv1.1.0
    • changedInput schema / properties / audience_groups / description
      Previous value: -"Send to one or more predefined audience groups (1-20 group IDs). Applies to both variants. Omit to send to all subscribers. Only set when the user mentions a saved/predefined audience group."New value: +"Send to one or more predefined audience groups (1-20 group IDs). Applies to both variants. Omit to send to all subscribers. Only set when the user mentions a saved/predefined audience group. Mutually exclusive with subscriber_filter."
    • addedInput schema / properties / schedule_timezone
      Added value: +{
      +  "description": "OPTIONAL. The IANA timezone `schedule_date` is written in, e.g. \"Asia/Kolkata\". Same behaviour as pushengage_send_notification's schedule_timezone: the value is converted to the site's local time before sending, and the response reports both wall clocks. Omit it and schedule_date is taken as the site's local time.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / subscriber_filter
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "OPTIONAL. \"Send to Custom Audience\" applied to BOTH variants — same shape and same name-resolution behaviour as pushengage_send_notification's subscriber_filter: segment names resolve to ids, and segment and attribute references are verified before anything is sent. Mutually exclusive with audience_groups; omit both to send to all subscribers.",
      +  "properties": {
      +    "op": {
      +      "default": "or",
      +      "description": "How groups in `value` combine. Only \"or\" is supported: a subscriber matches if ANY group matches. Rules WITHIN a group are always AND-ed, so use one group to require several conditions together. To AND across groups, create the audience in the dashboard instead.",
      +      "enum": [
      +        "or"
      +      ],
      +      "type": "string"
      +    },
      +    "timezone": {
      +      "description": "OPTIONAL. The IANA timezone that this filter's DATE values are written in, e.g. \"Asia/Kolkata\". Applies to absolute comparisons on ts_created / ts_last_sent / ts_last_click / ts_last_view, and to dt_gt / dt_lt on attributes. Date values in a filter are interpreted as UTC by default, so set this whenever the user gives a date in their own timezone (\"subscribed after 1 January my time\") — the values are converted to UTC before sending and the response reports what was converted. It does NOT affect ts_elapsed_gt / ts_elapsed_lt, which are durations in minutes and carry no timezone. Use a full zone name; abbreviations like IST or PST are rejected. Note this is unrelated to `schedule_timezone`, which concerns WHEN the notification is sent and is interpreted against the site's timezone rather than UTC.",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "value": {
      +      "description": "2-D array: outer is a list of rule-groups (max 15), each inner group is an AND-ed list of rules (1–50). With the default op=\"or\", a subscriber matches if any group's rules all match.",
      +      "items": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "field": {
      +              "description": "Which subscriber property to match. Each field accepts only certain operators — see `op`.",
      +              "enum": [
      +                "attributes",
      +                "city",
      +                "click_count",
      +                "country",
      +                "device",
      +                "device_token_hash",
      +                "device_type",
      +                "profile_id",
      +                "segments",
      +                "sent_count",
      +                "state",
      +                "ts_created",
      +                "ts_last_click",
      +                "ts_last_sent",
      +                "ts_last_view",
      +                "view_count"
      +              ],
      +              "type": "string"
      +            },
      +            "key": {
      +              "description": "Required ONLY when field=\"attributes\" — the attribute key to look up. Call pushengage_list_attributes to discover valid keys. Must be omitted for every other field.",
      +              "maxLength": 64,
      +              "minLength": 1,
      +              "pattern": "^[A-Za-z][A-Za-z0-9_-]*$",
      +              "type": "string"
      +            },
      +            "op": {
      +              "description": "Comparison operator. Allowed values depend on `field`: country/state/city/device/device_type → in, nin. segments → in (any of), all (all of), nin (none of). sent_count/view_count/click_count → eq, lt, gt, lte, gte. ts_created/ts_last_sent/ts_last_view/ts_last_click → lt (before), gt (after), ts_elapsed_lt (in the last N minutes), ts_elapsed_gt (older than N minutes). profile_id/device_token_hash → in. attributes → any operator, including exists / not_exists.",
      +              "enum": [
      +                "all",
      +                "dt_gt",
      +                "dt_lt",
      +                "eq",
      +                "exists",
      +                "gt",
      +                "gte",
      +                "in",
      +                "lt",
      +                "lte",
      +                "ne",
      +                "nin",
      +                "not_exists",
      +                "ts_elapsed_gt",
      +                "ts_elapsed_lt"
      +              ],
      +              "type": "string"
      +            },
      +            "value": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "boolean"
      +                },
      +                {
      +                  "items": {
      +                    "type": [
      +                      "string",
      +                      "number",
      +                      "boolean"
      +                    ]
      +                  },
      +                  "minItems": 1,
      +                  "type": "array"
      +                }
      +              ],
      +              "description": "The match value. Omit entirely for exists / not_exists. Array for in / nin / all. Positive integer number of MINUTES for ts_elapsed_gt / ts_elapsed_lt — 60 = one hour, 1440 = one day, 10080 = seven days. Multiply days by 1440. For segments, pass segment NAMES as strings (resolved automatically) or numeric segment IDs."
      +            }
      +          },
      +          "required": [
      +            "field",
      +            "op"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 50,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "maxItems": 15,
      +      "minItems": 1,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "value"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / schedule_conversion
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {},
      +  "type": "object"
      +}
  3. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnly=false and idempotent=false, and the description builds on that by explaining the default plain-A/B shipping behavior versus the auto-winner rollout, the delay/percentage mechanics, and that segment and attribute references are verified before anything is sent. It does not address the duplicate-send risk implied by idempotentHint=false (e.g. calling twice creates two campaigns), which is the main behavioral gap for a non-idempotent mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the required payload and the single most consequential default (no automatic winner picking) before the optional-field caveats and audience rules. It is a dense single paragraph with some restatement of the intelligent_ab_test schema description, but for a 10-parameter nested tool nearly every sentence carries a decision rule.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and 100% schema coverage, the description only needs to carry defaults, exclusivity, and mode selection — all of which it covers. The remaining gap is behavioral edge cases such as duplicate invocation and per-variant failure handling, modest against otherwise rich structured data.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, and the description earns above that by supplying decision-level semantics the schema does not: what omitting intelligent_ab_test means, that audience_groups and subscriber_filter are mutually exclusive and apply to both variants, and that subscriber_filter mirrors pushengage_send_notification. It stops short of adding format or syntax detail, which the schema already carries.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Creates an A/B notification on the current site with two variants') and immediately names the required variant_a/variant_b payload shape. This clearly distinguishes it from the sibling pushengage_send_notification, which sends a single notification, without needing to open either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use rules throughout: include intelligent_ab_test only when the user asks for an auto-winner test, do not add optional fields unless requested, pick at most one of audience_groups or subscriber_filter, and use status='schedule'/'draft' for those modes. The default behavior when intelligent_ab_test is omitted is spelled out rather than left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.