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.
Connect Claude.ai, Claude Code, or another MCP client and ask "audit example.com". The client calls TagManifest and gets the findings back.
Connect →REST · POST /v1/scan-urlAudit any public site.Send a URL and get back the container summary, the findings, and the health score in one response.
Try it →Catalog · 92 rulesBrowse the ruleset.Each rule has a severity, tier, category and recommendation, and regulatory citations where they apply. Run any rule individually with evaluate_rule.
Tiered deductions, diminishing returns, hygiene rules excluded. The same number that powers the dashboard.
Read →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.
- Fetch. We pull the page, find the GTM container, and parse it. Public pages and uploaded JSON exports are first-class.
- Evaluate. All applicable rules run against the container. Most are pure functions over the parsed structure — no headless browser required.
- 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
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
# 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"
}'
const res = await fetch("https://developer.tagmanifest.com/v1/scan-url", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.TM_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://example.com",
top_n: 25,
category: "consent",
}),
});
const result = await res.json();
console.log(result.health_score.score); // 49
import os
import requests
res = requests.post(
"https://developer.tagmanifest.com/v1/scan-url",
headers={"Authorization": f"Bearer {os.environ['TM_API_KEY']}"},
json={
"url": "https://example.com",
"top_n": 25,
"category": "consent",
},
)
print(res.json()["health_score"]["score"]) # 49
# Inside Claude — natural language
User: Audit https://example.com — focus on consent.
Claude: I'll run scan_url on that URL.
# Tool call (auto)
{
"tool": "scan_url",
"arguments": {
"url": "https://example.com",
"category": "consent",
"top_n": 25
}
}
{
"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
}
}
{
"rule_id": "consent-no-cmp",
"title": "Ad/tracking tags present with no consent configuration and no CMP",
"severity": "high",
"tier": "warning",
"category": "consent",
"finding_count": 1,
"affected_items": [
{
"id": "3",
"name": "Google Ads - Lead conversion",
"type": "awct"
}
],
"affected_items_total": 1,
"action": "Deploy a CMP and configure consent",
"recommendation": "If consent is managed outside GTM, verify that these tags are covered by your page-level CMP…"
}