meta_ads_get_pixel_health

Get Meta Pixel Health

Meta

Description

Comprehensive pixel health check: metadata, CAPI connection status, event volume stats, automatic matching config, diagnostic checks, and per-event event match quality (EMQ) from Meta's Dataset Quality API. Use this to diagnose tracking issues before analyzing ad performance — low ROAS could be a tracking problem, not a campaign problem. dataset_quality (per pixel): one row per web event, ranked lowest composite_score first (0-10; ties: most spend first). Fields Meta omits mean "not computed", not zero. Web events only — app, offline and CRM events are not covered; Meta uses its own recent windows, so days_back does not apply to it. Without pixel_id (detail "compact"), limit/cursor page pixels and each pixel shows its 10 lowest-scoring events as compact rows: composite_score, match_key_coverage (identifier → coverage %, lowest first), diagnostic names, event_coverage_percentage (CAPI vs pixel), event_spend and ad_set_count; dataset_quality.count has the total and dataset_quality.message names the pixel_id to call for more. With pixel_id (detail "full"), each event carries Meta's own blocks and descriptions — event_match_quality (composite_score, match_key_feedback, diagnostics with a solution), event_coverage, dedupe_key_feedback, data_freshness, acr (extra conversions CAPI reports), value_diagnostics, event_delay, event_spend, and the ad sets optimizing or targeting on the event (ad_set_count + top 3 by spend; include_adsets=true for all) — and limit/cursor page that pixel's events (default 10, max 20): pass the top-level nextCursor back to get the next events. To explain why an event scores low, call with its pixel_id. When dataset_quality.status is "permission_denied" or "error", surface dataset_quality.message (upstream_status/upstream_code say what Meta answered), treat match quality as unavailable rather than poor, and keep the rest of the audit. match_rate_approx is a legacy fallback: prefer dataset_quality, and read -1 as "Meta has no estimate". capi.connected is true when an active CAPI Gateway config exists or server events were observed in the lookback window (capi.server_event_count), false when both signals were readable and showed neither, and "unknown" when the signals could not be read — NEVER report CAPI as disconnected when it is "unknown"; tell the user to verify in Meta Events Manager instead. When event_stats_status is "permission_denied", surface event_stats_message to the user — the rest of the pixel health audit is still valid.

Read-onlyIdempotent

Usage

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "meta_ads_get_pixel_health",
    "arguments": {
      "account_id": "act_123",
      "reason": "Audit tracking setup"
    }
  }
}

Parameters

NameTypeRequiredDescription
account_id string Required The ad account ID (with or without act_ prefix)minLength: 1
reason string Required Why this tool call is neededminLength: 1, maxLength: 500
Optional parameters (7)
NameTypeRequiredDescription
pixel_id string Optional Specific pixel ID to check. If omitted, checks all pixels on the account.minLength: 1
event_names array Optional Filter event stats to these event names (e.g. ["Purchase", "Lead"])
days_back integer Optional Number of days of event stats to include (default: 28, max: 90)min: 1, max: 90
limit integer Optional Page size (max 20). Without pixel_id: pixels per page (default 5). With pixel_id: that pixel's dataset_quality events per page (default 10).min: 1, max: 20
cursor string Optional Pagination cursor from the previous response's nextCursor. Pages pixels without pixel_id, dataset_quality events with it.minLength: 1
include_adsets boolean Optional With pixel_id only: return every ad set using each dataset_quality event (up to 100 per event) instead of the top 3 by spend (default false). Without pixel_id, events are compact rows with ad_set_count only.
connection_id string Optional Optional ID of a specific connection to use for this call. Omit to use the actor's default connection for this network. Call <platform>_list_connections to discover available connection IDs.

Examples

All pixels for account

{
  "account_id": "act_123",
  "reason": "Audit tracking setup"
}

hopkin meta pixel-health get --account act_123

Specific pixel

{
  "account_id": "act_123",
  "pixel_id": "456",
  "reason": "Check pixel firing status"
}

hopkin meta pixel-health get --account act_123 --pixel-id 456

Filter to key events

{
  "account_id": "act_123",
  "event_names": [
    "Purchase",
    "Lead"
  ],
  "days_back": 7,
  "reason": "Check tracking health for key events"
}

hopkin meta pixel-health get --account act_123 --event-names Purchase,Lead --days-back 7

Page one pixel's event match quality

{
  "account_id": "act_123",
  "pixel_id": "456",
  "limit": 20,
  "reason": "Find every event with weak match quality"
}

hopkin meta pixel-health get --account act_123 --pixel-id 456 --limit 20