Skip to main content
Glama

send_push_notification

Broadcast an immediate push notification to active subscribers across Web Push, Android, and iOS for real-time delivery; use it for instant broadcasts, not scheduled or recurring sends.

Instructions

Broadcast an immediate push notification across Web Push (VAPID), Android (FCM), and iOS (APNs) to active subscribers of a specific app_id. Use this tool for instant real-time delivery; do not use it for future or recurring broadcasts (use schedule_push_notification instead) or on-site HTML popups (use configure_inapp_banner instead). Prerequisite: call list_apps first to obtain app_id. Requires PUSHNOTIF_API_KEY, deducts 1 credit (Rp 0.20) per successfully delivered device (0 credits charged for 404/410 dead tokens, which are auto-pruned), and is irreversible once dispatched; when segment is set to a custom tag (from update_subscriber_tags) instead of 'all', only subscribers carrying that tag receive the broadcast, and omitting url defaults the tap action to the app's registered site_url. Returns JSON { ok, campaign_id, total_targeted, total_delivered, total_gone_pruned, credits_deducted, credits_remaining }.

Input Schema

NameRequiredDescriptionDefault
urlNoOptional HTTPS destination URL opened when the notification is tapped (defaults to app's site_url)
bodyYesNotification message body text (1 to 240 characters)
titleYesNotification headline shown on the lock screen (1 to 100 characters)
app_idYesTarget application ID in format app_xxxx (obtain from list_apps)
segmentNoTarget audience filter: 'all' (default) or a specific subscriber tag assigned via update_subscriber_tags

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.2.0
    • changedInput schema / properties / segment / description
      Previous value: -"Subscriber filter: 'all' (default, sends to every active subscriber of app_id) or a specific subscriber tag string (e.g., 'vip', 'jakarta')"New value: +"Target audience filter: 'all' (default) or a specific subscriber tag assigned via update_subscriber_tags"
    • changedInput schema / properties / title / description
      Previous value: -"Notification headline shown on lock screen (1 to 100 characters)"New value: +"Notification headline shown on the lock screen (1 to 100 characters)"
    • changedInput schema / properties / url / description
      Previous value: -"Optional HTTPS destination URL opened when the user taps the notification (defaults to the app's site_url)"New value: +"Optional HTTPS destination URL opened when the notification is tapped (defaults to app's site_url)"
  2. Changed5 schema fields changedv2.1.2
    • changedInput schema / properties / app_id / description
      Previous value: -"App ID tujuan (misal: app_xxxx)"New value: +"Target application ID in format app_xxxx (obtain from list_apps)"
    • changedInput schema / properties / body / description
      Previous value: -"Isi pesan notifikasi"New value: +"Notification message body text (1 to 240 characters)"
    • changedInput schema / properties / segment / description
      Previous value: -"Filter segmen pelanggan (default: all)"New value: +"Subscriber filter: 'all' (default, sends to every active subscriber of app_id) or a specific subscriber tag string (e.g., 'vip', 'jakarta')"
    • changedInput schema / properties / title / description
      Previous value: -"Judul pesan notifikasi"New value: +"Notification headline shown on lock screen (1 to 100 characters)"
    • changedInput schema / properties / url / description
      Previous value: -"URL tujuan saat notifikasi diketuk"New value: +"Optional HTTPS destination URL opened when the user taps the notification (defaults to the app's site_url)"
  3. First observedv2.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the generic write/non-idempotent profile; the description adds concrete operational facts: PUSHNOTIF_API_KEY requirement, 1 credit per delivered device with a stated price, zero charge for 404/410 dead tokens that are auto-pruned, and that dispatch is irreversible. It also documents the segment fallback and the url default, which are behavioral, not just schema restatement.

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 action and its scope are front-loaded, and every sentence carries non-redundant information (alternatives, prerequisite, cost, irreversibility, segment/url behavior, return shape). It is a single dense block with several clauses chained into one long sentence, which costs a little scannability but wastes no words.

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?

Despite no output schema, the description enumerates the return fields (ok, campaign_id, total_targeted, total_delivered, total_gone_pruned, credits_deducted, credits_remaining). Combined with prerequisites, cost model, sibling routing, and irreversibility for a non-idempotent destructive-adjacent broadcast, an agent has everything needed to invoke it correctly.

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 the baseline is 3, but the description adds real semantics: segment as 'all' vs a custom tag sourced from update_subscriber_tags with tag-matching delivery behavior, and url defaulting to the app's registered site_url. It doesn't repeat title/body length limits, but those are already fully specified in the schema.

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?

States a specific verb (broadcast), resource (immediate push notification), delivery channels (VAPID/FCM/APNs), and audience scope (active subscribers of a given app_id). It explicitly distinguishes itself from schedule_push_notification and configure_inapp_banner, so an agent can route correctly without opening a 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?

Gives explicit when-to-use (instant real-time delivery), explicit when-not-to-use with the two named alternative tools, and a required prerequisite step (call list_apps first to obtain app_id). Nothing about tool selection is left to inference.

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