Skip to main content
Glama
pushengage-mcp

pushengage-mcp

Send a push notification

pushengage_send_notification

Creates and sends push notifications to your site subscribers, with options for scheduling, recurring delivery, drafts, and audience targeting so messages reach the intended users.

Instructions

Creates and sends a push notification on the current site. Required fields: title, message, url. Do not add optional fields (tags, image_url, utm_params, audience_groups, actions, etc.) unless the user explicitly asks for them — for example, do not infer tags from the notification topic. Delivery modes (mutually exclusive — pick AT MOST one): (a) status="schedule" + schedule_date for a one-shot scheduled send; (b) pass recurring_schedule { days, times, start_date, end_date } for a recurring/repeating notification — leave status at "sent" (default) to activate the recurrence, or use "draft" to save without activating; (c) when scheduling one-shot, optionally pass send_in_subscribers_timezone=true to deliver at the scheduled wall-clock time in each subscriber's local timezone (only when the user explicitly asks, e.g. "send at 9am in their timezone"). Otherwise the notification is sent immediately. Use status="draft" to save without sending or activating. Audience — the three options the dashboard offers, pick AT MOST one (they are mutually exclusive): omit both fields for "Send to All Subscribers"; pass audience_groups (1-20 predefined audience-group IDs) for "Send to Audience Group" when the user names a saved group; or pass subscriber_filter for "Send to Custom Audience" — targeting by segment, attribute, location, device, browser, subscription or engagement date, or sent/view/click counts. Segment names in subscriber_filter are resolved automatically, so "send to my Sports Fans segment" needs no lookup — but call pushengage_list_audience_filter_values first for any country/state/city/device/device_type value, and pushengage_list_attributes first for any attribute key, because those are site-specific and a guessed value produces a notification that saves successfully and reaches the wrong people. When the user asks to use the site URL, call pushengage_list_sites and use the current site's site_url.

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": {
      "title": "<title>",
      "message": "<message>",
      "url": "<url>"
    },
    "name": "pushengage_send_notification"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesDestination URL when the subscriber clicks the notification
tagsNoUp to 5 tags, 36 chars each. Only when the user explicitly asks for tags.
titleYesNotification title
statusNoSend now (sent), schedule for later (schedule), or save without sending (draft)sent
actionsNoAction buttons. Only when the user explicitly asks.
messageYesNotification message body
site_idNoOverride the currently selected site
ios_pushNoiOS-specific options. Only when the user explicitly asks.
expire_inNoExpiry in seconds (60–2419200). Only when the user explicitly asks.
image_urlNoSmall notification icon. Only when the user explicitly asks for an image.
utm_paramsNoUTM tracking params. Only when the user explicitly asks.
android_pushNoAndroid-specific options. Requires channel_id when set. Only when the user explicitly asks.
big_image_urlNoLarge hero image. Only when the user explicitly asks for a big image.
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). Each ID refers to an audience group already configured in PushEngage. Omit this field to send to all subscribers. Only set this when the user mentions a saved/predefined audience group. Mutually exclusive with subscriber_filter.
schedule_timezoneNoOPTIONAL. The IANA timezone that `schedule_date` is written in, e.g. "Asia/Kolkata" or "America/New_York". Set this whenever the user names a timezone, or when you know their timezone differs from the site's — the notification is then scheduled for the instant they actually meant, and the response reports both wall clocks so you can tell them what was scheduled. Omit it and `schedule_date` is taken as the SITE's local time, which is what the API assumes. Requires schedule_date; cannot be combined with recurring_schedule, nor with send_in_subscribers_timezone (that flag already makes schedule_date each subscriber's own local time, so there is nothing to convert). Must be a full IANA zone name — abbreviations like "IST", "PST" or "EST" are ambiguous and are rejected, as are the Etc/GMT±N zones, whose sign is inverted.
subscriber_filterNoOPTIONAL. The dashboard's "Send to Custom Audience": personalize who receives this notification based on segments, location, device and more. Mutually exclusive with audience_groups; omit both for "Send to All Subscribers". A 2-D expression: `value` is a list of rule-groups, rules inside a group are AND-ed, and the top-level `op` combines the groups ("or" by default). Segment rules accept segment NAMES and are resolved automatically, so { field: "segments", op: "in", value: ["Sports Fans"] } works without a lookup. For country, state, city, device or device_type values call pushengage_list_audience_filter_values first; for an attributes rule's `key` call pushengage_list_attributes first. Both are site-specific, and a guessed value saves successfully but reaches the wrong people. Every segment reference and attribute key is verified before anything is sent; an unresolvable one fails the call rather than silently changing who receives the push. Example — mobile subscribers in the Sports Fans segment: { op: "or", value: [[{ field: "segments", op: "in", value: ["Sports Fans"] }, { field: "device", op: "in", value: ["mobile"] }]] }. Example — subscribed in the last 7 days on a paid plan: { op: "or", value: [[{ field: "ts_created", op: "ts_elapsed_lt", value: 10080 }, { field: "attributes", key: "plan", op: "ne", value: "free" }]] }.
recurring_scheduleNoOPTIONAL. Turns this into a recurring notification that fires on the chosen days/times between start_date and end_date. Mutually exclusive with status="schedule", schedule_date, and send_in_subscribers_timezone. With recurring_schedule set, leave status at "sent" (default) to activate the recurrence, or use "draft" to save without activating. Only set this when the user explicitly asks for a recurring/repeating notification.
send_in_subscribers_timezoneNoOnly valid when status="schedule" (and not combined with recurring_schedule). When true, schedule_date is interpreted in each subscriber's local timezone instead of the site timezone — one delivery is scheduled per subscriber timezone so every recipient receives the push at the same wall-clock time. Only set this when the user explicitly asks for subscriber-timezone delivery (for example: "send at 9am in their timezone").

Output Schema

NameRequiredDescriptionDefault
urlNo
titleNo
statusNo
messageNo
view_urlNo
notification_idNo
schedule_conversionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changedv1.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / actions / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / android_push / additionalProperties
      Removed value: -false
    • removedInput schema / properties / android_push / properties / action_buttons / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / android_push / properties / channel_id / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / audience_groups / items / maximum
      Added value: +9007199254740991
    • removedInput schema / properties / ios_push / additionalProperties
      Removed value: -false
    • removedInput schema / properties / ios_push / properties / action_buttons / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / ios_push / properties / badge / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / ios_push / properties / badge_increment / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / ios_push / properties / content_available / anyOf
      Added value: +[
      +  {
      +    "const": 0,
      +    "type": "number"
      +  },
      +  {
      +    "const": 1,
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / ios_push / properties / content_available / enum
      Removed value: -[
      -  0,
      -  1
      -]
    • removedInput schema / properties / ios_push / properties / content_available / type
      Removed value: -"number"
    • removedInput schema / properties / recurring_schedule / additionalProperties
      Removed value: -false
    • 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 / utm_params / additionalProperties
      Removed value: -false
    • 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). Each ID refers to an audience group already configured in PushEngage. Omit this field to send to all subscribers. Only set this when the user mentions a saved/predefined audience group."New value: +"Send to one or more predefined audience groups (1-20 group IDs). Each ID refers to an audience group already configured in PushEngage. Omit this field to send to all subscribers. Only set this 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 that `schedule_date` is written in, e.g. \"Asia/Kolkata\" or \"America/New_York\". Set this whenever the user names a timezone, or when you know their timezone differs from the site's — the notification is then scheduled for the instant they actually meant, and the response reports both wall clocks so you can tell them what was scheduled. Omit it and `schedule_date` is taken as the SITE's local time, which is what the API assumes. Requires schedule_date; cannot be combined with recurring_schedule, nor with send_in_subscribers_timezone (that flag already makes schedule_date each subscriber's own local time, so there is nothing to convert). Must be a full IANA zone name — abbreviations like \"IST\", \"PST\" or \"EST\" are ambiguous and are rejected, as are the Etc/GMT±N zones, whose sign is inverted.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / subscriber_filter
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "OPTIONAL. The dashboard's \"Send to Custom Audience\": personalize who receives this notification based on segments, location, device and more. Mutually exclusive with audience_groups; omit both for \"Send to All Subscribers\". A 2-D expression: `value` is a list of rule-groups, rules inside a group are AND-ed, and the top-level `op` combines the groups (\"or\" by default). Segment rules accept segment NAMES and are resolved automatically, so { field: \"segments\", op: \"in\", value: [\"Sports Fans\"] } works without a lookup. For country, state, city, device or device_type values call pushengage_list_audience_filter_values first; for an attributes rule's `key` call pushengage_list_attributes first. Both are site-specific, and a guessed value saves successfully but reaches the wrong people. Every segment reference and attribute key is verified before anything is sent; an unresolvable one fails the call rather than silently changing who receives the push. Example — mobile subscribers in the Sports Fans segment: { op: \"or\", value: [[{ field: \"segments\", op: \"in\", value: [\"Sports Fans\"] }, { field: \"device\", op: \"in\", value: [\"mobile\"] }]] }. Example — subscribed in the last 7 days on a paid plan: { op: \"or\", value: [[{ field: \"ts_created\", op: \"ts_elapsed_lt\", value: 10080 }, { field: \"attributes\", key: \"plan\", op: \"ne\", value: \"free\" }]] }.",
      +  "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
Behavior5/5

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

Annotations only establish that this is a non-read-only, non-idempotent, open-world write; the description adds substantially more: which fields are mandatory, that optional fields must not be inferred, that schedules need the site timezone unless overridden, and the critical failure mode that a guessed country/device/attribute value 'saves successfully and reaches the wrong people.' It also discloses that unresolvable segment or attribute references fail the call rather than silently altering the audience.

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?

The most important constraints (required fields, do-not-infer rule, one-of delivery modes) are front-loaded and each sentence carries real guidance. It is a dense single block though, and the long audience paragraph would be easier to parse split into the three mutually exclusive cases, so it is not maximally scannable.

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

Completeness5/5

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

For a 19-parameter, deeply nested write tool with an output schema, the description covers the decision points an agent actually needs: required vs optional, three delivery modes, three audience modes, timezone handling, and which sibling tools to consult first. Return values can be left to the output schema, so nothing material is missing.

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 coverage is 100%, so a baseline of 3 applies, but the description goes beyond the schema by explaining the mutual exclusivity of the three audience modes, the sequencing requirement for lookup calls, and how recurring vs one-shot scheduling interact with status. It still leans on the schema for the many nested ios_push/android_push/utm fields, mentioning them only as a group of things not to add.

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

Purpose4/5

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

The opening sentence gives a specific verb and resource ('Creates and sends a push notification on the current site'), which is enough to separate it from update_notification, duplicate_notification, or delete_notification. It stops short of naming any sibling alternative explicitly (e.g. 'for A/B tests use pushengage_send_ab_notification'), so differentiation is inferable rather than stated.

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?

The description spells out exactly when each mode applies: status='schedule' + schedule_date for one-shot, recurring_schedule for repeats, draft to save without activating, and default for immediate send, with the mutual exclusions stated. It also routes the agent to sibling lookup tools (list_audience_filter_values, list_attributes, list_sites) before including site-specific values, and explicitly says not to add optional fields unless the user asks.

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