Metric Comparison Card

Card comparing a current metric value against a previous period with delta indicator.

Surfaces
webgoogle-meet-stagegoogle-apps-script-webmcp-apps
Degraded on
SurfaceNote
emailRenders as plain text values.
Live preview
Metric Comparison Card
Now
1
Before
1
↓ 0.0%
Fields
FieldType
labelstring. Metric name.required
valuenumber. Current value.required
previousnumber. Previous period value.required
lower_is_betterboolean (optional, default true). Which direction is GOOD, which decides whether the delta is green or red. Defaults to true because this card was written for response times; set false for traffic, revenue or any metric where a rise is the good outcome.optional
Example payload
{
  "type": "metric_comparison_card",
  "label": "Metric Comparison Card",
  "value": 1,
  "previous": 1
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:metric_comparison_card",
  "displayName": "Metric Comparison Card",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/metric_comparison_card",
  "capabilities": [
    "web",
    "google-meet-stage",
    "google-apps-script-web",
    "mcp-apps"
  ],
  "description": "Card comparing a current metric value against a previous period with delta indicator.",
  "representativeQueries": [
    "show a metric card comparing current vs previous period",
    "card comparing a current metric value against a previous period with delta indicator.",
    "render a metric comparison card"
  ]
}
← Full ARD catalog
Deploy your own Google Apps Script renderer

The renderer is an open-source Google Apps Script web app. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd a2ui/apps-script-surface/gas-wired-renderer
clasp push && clasp deploy
Full deploy guide →