Skip to main content
Glama
mcp-macos-popup

mcp-macos-popup

by vakandi

show_docs

Render Markdown documentation cards as larger macOS popups for summary reports, API results, changelogs, and key findings, with optional action buttons.

Instructions

Show a larger documentation-style popup on Wael's macOS screen. Renders MARKDOWN by default (headings, lists, tables, nested quotes, code, mermaid diagrams, buttons). Use it to surface rich information: a summary report, API results, a changelog, key findings. Stays longer on screen than show_popup. FORMAT: markdown is the default and covers 95% of cards. Pass format="html" ONLY when the card must lay something out visually — KPI tiles, multi-column dashboards, inline SVG charts, progress bars, comparison grids. HTML is sanitized: only a whitelist of tags and CSS properties survives, no script, no iframe, no form, no external stylesheet, no url() in styles. BUTTONS: a fenced block tagged buttons renders real action buttons in place, one per line, e.g. buttons\nOpen the thread | https://example.com\nCopy SN | copy:SN123\nClose\n. The same buttons can also be passed through the buttons parameter. A markdown link is clickable too and opens the default browser, but a button is louder and survives a 480px card better.

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_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoAlternative to `markdown` when format='html' (equivalent, clearer at call site)
levelNoAccent color: info/success/warning/error
titleYesTitle of the docs card
formatNoRendering mode. Default 'markdown'. 'html' is sanitized and meant for layouts, KPI tiles, SVG charts and dashboards.
screenNoDisplay id, index, label, 'primary', or 'focused'. Omit for primary.
sourceNoOrigin chip label
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.
durationNoSeconds before auto-dismiss (default 30, max 300)
markdownNoContent to render — Markdown by default, an HTML fragment when format='html'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields 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"
      +}
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "Rendering mode. Default 'markdown'. 'html' is sanitized and meant for layouts, KPI tiles, SVG charts and dashboards.",
      +  "enum": [
      +    "markdown",
      +    "html"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / html
      Added value: +{
      +  "description": "Alternative to `markdown` when format='html' (equivalent, clearer at call site)",
      +  "type": "string"
      +}
    • changedInput schema / properties / markdown / description
      Previous value: -"Markdown content to render"New value: +"Content to render — Markdown by default, an HTML fragment when format='html'"
    • changedInput schema / required
      Previous value: -[
      -  "title",
      -  "markdown"
      -]New value: +[
      +  "title"
      +]
  2. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so: HTML is sanitized against a tag/CSS whitelist with no script, iframe, form, external stylesheet, or url() in styles. It also discloses that buttons do not reply to the agent — they only open a page or copy text — which is a critical behavioral fact an agent would otherwise get wrong.

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 the core purpose in the first sentence, then cleanly partitioned by FORMAT and BUTTONS headers that make skimming easy. It is long, and the BUTTONS section restates some examples already present in the buttons schema description, but nearly every sentence carries usable guidance.

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 9-parameter, no-annotation, no-output-schema presentation tool, the description covers rendering mode choice, sanitization limits, button actionability, and screen/title basics. An agent has enough to call it correctly across markdown, html, and interactive-card cases without guessing.

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; the description still earns a bump by explaining the fenced ```buttons block that renders buttons inline through the markdown content (not just the buttons array), the one-line button syntax, and that the first button defaults to primary. It adds operational meaning about how buttons behave and why a button beats a markdown link at 480px, though the per-field details remain largely 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 and resource ("Show a larger documentation-style popup on Wael's macOS screen") and immediately distinguishes it from the sibling show_popup by noting it stays longer on screen and renders rich content. An agent can tell what it produces and how it differs from the alternative 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 Guidelines5/5

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

Gives explicit when-to-use guidance with a decision rule for the main fork: markdown is "the default and covers 95% of cards," and html only for KPI tiles, dashboards, SVG charts, and grids. It also names the alternative (show_popup renders plain text) and states when buttons are preferable to a markdown link, so the agent does not have to infer exclusions.

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