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.

Input Schema

TableJSON 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 require iOS app 1.13.4 build 2 or later. No web fallback.
notification_idYesnotification_id returned when the Push Notification was sent.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNo
successYes
timestampYes
users_notifiedYes
notification_idYes
devices_notifiedYes
effective_channel_slugsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With destructiveHint=true already declared, the description goes well beyond it: it explains what is destroyed (the old notification's slot on Lock Screen and Notification Center), how it is delivered (silently, no sound, no screen wake), the merge-vs-replace rule (content fields fully replaced; omitted metadata and tags keep stored values), and that recipients and history are preserved/updated in place.

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-loaded with purpose and identity, then delivery behavior, then the replace/merge rule — a sensible precedence order. Slightly long at four paragraphs, with mild restatement in the second paragraph, but every paragraph carries distinct information.

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 12-parameter mutation tool with an output schema, the description covers the destructive effect, silent delivery, content-replacement semantics, recipient behavior, and history handling. Nothing an agent needs to invoke it safely is missing, and return values are covered by the output schema.

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, but the description supplies cross-parameter semantics the schema does not: which fields are wholesale replaced versus which retain stored values, and that the notification targets the original recipients. The tags/metadata omit-vs-clear behavior is largely duplicated from the schema, so it stops short of 5.

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 and resource ('Replace a Push Notification that was already sent') and immediately binds it to the identifier source ('notification_id returned by send_push_notification'), which separates it cleanly from the send and get siblings. An agent can distinguish it without opening the 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?

Gives a concrete when-to-use scenario ('update a Push Notification you already sent, for example when an incident you alerted on is resolved') and ties it to the send_push_notification workflow that produces the id. It never states the inverse case (use send_push_notification for a brand-new notification), but the context is strong enough to infer.

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