Skip to main content
Glama
mcp-macos-popup

mcp-macos-popup

by vakandi

show_popup

Display quick macOS notification popups to alert users about completed tasks, deployments, or errors, with optional buttons to open links, copy values, or dismiss the card.

Instructions

Show a quick notification popup on Wael's macOS screen via a native Electron window (dark glassy card, top-right, auto-dismiss). Use it to alert Wael of important information: task done, deploy finished, error found, etc. Add buttons to make the card actionable: a button can open an http(s) URL in his real browser (where his sessions are logged in), copy a value to the clipboard, or dismiss the card. The message body stays plain text — for a link inside the text or a markdown report, use show_docs.

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>"
    },
    "name": "show_popup"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoVisual severity: info (blue), success (green), warning (orange), error (red)
titleYesShort bold title of the popup
screenNoDisplay id, index, label, 'primary', or 'focused'. Omit for primary.
sourceNoOrigin chip label, e.g. 'Gilfoyle', 'Deploy'
buttonsNoAction buttons rendered under the card. An entry is either an object or a one-line string: {"label": "Open the thread", "url": "https://..."} -> opens the default browser, where the session is already logged in {"label": "Copy SN", "copy": "SN123456"} -> copies to the clipboard {"label": "Close"} -> dismisses the card "Label | https://... | primary" -> same thing, one line Optional style: primary | secondary | danger (the first button defaults to primary). A button is how a card becomes actionable: show_popup renders plain text, so use show_docs or this array when Wael has to click something. The button does not reply to you: it opens a page or copies text. Everything the agent must learn has to be written in the card itself.
messageNoNotification body text (plain text)
durationNoSeconds before auto-dismiss (default 8, max 300)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / buttons
      Added value: +{
      +  "description": "Action buttons rendered under the card. An entry is either an object or a one-line string:\n  {\"label\": \"Open the thread\", \"url\": \"https://...\"}  -> opens the default browser, where the session is already logged in\n  {\"label\": \"Copy SN\", \"copy\": \"SN123456\"}           -> copies to the clipboard\n  {\"label\": \"Close\"}                                     -> dismisses the card\n  \"Label | https://... | primary\"                          -> same thing, one line\nOptional style: primary | secondary | danger (the first button defaults to primary). A button is how a card becomes actionable: show_popup renders plain text, so use show_docs or this array when Wael has to click something. The button does not reply to you: it opens a page or copies text. Everything the agent must learn has to be written in the card itself.",
      +  "items": {
      +    "oneOf": [
      +      {
      +        "properties": {
      +          "action": {
      +            "description": "Alternative to url/copy",
      +            "enum": [
      +              "open",
      +              "copy",
      +              "dismiss"
      +            ],
      +            "type": "string"
      +          },
      +          "copy": {
      +            "description": "Text copied to the clipboard",
      +            "type": "string"
      +          },
      +          "label": {
      +            "description": "Button text, 40 chars max",
      +            "type": "string"
      +          },
      +          "style": {
      +            "enum": [
      +              "primary",
      +              "secondary",
      +              "danger"
      +            ],
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "http(s) URL opened in the default browser",
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "Target for action=open|copy",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "label"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "description": "One-line form: \"Label | url-or-copy:value | style\"",
      +        "type": "string"
      +      }
      +    ]
      +  },
      +  "maxItems": 4,
      +  "type": "array"
      +}
  2. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the popup auto-dismisses, that the body is plain text only, and critically that buttons do not reply to the agent ('Everything the agent must learn has to be written in the card itself'). It stops short of saying whether the call returns immediately or blocks until dismissal, or what happens if no screen matches.

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?

Four sentences, front-loaded with the core action, then usage, then the buttons semantics, then the show_docs hand-off. Dense but every sentence contributes; the button explanation partially overlaps the schema's own long buttons description, which is the only redundancy.

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

Completeness4/5

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

For a side-effecting UI tool with no annotations and no output schema, the description covers rendering, dismissal, plain-text limits, and the non-returnable button behavior. Minor gaps remain around blocking semantics and screen-selection failure modes, but the essentials for correct invocation are present.

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 3 is the baseline, but the description adds real meaning beyond the schema: it explains the intent of the buttons array (making the card actionable), the three action types in prose, and the constraint that button presses are not returned to the agent. That last point changes how an agent must design the card and is not derivable from 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 and resource ('Show a quick notification popup on Wael's macOS screen via a native Electron window') plus concrete rendering details (dark glassy card, top-right, auto-dismiss). It also explicitly separates itself from the sibling show_docs for links and markdown.

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 positive when-to-use cases ('alert Wael of important information: task done, deploy finished, error found') and an explicit routing rule away from this tool: 'for a link inside the text or a markdown report, use show_docs.' The alternative is named with the condition that selects it.

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