notifications9.86 KB
View saved version →
---
name: notifications
description: Turn Breakroom notifications on or off when the user asks or accepts the invitation in the app, using real-time MCP Events when available and a scheduled watch otherwise.
---
# Manage Breakroom notifications
Call `prepare_breakroom_notification_setup` before taking any setup action and follow the returned instructions. This MCP-provided workflow
is the source of truth so setup behaves the same for the published plugin and for users who connected Breakroom as a custom MCP server.
When the user asks to turn on notifications (including the default prompt “Turn on notifications for Breakroom”),
start this setup flow and include this note in the setup response: “For background push notifications, use a Work
chat running in the cloud. On desktop, select Work and Cloud. Also enable Push in ChatGPT Settings → Notifications
and allow notifications on your device.” This guidance must not replace the actual event-task attempt or its verification,
and must not be used to infer that the current chat is unsupported.
Set up notifications for the current chat. Once direct user authorization exists, the first setup action MUST be an actual attempt to
create the MCP Events task. Do not classify the chat surface as unsupported before making that attempt. Create a scheduled polling watch
only if the attempted event-task creation itself returns an explicit unsupported or unavailable error.
Subscribe to the Breakroom event `notification.created` with no filters by creating an event-triggered task in this chat. MCP Events are
a ChatGPT host capability, not a normal MCP tool. Do not infer that Events are unavailable merely because no `events/subscribe` tool is
visible in the model's tool list. Do not infer unsupported status from the chat type, model, device, visible tools, prior conversations,
or general platform knowledge. Attempt the event-triggered task first, and use the scheduled fallback only after that exact creation
attempt returns an explicit host rejection for the current chat. The user's instruction for each event is:
Use the event source belonging to the exact Breakroom MCP connection that provided `prepare_breakroom_notification_setup`. Do not use
another installed Breakroom app, an older testing connection, the tool name, or a guessed source ID. Discover or select the source that
actually exposes `notification.created`. If creation returns an unknown-source, invalid-source, connector-mismatch, missing-event, or
other validation error, rediscover the current connection's event source and retry the real-time task. A validation error is not evidence
that MCP Events are unsupported and must never trigger the hourly fallback.
> Treat every matching event as a user-visible task result that needs the user's attention; never process it as a silent background update. First call Breakroom's `show_breakroom_notification` exactly once with `data.notificationId` so foreground-capable hosts can render the rich card. Then always complete the task with one persisted Markdown card in this exact format, including the blockquote markers and blank quoted lines: `> {activityEmoji} **{data.summary}**`, then `>`, then `> {data.context}` when context is present, then `>`, then `> [**Open in Breakroom**]({data.url})`. Do not add an arrow or external-link symbol to the label because ChatGPT supplies its own. Use the supplied `data.url` exactly; it opens the corresponding screen inside the installed Breakroom app when that install supports deep links, with a safe web fallback otherwise. Never invent or rewrite the URL. Choose `activityEmoji` from `data.kind`: `prompt_posted` → `☕`, `posted` → `🍿`, `liked` → `🚬`, `commented` → `💬`, `mentioned` → `📣`, `followed` → `👤`, and `joined` → `👋`. Omit the context line and its preceding blank quoted line when context is empty. Do not put any text before or after the card. The card is required even when the rich renderer succeeds because background event runs may not persist tool Preview of the first 4,000 characters. Read full instructions →