Skip to main content
Glama
mcp-macos-popup

mcp-macos-popup

by vakandi

show_html

Render sanitized HTML cards when Markdown cannot express a layout—use grids for KPI tiles, dashboards, progress bars, or inline SVG charts.

Instructions

Show the docs card in HTML mode — the explicit 'I need a real layout' tool. Same card as show_docs, same buttons, but the body is an HTML fragment instead of Markdown. Reach for it when Markdown cannot express the shape: KPI tiles in a grid, a sprint board, a comparison matrix, inline SVG sparkline or donut, progress bars, a mini dashboard with five boxes. For prose, a table, a diff or a mermaid diagram, keep show_docs in markdown — it is shorter and it renders better at 430px. SANITIZED, always: whitelist of tags (div/span/p/h1-h6/table/ul/ol/li/section/strong/em/code/pre/blockquote/details/svg primitives/a/img https), whitelist of CSS properties (no position, no url(), no @import), no script, no iframe, no form, no event handler, no data-* attribute. A dropped tag is unwrapped, its text survives. Utility classes provided by the card: .row .between .grid .grid-2 .grid-3 .card .kpi .kpi-label .pill .pill.ok|.warn|.bad .bar>.bar i .muted .mono .right .center .small. Inline style is allowed for the rest.

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

Input Schema

NameRequiredDescriptionDefault
htmlYesSanitized HTML fragment (no <html>/<body> needed)
levelNoAccent color: info/success/warning/error
titleYesTitle of the card
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)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.6/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and meets it: it discloses the tag whitelist, the CSS property restrictions (no position, no url(), no @import), banned constructs (script, iframe, form, event handlers, data-*), and the graceful degradation rule ('a dropped tag is unwrapped, its text survives'). It also states that buttons do not reply to the agent — a critical behavioral fact — and enumerates the provided utility classes.

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 use cases, followed by a dense but well-organized sanitization paragraph and a terse class list. The long whitelist is information-dense rather than padded, though the class inventory could be trimmed if it were documented elsewhere.

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 sanitizing HTML renderer with no output schema and no annotations, the description covers everything an agent needs: what renders, what gets stripped, how degraded content behaves, how to style output, and that button clicks never return to the agent. No significant gap remains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents title, html, level, screen, source, buttons and duration in detail. The description references 'same `buttons`' as show_docs and explains the rendering constraints on the html body, but adds no new syntax or format meaning for the remaining parameters. Baseline 3 applies when the schema does the heavy lifting.

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 and resource ('Show the docs card in HTML mode') and immediately distinguishes it from show_docs: same card and buttons, but the body is an HTML fragment instead of Markdown. An agent can tell exactly what this tool produces 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 Guidelines5/5

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

Gives explicit when-to-use cases (KPI tiles, sprint board, comparison matrix, inline SVG, progress bars, mini dashboard) and explicit when-not-to-use routing back to show_docs for prose, tables, diffs and mermaid, with a stated reason (shorter, renders better at 430px). It also contrasts with show_popup's plain-text rendering.

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