Skip to main content
Glama

Replace Push Notification

replace_push_notification
Destructive

Replace a Push Notification that was already sent, using the notification_id returned by send_push_notification.

The replacement takes the old notification's place on the Lock Screen and in Notification Center, so the user does not end up with two. It arrives silently: no sound and no screen wake. Use it to update a Push Notification you already sent, for example when an incident you alerted on is resolved.

Replacement content fully replaces the old title, subtitle, message, redirection, media, icon, actions, and payload. Omitted metadata and tags keep their stored values. The notification goes to the same recipients as the original. History is updated in place.

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": {
      "notification_id": "<notification_id>",
      "title": "<title>"
    },
    "name": "replace_push_notification"
  }
}

Input Schema

NameRequiredDescriptionDefault
iconNoOptional HTTPS image URL, such as a logo or avatar, shown next to a smaller ActivitySmith app icon.
tagsNoOptional account tags. Omit to keep the stored tags; [] clears them.
badgeNoOptional app badge count.
mediaNoOptional HTTPS image, audio, or video URL. Can be combined with redirection, but not with actions.
titleYesReplacement Push Notification title.
actionsNoOptional expanded notification actions, up to 4. open_url actions accept HTTP/HTTPS URLs or installed apps' custom URL schemes, such as spotify:// or shortcuts://run-shortcut?name=Example. webhook actions call an HTTPS endpoint with optional GET or POST method and optional JSON body. Do not combine actions with media.
messageNoOptional replacement message body.
payloadNoOptional custom JSON payload delivered with the replacement.
metadataNoOptional app-only details with the same limits as send_push_notification. Omit to keep the stored metadata; {} clears it.
subtitleNoOptional replacement subtitle.
redirectionNoOptional normal-tap target. Use an HTTP/HTTPS URL or an installed app's custom URL scheme, such as spotify:// or shortcuts://run-shortcut?name=Example. Custom app schemes have no web fallback.
notification_idYesnotification_id returned when the Push Notification was sent.

Output Schema

NameRequiredDescriptionDefault
tagsNo
successYes
timestampYes
users_notifiedYes
notification_idYes
devices_notifiedYes
effective_channel_slugsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / redirection / description
      Previous value: -"Optional normal-tap target. Use an HTTP/HTTPS URL or an installed app's custom URL scheme, such as spotify:// or shortcuts://run-shortcut?name=Example. Custom app schemes require iOS app 1.13.4 build 2 or later. No web fallback."New value: +"Optional normal-tap target. Use an HTTP/HTTPS URL or an installed app's custom URL scheme, such as spotify:// or shortcuts://run-shortcut?name=Example. Custom app schemes have no web fallback."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and openWorldHint=true; the description makes that concrete by explaining the replacement supersedes the old notification in-place rather than duplicating it, that it arrives silently with no sound or screen wake, that recipients are inherited unchanged, and that history is rewritten. The silent-delivery and same-recipient behavior are non-obvious traits an agent could not derive from annotations or schema.

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

Conciseness5/5

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

Three short paragraphs, front-loaded with identity and prerequisite, then behavior, then field-replacement semantics. No filler sentences; each line conveys information the agent needs before calling.

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?

A 12-parameter mutation tool whose parameters are fully described in schema and whose return values are covered by an output schema; the description adds scope, delivery behavior, recipient inheritance, and merge/replace rules on top. Nothing an agent needs to invoke it correctly 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 the baseline is 3, but the description adds real semantics beyond the schema: replacement content fully overwrites title, subtitle, message, redirection, media, icon, actions and payload, while omitted metadata and tags retain stored values. That clarifies the omit-vs-clear distinction and the fact that unspecified tunables are replaced wholesale rather than merged.

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+resource ('Replace a Push Notification') and immediately anchors identity to the notification_id returned by send_push_notification, which separates it cleanly from send/dismiss/get/list siblings. An agent can select this over the siblings without opening any schema.

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

Usage Guidelines4/5

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

Explicitly states the use case ('update a Push Notification you already sent, for example when an incident you alerted on is resolved') and ties it to a prerequisite artifact from send_push_notification. It does not spell out the inverse case (new notification = use send_push_notification), so it falls just short of full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources