Skip to main content
TagManifest /Docs Dashboard

The TagManifest API

Audit Google Tag Manager containers against 92 rules. Synchronous REST API and MCP server for Claude and other MCP clients.

TagManifest audits Google Tag Manager containers against 92 rules in ten categories: consent, GA4, ads, ecommerce, security, PII, performance, quality, organization and dead code. The API is synchronous — a scan returns findings and a health score in a single response.

How it works

Every TagManifest entrypoint — REST or MCP — runs the same evaluation engine on the same rule set. Calls are synchronous: there's no scan ID, no polling, no webhooks. You get the manifest back in the response.

  1. Fetch. We pull the page, find the GTM container, and parse it. Public pages and uploaded JSON exports are first-class.
  2. Evaluate. All applicable rules run against the container. Most are pure functions over the parsed structure — no headless browser required.
  3. Score. Findings are tier-weighted into a 0–100 health score with a letter grade and per-category breakdown.

Two ways to call it

The MCP server is the headline product. Point Claude or another MCP client at https://developer.tagmanifest.com/mcp and the eight tools appear inside the chat. See Connect to Claude for the steps. The REST API is for everything else — CI checks, dashboards, cron jobs, your own SDK.

Base URL

BASEhttps://developer.tagmanifest.com/v1

REST endpoints live under the /v1 prefix (e.g. POST /v1/scan-url). The MCP server is at /mcp. Changes are listed in the changelog.

Examples

Request
# Audit a public URL — synchronous
curl https://developer.tagmanifest.com/v1/scan-url \
  -H "Authorization: Bearer $TM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "top_n": 25,
    "category": "consent"
  }'
200 — scan
{
  "scanned_at": "2026-11-30T13:25:53.659Z",
  "duration_ms": 412,
  "site": {
    "url": "https://example.com",
    "gtm_id": "GTM-EXAMPLE",
    "from_cache": false
  },
  "container": {
    "tag_count": 4,
    "trigger_count": 1,
    "variable_count": 0,
    "gtm_id": "GTM-EXAMPLE",
    "name": "Example container"
  },
  "findings": [ /* 2 consent findings; see the "finding" tab */ ],
  "findings_total": 2,
  "findings_truncated": false,
  "by_category": { "ga4": 4, "security": 2, "ads": 2, "consent": 2 },
  "by_tier": { "error": 4, "warning": 2, "optimization": 3, "info": 1 },
  "health_score": {
    "score": 49,
    "grade": "D",
    "label": "Patterns Found",
    "deductions": {
      "error": 32,
      "warning": 8,
      "optimization": 11,
      "info": 0,
      "byCategory": { "ga4": 3, "security": 2, "ads": 2, "consent": 2 }
    },
    "caps": { "error": 35, "warning": 20, "optimization": 25, "info": 0 },
    "functionalIssueCount": 9
  }
}