[{"data":1,"prerenderedAt":1914},["ShallowReactive",2],{"docs-\u002Fmcp\u002Ftools\u002Fscan-url\u002F":3},{"id":4,"title":5,"body":6,"breadcrumb":1871,"coderail":1878,"dateModified":1899,"datePublished":1899,"description":1900,"extension":1901,"meta":1902,"navigation":1903,"next":1904,"path":1905,"prev":1906,"schemaType":1909,"seo":1910,"stem":1911,"wide":1912,"__hash__":1913},"docs\u002Fmcp\u002Ftools\u002Fscan-url.md","scan_url",{"type":7,"value":8,"toc":1862},"minimark",[9,16,62,68,72,77,91,95,265,274,295,304,308,311,459,498,521,527,1550,1566,1569,1577,1734,1738,1801,1805,1808,1824,1827,1835,1839,1858],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,29,35,50,56],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"tool"," — ",[27,28,5],"code",{},[20,30,31,34],{},[13,32,33],{},"purpose"," — audit a GTM container by page address or GTM ID; fetches and parses the public container",[20,36,37,25,40,43,44,49],{},[13,38,39],{},"rest equivalent",[27,41,42],{},"POST \u002Fv1\u002Fscan-url"," (same rule engine; the result differs, see ",[45,46,48],"a",{"href":47},"#vs-rest","Differences from REST",")",[20,51,52,55],{},[13,53,54],{},"rate limit"," — 100\u002Fday per user",[20,57,58,61],{},[13,59,60],{},"synchronous"," — yes",[10,63,64,65,67],{},"The MCP tool that audits a public page or a known GTM ID. It runs the same rule engine as the ",[27,66,42],{}," REST endpoint. The result is not the same shape as the REST response: it is shorter, and the totals come first.",[69,70],"endpoint-bar",{"method":71,"path":5},"TOOL",[73,74,76],"h2",{"id":75},"when","When to use it",[10,78,79,80,82,83,86,87,90],{},"The default audit tool. If a user mentions a website or a GTM ID, the agent should call ",[27,81,5],{},". For a GTM JSON export that is already in the conversation, use ",[27,84,85],{},"scan_container",". To run one named rule, use ",[27,88,89],{},"evaluate_rule",".",[73,92,94],{"id":93},"arguments","Arguments",[96,97,98,117],"table",{},[99,100,101],"thead",{},[102,103,104,108,111,114],"tr",{},[105,106,107],"th",{},"Argument",[105,109,110],{},"Type",[105,112,113],{},"Required",[105,115,116],{},"Description",[118,119,120,153,170,216,242],"tbody",{},[102,121,122,128,131,134],{},[123,124,125],"td",{},[27,126,127],{},"url",[123,129,130],{},"string",[123,132,133],{},"one of",[123,135,136,137,140,141,144,145,148,149,152],{},"Address of the page to audit, for example ",[27,138,139],{},"https:\u002F\u002Fexample.com",". A bare domain such as ",[27,142,143],{},"example.com"," is scanned over ",[27,146,147],{},"https",". A GTM ID given here (",[27,150,151],{},"GTM-XXXXX",") is treated as a GTM ID. The tool fetches the page, finds the GTM container ID in its HTML, and scans that container.",[102,154,155,160,162,164],{},[123,156,157],{},[27,158,159],{},"gtm_id",[123,161,130],{},[123,163,133],{},[123,165,166,167,169],{},"GTM container ID (",[27,168,151],{},", upper case). Use it when you already know the ID. The page is not fetched.",[102,171,172,177,179,182],{},[123,173,174],{},[27,175,176],{},"category",[123,178,130],{},[123,180,181],{},"optional",[123,183,184,185,188,189,188,192,188,195,188,198,188,201,188,204,188,207,188,210,188,213,90],{},"Return only findings in one category: ",[27,186,187],{},"consent",", ",[27,190,191],{},"ga4",[27,193,194],{},"ads",[27,196,197],{},"ecommerce",[27,199,200],{},"security",[27,202,203],{},"pii",[27,205,206],{},"performance",[27,208,209],{},"quality",[27,211,212],{},"organization",[27,214,215],{},"dead-code",[102,217,218,223,225,227],{},[123,219,220],{},[27,221,222],{},"tier",[123,224,130],{},[123,226,181],{},[123,228,229,230,188,233,188,236,188,239,90],{},"Return only findings in one tier: ",[27,231,232],{},"error",[27,234,235],{},"warning",[27,237,238],{},"optimization",[27,240,241],{},"info",[102,243,244,249,252,254],{},[123,245,246],{},[27,247,248],{},"top_n",[123,250,251],{},"number",[123,253,181],{},[123,255,256,257,260,261,264],{},"Maximum findings to return, most important first (by tier, then severity). Default ",[27,258,259],{},"25",". ",[27,262,263],{},"0"," returns the totals and no findings.",[10,266,267,268,270,271,273],{},"Either ",[27,269,127],{}," or ",[27,272,159],{}," is required.",[10,275,276,277,280,281,283,284,270,286,288,289,291,292,294],{},"The tool also accepts ",[27,278,279],{},"data"," (a GTM JSON export or a parsed container), although the tool's schema does not list it. ",[27,282,279],{}," only works alongside ",[27,285,127],{},[27,287,159],{},". When it is present, the container in ",[27,290,279],{}," is scanned and nothing is fetched. To scan a container you already hold, call ",[27,293,85],{}," instead.",[296,297,298],"callout",{},[10,299,300,303],{},[13,301,302],{},"Synchronous."," The tool returns when the scan completes. No polling, no webhooks. A fetched container is reused for up to five minutes, so a repeat scan of the same GTM ID skips the fetch from Google.",[73,305,307],{"id":306},"returns","Returns",[10,309,310],{},"The tool result is one text block. Its text is a JSON object with these fields, in this order:",[96,312,313,323],{},[99,314,315],{},[102,316,317,320],{},[105,318,319],{},"Field",[105,321,322],{},"Meaning",[118,324,325,352,381,396,410,428,441],{},[102,326,327,332],{},[123,328,329],{},[27,330,331],{},"container",[123,333,334,188,336,188,339,188,342,188,345,348,349,90],{},[27,335,159],{},[27,337,338],{},"name",[27,340,341],{},"tag_count",[27,343,344],{},"trigger_count",[27,346,347],{},"variable_count",", and ",[27,350,351],{},"from_cache",[102,353,354,359],{},[123,355,356],{},[27,357,358],{},"health_score",[123,360,361,362,188,365,188,368,188,371,188,374,188,377,380],{},"The full score object: ",[27,363,364],{},"score",[27,366,367],{},"grade",[27,369,370],{},"label",[27,372,373],{},"deductions",[27,375,376],{},"caps",[27,378,379],{},"functionalIssueCount",". Always describes the whole container.",[102,382,383,388],{},[123,384,385],{},[27,386,387],{},"findings_total",[123,389,390,391,270,393,395],{},"The number of findings. With a ",[27,392,176],{},[27,394,222],{}," filter, the number that match the filter.",[102,397,398,403],{},[123,399,400],{},[27,401,402],{},"findings_shown",[123,404,405,406,409],{},"How many findings the ",[27,407,408],{},"findings"," list holds.",[102,411,412,417],{},[123,413,414],{},[27,415,416],{},"findings_truncated",[123,418,419,422,423,425,426,90],{},[27,420,421],{},"true"," when ",[27,424,387],{}," is larger than ",[27,427,402],{},[102,429,430,438],{},[123,431,432,188,435],{},[27,433,434],{},"by_category",[27,436,437],{},"by_tier",[123,439,440],{},"Counts of all findings in the container. Filters do not change them.",[102,442,443,447],{},[123,444,445],{},[27,446,408],{},[123,448,449,450,188,452,188,454,188,456,458],{},"Thin findings, most important first: by tier (",[27,451,232],{},[27,453,235],{},[27,455,238],{},[27,457,241],{},"), then by severity.",[10,460,461,462,188,465,188,468,188,471,188,473,188,475,188,478,481,482,188,485,348,488,491,492,495,496,90],{},"Each finding carries ",[27,463,464],{},"rule_id",[27,466,467],{},"title",[27,469,470],{},"severity",[27,472,222],{},[27,474,176],{},[27,476,477],{},"finding_count",[27,479,480],{},"affected_items"," (the first 3), ",[27,483,484],{},"affected_items_total",[27,486,487],{},"action",[27,489,490],{},"recommendation",". The title, severity and tier are the ones that apply to this container. For the rule's catalogue entry, call ",[27,493,494],{},"get_rule",". For the full list of affected items, call ",[27,497,89],{},[10,499,500,503,504,507,508,510,511,514,515,518,519,90],{},[13,501,502],{},"Caching."," On MCP the cache field is ",[27,505,506],{},"container.from_cache",". It is ",[27,509,421],{}," when a stored copy of the container was used, ",[27,512,513],{},"false"," when the container was fetched from Google, and ",[27,516,517],{},"null"," when the container came from ",[27,520,279],{},[10,522,523,524,90],{},"The example below is the result for a small test container with ten findings, called with ",[27,525,526],{},"top_n: 3",[528,529,530,534],"details",{},[531,532,533],"summary",{},"Full result",[535,536,541],"pre",{"className":537,"code":538,"language":539,"meta":540,"style":540},"language-json shiki shiki-themes github-light github-dark","{\n  \"container\": {\n    \"gtm_id\": \"GTM-EXAMPLE\",\n    \"name\": \"Example container\",\n    \"tag_count\": 4,\n    \"trigger_count\": 1,\n    \"variable_count\": 0,\n    \"from_cache\": false\n  },\n  \"health_score\": {\n    \"score\": 49,\n    \"grade\": \"D\",\n    \"label\": \"Patterns Found\",\n    \"deductions\": {\n      \"error\": 32,\n      \"warning\": 8,\n      \"optimization\": 11,\n      \"info\": 0,\n      \"byCategory\": {\n        \"ga4\": 3,\n        \"security\": 2,\n        \"ads\": 2,\n        \"consent\": 2\n      }\n    },\n    \"caps\": {\n      \"error\": 35,\n      \"warning\": 20,\n      \"optimization\": 25,\n      \"info\": 0\n    },\n    \"functionalIssueCount\": 9\n  },\n  \"findings_total\": 10,\n  \"findings_shown\": 3,\n  \"findings_truncated\": true,\n  \"by_category\": {\n    \"ga4\": 4,\n    \"security\": 2,\n    \"ads\": 2,\n    \"consent\": 2\n  },\n  \"by_tier\": {\n    \"error\": 4,\n    \"warning\": 2,\n    \"optimization\": 3,\n    \"info\": 1\n  },\n  \"findings\": [\n    {\n      \"rule_id\": \"ga4-param-pii-risk\",\n      \"title\": \"GA4 event parameters with PII-risk names\",\n      \"severity\": \"critical\",\n      \"tier\": \"error\",\n      \"category\": \"ga4\",\n      \"finding_count\": 1,\n      \"affected_items\": [\n        { \"id\": \"2\", \"name\": \"GA4 - Contact form\", \"piiParams\": [\"email\"] }\n      ],\n      \"affected_items_total\": 1,\n      \"action\": \"Remove PII parameters\",\n      \"recommendation\": \"Remove PII parameters entirely, or rename them to non-PII names and hash the values with SHA-256 before sending.\"\n    },\n    {\n      \"rule_id\": \"ga4-pii-parameter-names\",\n      \"title\": \"GA4 parameters with PII-suggesting names\",\n      \"severity\": \"critical\",\n      \"tier\": \"error\",\n      \"category\": \"ga4\",\n      \"finding_count\": 1,\n      \"affected_items\": [\n        { \"id\": \"2\", \"name\": \"GA4 - Contact form\", \"piiParams\": [\"email\"] }\n      ],\n      \"affected_items_total\": 1,\n      \"action\": \"Remove or hash PII data\",\n      \"recommendation\": \"Remove PII parameters, or hash them with SHA-256 before sending. Ensure any user-provided data sent to GA4 is properly anonymized.\"\n    },\n    {\n      \"rule_id\": \"eval-usage\",\n      \"title\": \"eval() usage detected\",\n      \"severity\": \"high\",\n      \"tier\": \"error\",\n      \"category\": \"security\",\n      \"finding_count\": 1,\n      \"affected_items\": [\n        { \"id\": \"4\", \"name\": \"Legacy chat widget\" }\n      ],\n      \"affected_items_total\": 1,\n      \"action\": \"Remove eval() usage\",\n      \"recommendation\": \"Refactor to avoid eval(). Use JSON.parse() for data, or restructure the logic to avoid dynamic code execution.\"\n    }\n  ]\n}\n","json","",[27,542,543,552,562,578,591,604,617,629,640,646,654,667,680,693,701,714,727,740,752,760,773,786,798,809,815,821,829,841,853,864,874,879,890,895,908,920,932,940,952,964,976,986,991,999,1011,1023,1035,1046,1051,1060,1066,1079,1092,1105,1118,1131,1143,1151,1189,1195,1207,1220,1231,1236,1241,1253,1265,1276,1287,1298,1309,1316,1345,1350,1361,1373,1383,1388,1393,1405,1417,1429,1440,1452,1463,1470,1494,1499,1510,1522,1532,1538,1544],{"__ignoreMap":540},[544,545,548],"span",{"class":546,"line":547},"line",1,[544,549,551],{"class":550},"sVt8B","{\n",[544,553,555,559],{"class":546,"line":554},2,[544,556,558],{"class":557},"sj4cs","  \"container\"",[544,560,561],{"class":550},": {\n",[544,563,565,568,571,575],{"class":546,"line":564},3,[544,566,567],{"class":557},"    \"gtm_id\"",[544,569,570],{"class":550},": ",[544,572,574],{"class":573},"sZZnC","\"GTM-EXAMPLE\"",[544,576,577],{"class":550},",\n",[544,579,581,584,586,589],{"class":546,"line":580},4,[544,582,583],{"class":557},"    \"name\"",[544,585,570],{"class":550},[544,587,588],{"class":573},"\"Example container\"",[544,590,577],{"class":550},[544,592,594,597,599,602],{"class":546,"line":593},5,[544,595,596],{"class":557},"    \"tag_count\"",[544,598,570],{"class":550},[544,600,601],{"class":557},"4",[544,603,577],{"class":550},[544,605,607,610,612,615],{"class":546,"line":606},6,[544,608,609],{"class":557},"    \"trigger_count\"",[544,611,570],{"class":550},[544,613,614],{"class":557},"1",[544,616,577],{"class":550},[544,618,620,623,625,627],{"class":546,"line":619},7,[544,621,622],{"class":557},"    \"variable_count\"",[544,624,570],{"class":550},[544,626,263],{"class":557},[544,628,577],{"class":550},[544,630,632,635,637],{"class":546,"line":631},8,[544,633,634],{"class":557},"    \"from_cache\"",[544,636,570],{"class":550},[544,638,639],{"class":557},"false\n",[544,641,643],{"class":546,"line":642},9,[544,644,645],{"class":550},"  },\n",[544,647,649,652],{"class":546,"line":648},10,[544,650,651],{"class":557},"  \"health_score\"",[544,653,561],{"class":550},[544,655,657,660,662,665],{"class":546,"line":656},11,[544,658,659],{"class":557},"    \"score\"",[544,661,570],{"class":550},[544,663,664],{"class":557},"49",[544,666,577],{"class":550},[544,668,670,673,675,678],{"class":546,"line":669},12,[544,671,672],{"class":557},"    \"grade\"",[544,674,570],{"class":550},[544,676,677],{"class":573},"\"D\"",[544,679,577],{"class":550},[544,681,683,686,688,691],{"class":546,"line":682},13,[544,684,685],{"class":557},"    \"label\"",[544,687,570],{"class":550},[544,689,690],{"class":573},"\"Patterns Found\"",[544,692,577],{"class":550},[544,694,696,699],{"class":546,"line":695},14,[544,697,698],{"class":557},"    \"deductions\"",[544,700,561],{"class":550},[544,702,704,707,709,712],{"class":546,"line":703},15,[544,705,706],{"class":557},"      \"error\"",[544,708,570],{"class":550},[544,710,711],{"class":557},"32",[544,713,577],{"class":550},[544,715,717,720,722,725],{"class":546,"line":716},16,[544,718,719],{"class":557},"      \"warning\"",[544,721,570],{"class":550},[544,723,724],{"class":557},"8",[544,726,577],{"class":550},[544,728,730,733,735,738],{"class":546,"line":729},17,[544,731,732],{"class":557},"      \"optimization\"",[544,734,570],{"class":550},[544,736,737],{"class":557},"11",[544,739,577],{"class":550},[544,741,743,746,748,750],{"class":546,"line":742},18,[544,744,745],{"class":557},"      \"info\"",[544,747,570],{"class":550},[544,749,263],{"class":557},[544,751,577],{"class":550},[544,753,755,758],{"class":546,"line":754},19,[544,756,757],{"class":557},"      \"byCategory\"",[544,759,561],{"class":550},[544,761,763,766,768,771],{"class":546,"line":762},20,[544,764,765],{"class":557},"        \"ga4\"",[544,767,570],{"class":550},[544,769,770],{"class":557},"3",[544,772,577],{"class":550},[544,774,776,779,781,784],{"class":546,"line":775},21,[544,777,778],{"class":557},"        \"security\"",[544,780,570],{"class":550},[544,782,783],{"class":557},"2",[544,785,577],{"class":550},[544,787,789,792,794,796],{"class":546,"line":788},22,[544,790,791],{"class":557},"        \"ads\"",[544,793,570],{"class":550},[544,795,783],{"class":557},[544,797,577],{"class":550},[544,799,801,804,806],{"class":546,"line":800},23,[544,802,803],{"class":557},"        \"consent\"",[544,805,570],{"class":550},[544,807,808],{"class":557},"2\n",[544,810,812],{"class":546,"line":811},24,[544,813,814],{"class":550},"      }\n",[544,816,818],{"class":546,"line":817},25,[544,819,820],{"class":550},"    },\n",[544,822,824,827],{"class":546,"line":823},26,[544,825,826],{"class":557},"    \"caps\"",[544,828,561],{"class":550},[544,830,832,834,836,839],{"class":546,"line":831},27,[544,833,706],{"class":557},[544,835,570],{"class":550},[544,837,838],{"class":557},"35",[544,840,577],{"class":550},[544,842,844,846,848,851],{"class":546,"line":843},28,[544,845,719],{"class":557},[544,847,570],{"class":550},[544,849,850],{"class":557},"20",[544,852,577],{"class":550},[544,854,856,858,860,862],{"class":546,"line":855},29,[544,857,732],{"class":557},[544,859,570],{"class":550},[544,861,259],{"class":557},[544,863,577],{"class":550},[544,865,867,869,871],{"class":546,"line":866},30,[544,868,745],{"class":557},[544,870,570],{"class":550},[544,872,873],{"class":557},"0\n",[544,875,877],{"class":546,"line":876},31,[544,878,820],{"class":550},[544,880,882,885,887],{"class":546,"line":881},32,[544,883,884],{"class":557},"    \"functionalIssueCount\"",[544,886,570],{"class":550},[544,888,889],{"class":557},"9\n",[544,891,893],{"class":546,"line":892},33,[544,894,645],{"class":550},[544,896,898,901,903,906],{"class":546,"line":897},34,[544,899,900],{"class":557},"  \"findings_total\"",[544,902,570],{"class":550},[544,904,905],{"class":557},"10",[544,907,577],{"class":550},[544,909,911,914,916,918],{"class":546,"line":910},35,[544,912,913],{"class":557},"  \"findings_shown\"",[544,915,570],{"class":550},[544,917,770],{"class":557},[544,919,577],{"class":550},[544,921,923,926,928,930],{"class":546,"line":922},36,[544,924,925],{"class":557},"  \"findings_truncated\"",[544,927,570],{"class":550},[544,929,421],{"class":557},[544,931,577],{"class":550},[544,933,935,938],{"class":546,"line":934},37,[544,936,937],{"class":557},"  \"by_category\"",[544,939,561],{"class":550},[544,941,943,946,948,950],{"class":546,"line":942},38,[544,944,945],{"class":557},"    \"ga4\"",[544,947,570],{"class":550},[544,949,601],{"class":557},[544,951,577],{"class":550},[544,953,955,958,960,962],{"class":546,"line":954},39,[544,956,957],{"class":557},"    \"security\"",[544,959,570],{"class":550},[544,961,783],{"class":557},[544,963,577],{"class":550},[544,965,967,970,972,974],{"class":546,"line":966},40,[544,968,969],{"class":557},"    \"ads\"",[544,971,570],{"class":550},[544,973,783],{"class":557},[544,975,577],{"class":550},[544,977,979,982,984],{"class":546,"line":978},41,[544,980,981],{"class":557},"    \"consent\"",[544,983,570],{"class":550},[544,985,808],{"class":557},[544,987,989],{"class":546,"line":988},42,[544,990,645],{"class":550},[544,992,994,997],{"class":546,"line":993},43,[544,995,996],{"class":557},"  \"by_tier\"",[544,998,561],{"class":550},[544,1000,1002,1005,1007,1009],{"class":546,"line":1001},44,[544,1003,1004],{"class":557},"    \"error\"",[544,1006,570],{"class":550},[544,1008,601],{"class":557},[544,1010,577],{"class":550},[544,1012,1014,1017,1019,1021],{"class":546,"line":1013},45,[544,1015,1016],{"class":557},"    \"warning\"",[544,1018,570],{"class":550},[544,1020,783],{"class":557},[544,1022,577],{"class":550},[544,1024,1026,1029,1031,1033],{"class":546,"line":1025},46,[544,1027,1028],{"class":557},"    \"optimization\"",[544,1030,570],{"class":550},[544,1032,770],{"class":557},[544,1034,577],{"class":550},[544,1036,1038,1041,1043],{"class":546,"line":1037},47,[544,1039,1040],{"class":557},"    \"info\"",[544,1042,570],{"class":550},[544,1044,1045],{"class":557},"1\n",[544,1047,1049],{"class":546,"line":1048},48,[544,1050,645],{"class":550},[544,1052,1054,1057],{"class":546,"line":1053},49,[544,1055,1056],{"class":557},"  \"findings\"",[544,1058,1059],{"class":550},": [\n",[544,1061,1063],{"class":546,"line":1062},50,[544,1064,1065],{"class":550},"    {\n",[544,1067,1069,1072,1074,1077],{"class":546,"line":1068},51,[544,1070,1071],{"class":557},"      \"rule_id\"",[544,1073,570],{"class":550},[544,1075,1076],{"class":573},"\"ga4-param-pii-risk\"",[544,1078,577],{"class":550},[544,1080,1082,1085,1087,1090],{"class":546,"line":1081},52,[544,1083,1084],{"class":557},"      \"title\"",[544,1086,570],{"class":550},[544,1088,1089],{"class":573},"\"GA4 event parameters with PII-risk names\"",[544,1091,577],{"class":550},[544,1093,1095,1098,1100,1103],{"class":546,"line":1094},53,[544,1096,1097],{"class":557},"      \"severity\"",[544,1099,570],{"class":550},[544,1101,1102],{"class":573},"\"critical\"",[544,1104,577],{"class":550},[544,1106,1108,1111,1113,1116],{"class":546,"line":1107},54,[544,1109,1110],{"class":557},"      \"tier\"",[544,1112,570],{"class":550},[544,1114,1115],{"class":573},"\"error\"",[544,1117,577],{"class":550},[544,1119,1121,1124,1126,1129],{"class":546,"line":1120},55,[544,1122,1123],{"class":557},"      \"category\"",[544,1125,570],{"class":550},[544,1127,1128],{"class":573},"\"ga4\"",[544,1130,577],{"class":550},[544,1132,1134,1137,1139,1141],{"class":546,"line":1133},56,[544,1135,1136],{"class":557},"      \"finding_count\"",[544,1138,570],{"class":550},[544,1140,614],{"class":557},[544,1142,577],{"class":550},[544,1144,1146,1149],{"class":546,"line":1145},57,[544,1147,1148],{"class":557},"      \"affected_items\"",[544,1150,1059],{"class":550},[544,1152,1154,1157,1160,1162,1165,1167,1170,1172,1175,1177,1180,1183,1186],{"class":546,"line":1153},58,[544,1155,1156],{"class":550},"        { ",[544,1158,1159],{"class":557},"\"id\"",[544,1161,570],{"class":550},[544,1163,1164],{"class":573},"\"2\"",[544,1166,188],{"class":550},[544,1168,1169],{"class":557},"\"name\"",[544,1171,570],{"class":550},[544,1173,1174],{"class":573},"\"GA4 - Contact form\"",[544,1176,188],{"class":550},[544,1178,1179],{"class":557},"\"piiParams\"",[544,1181,1182],{"class":550},": [",[544,1184,1185],{"class":573},"\"email\"",[544,1187,1188],{"class":550},"] }\n",[544,1190,1192],{"class":546,"line":1191},59,[544,1193,1194],{"class":550},"      ],\n",[544,1196,1198,1201,1203,1205],{"class":546,"line":1197},60,[544,1199,1200],{"class":557},"      \"affected_items_total\"",[544,1202,570],{"class":550},[544,1204,614],{"class":557},[544,1206,577],{"class":550},[544,1208,1210,1213,1215,1218],{"class":546,"line":1209},61,[544,1211,1212],{"class":557},"      \"action\"",[544,1214,570],{"class":550},[544,1216,1217],{"class":573},"\"Remove PII parameters\"",[544,1219,577],{"class":550},[544,1221,1223,1226,1228],{"class":546,"line":1222},62,[544,1224,1225],{"class":557},"      \"recommendation\"",[544,1227,570],{"class":550},[544,1229,1230],{"class":573},"\"Remove PII parameters entirely, or rename them to non-PII names and hash the values with SHA-256 before sending.\"\n",[544,1232,1234],{"class":546,"line":1233},63,[544,1235,820],{"class":550},[544,1237,1239],{"class":546,"line":1238},64,[544,1240,1065],{"class":550},[544,1242,1244,1246,1248,1251],{"class":546,"line":1243},65,[544,1245,1071],{"class":557},[544,1247,570],{"class":550},[544,1249,1250],{"class":573},"\"ga4-pii-parameter-names\"",[544,1252,577],{"class":550},[544,1254,1256,1258,1260,1263],{"class":546,"line":1255},66,[544,1257,1084],{"class":557},[544,1259,570],{"class":550},[544,1261,1262],{"class":573},"\"GA4 parameters with PII-suggesting names\"",[544,1264,577],{"class":550},[544,1266,1268,1270,1272,1274],{"class":546,"line":1267},67,[544,1269,1097],{"class":557},[544,1271,570],{"class":550},[544,1273,1102],{"class":573},[544,1275,577],{"class":550},[544,1277,1279,1281,1283,1285],{"class":546,"line":1278},68,[544,1280,1110],{"class":557},[544,1282,570],{"class":550},[544,1284,1115],{"class":573},[544,1286,577],{"class":550},[544,1288,1290,1292,1294,1296],{"class":546,"line":1289},69,[544,1291,1123],{"class":557},[544,1293,570],{"class":550},[544,1295,1128],{"class":573},[544,1297,577],{"class":550},[544,1299,1301,1303,1305,1307],{"class":546,"line":1300},70,[544,1302,1136],{"class":557},[544,1304,570],{"class":550},[544,1306,614],{"class":557},[544,1308,577],{"class":550},[544,1310,1312,1314],{"class":546,"line":1311},71,[544,1313,1148],{"class":557},[544,1315,1059],{"class":550},[544,1317,1319,1321,1323,1325,1327,1329,1331,1333,1335,1337,1339,1341,1343],{"class":546,"line":1318},72,[544,1320,1156],{"class":550},[544,1322,1159],{"class":557},[544,1324,570],{"class":550},[544,1326,1164],{"class":573},[544,1328,188],{"class":550},[544,1330,1169],{"class":557},[544,1332,570],{"class":550},[544,1334,1174],{"class":573},[544,1336,188],{"class":550},[544,1338,1179],{"class":557},[544,1340,1182],{"class":550},[544,1342,1185],{"class":573},[544,1344,1188],{"class":550},[544,1346,1348],{"class":546,"line":1347},73,[544,1349,1194],{"class":550},[544,1351,1353,1355,1357,1359],{"class":546,"line":1352},74,[544,1354,1200],{"class":557},[544,1356,570],{"class":550},[544,1358,614],{"class":557},[544,1360,577],{"class":550},[544,1362,1364,1366,1368,1371],{"class":546,"line":1363},75,[544,1365,1212],{"class":557},[544,1367,570],{"class":550},[544,1369,1370],{"class":573},"\"Remove or hash PII data\"",[544,1372,577],{"class":550},[544,1374,1376,1378,1380],{"class":546,"line":1375},76,[544,1377,1225],{"class":557},[544,1379,570],{"class":550},[544,1381,1382],{"class":573},"\"Remove PII parameters, or hash them with SHA-256 before sending. Ensure any user-provided data sent to GA4 is properly anonymized.\"\n",[544,1384,1386],{"class":546,"line":1385},77,[544,1387,820],{"class":550},[544,1389,1391],{"class":546,"line":1390},78,[544,1392,1065],{"class":550},[544,1394,1396,1398,1400,1403],{"class":546,"line":1395},79,[544,1397,1071],{"class":557},[544,1399,570],{"class":550},[544,1401,1402],{"class":573},"\"eval-usage\"",[544,1404,577],{"class":550},[544,1406,1408,1410,1412,1415],{"class":546,"line":1407},80,[544,1409,1084],{"class":557},[544,1411,570],{"class":550},[544,1413,1414],{"class":573},"\"eval() usage detected\"",[544,1416,577],{"class":550},[544,1418,1420,1422,1424,1427],{"class":546,"line":1419},81,[544,1421,1097],{"class":557},[544,1423,570],{"class":550},[544,1425,1426],{"class":573},"\"high\"",[544,1428,577],{"class":550},[544,1430,1432,1434,1436,1438],{"class":546,"line":1431},82,[544,1433,1110],{"class":557},[544,1435,570],{"class":550},[544,1437,1115],{"class":573},[544,1439,577],{"class":550},[544,1441,1443,1445,1447,1450],{"class":546,"line":1442},83,[544,1444,1123],{"class":557},[544,1446,570],{"class":550},[544,1448,1449],{"class":573},"\"security\"",[544,1451,577],{"class":550},[544,1453,1455,1457,1459,1461],{"class":546,"line":1454},84,[544,1456,1136],{"class":557},[544,1458,570],{"class":550},[544,1460,614],{"class":557},[544,1462,577],{"class":550},[544,1464,1466,1468],{"class":546,"line":1465},85,[544,1467,1148],{"class":557},[544,1469,1059],{"class":550},[544,1471,1473,1475,1477,1479,1482,1484,1486,1488,1491],{"class":546,"line":1472},86,[544,1474,1156],{"class":550},[544,1476,1159],{"class":557},[544,1478,570],{"class":550},[544,1480,1481],{"class":573},"\"4\"",[544,1483,188],{"class":550},[544,1485,1169],{"class":557},[544,1487,570],{"class":550},[544,1489,1490],{"class":573},"\"Legacy chat widget\"",[544,1492,1493],{"class":550}," }\n",[544,1495,1497],{"class":546,"line":1496},87,[544,1498,1194],{"class":550},[544,1500,1502,1504,1506,1508],{"class":546,"line":1501},88,[544,1503,1200],{"class":557},[544,1505,570],{"class":550},[544,1507,614],{"class":557},[544,1509,577],{"class":550},[544,1511,1513,1515,1517,1520],{"class":546,"line":1512},89,[544,1514,1212],{"class":557},[544,1516,570],{"class":550},[544,1518,1519],{"class":573},"\"Remove eval() usage\"",[544,1521,577],{"class":550},[544,1523,1525,1527,1529],{"class":546,"line":1524},90,[544,1526,1225],{"class":557},[544,1528,570],{"class":550},[544,1530,1531],{"class":573},"\"Refactor to avoid eval(). Use JSON.parse() for data, or restructure the logic to avoid dynamic code execution.\"\n",[544,1533,1535],{"class":546,"line":1534},91,[544,1536,1537],{"class":550},"    }\n",[544,1539,1541],{"class":546,"line":1540},92,[544,1542,1543],{"class":550},"  ]\n",[544,1545,1547],{"class":546,"line":1546},93,[544,1548,1549],{"class":550},"}\n",[10,1551,1552,1553,188,1555,1557,1558,1561,1562,90],{},"In ",[27,1554,358],{},[27,1556,376],{}," is the most each tier can take off the score: 35 for errors, 20 for warnings, 25 for optimizations, 0 for info. ",[27,1559,1560],{},"deductions.byCategory"," counts the findings that fed the score in each category. It is a count, not points. See ",[45,1563,1565],{"href":1564},"\u002Fhealth-score\u002F","Health score",[73,1567,48],{"id":1568},"vs-rest",[10,1570,1571,1573,1574,1576],{},[27,1572,5],{}," and ",[27,1575,42],{}," run the same rules on the same container. The answers differ in these ways:",[96,1578,1579,1595],{},[99,1580,1581],{},[102,1582,1583,1585,1590],{},[105,1584],{},[105,1586,1587,1588],{},"MCP ",[27,1589,5],{},[105,1591,1592,1593],{},"REST ",[27,1594,42],{},[118,1596,1597,1610,1622,1636,1655,1669,1688,1701,1720],{},[102,1598,1599,1604,1607],{},[123,1600,1601,1603],{},[27,1602,248],{}," when left out",[123,1605,1606],{},"25 findings",[123,1608,1609],{},"all findings",[102,1611,1612,1616,1619],{},[123,1613,1614],{},[27,1615,402],{},[123,1617,1618],{},"present",[123,1620,1621],{},"not present",[102,1623,1624,1632,1634],{},[123,1625,1626,188,1629],{},[27,1627,1628],{},"scanned_at",[27,1630,1631],{},"duration_ms",[123,1633,1621],{},[123,1635,1618],{},[102,1637,1638,1644,1646],{},[123,1639,1640,1643],{},[27,1641,1642],{},"site"," object",[123,1645,1621],{},[123,1647,1648,1649,188,1651,188,1653,49],{},"present (",[27,1650,127],{},[27,1652,159],{},[27,1654,351],{},[102,1656,1657,1660,1664],{},[123,1658,1659],{},"Cache field",[123,1661,1662],{},[27,1663,506],{},[123,1665,1666],{},[27,1667,1668],{},"site.from_cache",[102,1670,1671,1674,1681],{},[123,1672,1673],{},"Field order",[123,1675,1676,1678,1679],{},[27,1677,358],{}," and totals before ",[27,1680,408],{},[123,1682,1683,1685,1686],{},[27,1684,408],{}," before ",[27,1687,358],{},[102,1689,1690,1695,1698],{},[123,1691,1692],{},[27,1693,1694],{},"include_evidence",[123,1696,1697],{},"not accepted",[123,1699,1700],{},"accepted",[102,1702,1703,1708,1710],{},[123,1704,1705,1706],{},"Bare domain or GTM ID in ",[27,1707,127],{},[123,1709,1700],{},[123,1711,1712,1713,1715,1716,1719],{},"refused: ",[27,1714,127],{}," must be a full ",[27,1717,1718],{},"http(s)"," URL",[102,1721,1722,1725,1728],{},[123,1723,1724],{},"Rate-limit headers",[123,1726,1727],{},"none",[123,1729,1730,1733],{},[27,1731,1732],{},"X-RateLimit-*"," on responses to counted requests",[73,1735,1737],{"id":1736},"errors","Errors",[17,1739,1740,1765,1784],{},[20,1741,1742,1745,1746,1749,1750,1753,1754,1756,1757,270,1759,1761,1762,1764],{},[13,1743,1744],{},"Bad arguments"," come back as a JSON-RPC error with code ",[27,1747,1748],{},"-32602",". This covers an argument the tool does not accept (for example ",[27,1751,1752],{},"categories"," for ",[27,1755,176],{},"; the message suggests the nearest name), a ",[27,1758,176],{},[27,1760,222],{}," value that does not exist, a ",[27,1763,248],{}," that is negative or not a number, and an argument of the wrong type. These are checked before the rate limit, so they do not count against it.",[20,1766,1767,1770,1771,1774,1775,1777,1778,1780,1781,1783],{},[13,1768,1769],{},"A scan that fails"," comes back as a normal tool result with ",[27,1772,1773],{},"isError: true"," and a plain message in the text block. Examples: neither ",[27,1776,127],{}," nor ",[27,1779,159],{}," was given, the page has no GTM snippet or could not be fetched, the GTM ID is not in the ",[27,1782,151],{}," format, or Google has no public container with that ID. These calls do count against the rate limit.",[20,1785,1786,1789,1790,1793,1794,1797,1798,1800],{},[13,1787,1788],{},"Rate limit"," comes back as a JSON-RPC error with code ",[27,1791,1792],{},"-32603"," and the message ",[27,1795,1796],{},"Rate limit exceeded for scan_url: 101\u002F100. Resets at \u003Ctime>."," The HTTP status is 200. MCP responses carry no ",[27,1799,1732],{}," headers. The limit resets at midnight UTC.",[73,1802,1804],{"id":1803},"try-saying","Try saying",[10,1806,1807],{},"Natural-language prompts that route to this tool through an agent:",[17,1809,1810,1813,1821],{},[20,1811,1812],{},"\"Audit example.com for consent issues.\"",[20,1814,1815,1816,1820],{},"\"Check the GTM setup at ",[45,1817,139],{"href":139,"rel":1818},[1819],"nofollow",".\"",[20,1822,1823],{},"\"Scan GTM-XXXXX and show me only the errors.\"",[10,1825,1826],{},"For agents wired to your own application:",[535,1828,1833],{"className":1829,"code":1831,"language":1832},[1830],"language-text","You have access to TagManifest's MCP server. Use the scan_url tool\nto audit a website or GTM container by URL or GTM ID. The tool\nrequires either a `url` or `gtm_id` and optionally accepts `category`,\n`tier`, and `top_n` (default 25). The result starts with the health\nscore and findings_total, then lists findings most important first\n(by tier, then severity).\n","text",[27,1834,1831],{"__ignoreMap":540},[73,1836,1838],{"id":1837},"see-also","See also",[17,1840,1841,1847,1853],{},[20,1842,1843,1846],{},[45,1844,85],{"href":1845},"\u002Fmcp\u002Ftools\u002Fscan-container\u002F"," — audit a GTM JSON export you already have in hand",[20,1848,1849,1852],{},[45,1850,89],{"href":1851},"\u002Fmcp\u002Ftools\u002Fevaluate-rule\u002F"," — run a single rule and get every affected item",[20,1854,1855,1857],{},[45,1856,1565],{"href":1564}," — how findings translate to the score",[1859,1860,1861],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":540,"searchDepth":554,"depth":554,"links":1863},[1864,1865,1866,1867,1868,1869,1870],{"id":75,"depth":554,"text":76},{"id":93,"depth":554,"text":94},{"id":306,"depth":554,"text":307},{"id":1568,"depth":554,"text":48},{"id":1736,"depth":554,"text":1737},{"id":1803,"depth":554,"text":1804},{"id":1837,"depth":554,"text":1838},[1872,1875,1877],{"label":1873,"href":1874},"API Reference","\u002F",{"label":1876},"MCP tools",{"label":5},{"cards":1879,"onpage":1892},[1880,1885],{"title":1881,"tabs":1882},"MCP tool call",[1883],{"label":93,"language":539,"code":1884},"{\n  \"tool\": \"scan_url\",\n  \"arguments\": {\n    \"url\": \"https:\u002F\u002Fexample.com\",\n    \"top_n\": 3\n  }\n}\n",{"title":1886,"variant":1887,"tabs":1888},"Tool result","response",[1889],{"label":1890,"language":539,"code":1891},"tool result","{\n  \"container\": {\n    \"gtm_id\": \"GTM-EXAMPLE\",\n    \"name\": \"Example container\",\n    \"tag_count\": 4,\n    \"trigger_count\": 1,\n    \"variable_count\": 0,\n    \"from_cache\": false\n  },\n  \"health_score\": {\n    \"score\": 49,\n    \"grade\": \"D\",\n    \"label\": \"Patterns Found\",\n    \"deductions\": {\n      \"error\": 32,\n      \"warning\": 8,\n      \"optimization\": 11,\n      \"info\": 0,\n      \"byCategory\": {\n        \"ga4\": 3,\n        \"security\": 2,\n        \"ads\": 2,\n        \"consent\": 2\n      }\n    },\n    \"caps\": {\n      \"error\": 35,\n      \"warning\": 20,\n      \"optimization\": 25,\n      \"info\": 0\n    },\n    \"functionalIssueCount\": 9\n  },\n  \"findings_total\": 10,\n  \"findings_shown\": 3,\n  \"findings_truncated\": true,\n  \"by_category\": {\n    \"ga4\": 4,\n    \"security\": 2,\n    \"ads\": 2,\n    \"consent\": 2\n  },\n  \"by_tier\": {\n    \"error\": 4,\n    \"warning\": 2,\n    \"optimization\": 3,\n    \"info\": 1\n  },\n  \"findings\": [\n    {\n      \"rule_id\": \"ga4-param-pii-risk\",\n      \"title\": \"GA4 event parameters with PII-risk names\",\n      \"severity\": \"critical\",\n      \"tier\": \"error\",\n      \"category\": \"ga4\",\n      \"finding_count\": 1,\n      \"affected_items\": [\n        {\n          \"id\": \"2\",\n          \"name\": \"GA4 - Contact form\",\n          \"piiParams\": [\n            \"email\"\n          ]\n        }\n      ],\n      \"affected_items_total\": 1,\n      \"action\": \"Remove PII parameters\",\n      \"recommendation\": \"Remove PII parameters entirely, or rename them to non-PII names and hash the values with SHA-256 before sending.\"\n    },\n    {\n      \"rule_id\": \"ga4-pii-parameter-names\",\n      \"title\": \"GA4 parameters with PII-suggesting names\",\n      \"severity\": \"critical\",\n      \"tier\": \"error\",\n      \"category\": \"ga4\",\n      \"finding_count\": 1,\n      \"affected_items\": [\n        {\n          \"id\": \"2\",\n          \"name\": \"GA4 - Contact form\",\n          \"piiParams\": [\n            \"email\"\n          ]\n        }\n      ],\n      \"affected_items_total\": 1,\n      \"action\": \"Remove or hash PII data\",\n      \"recommendation\": \"Remove PII parameters, or hash them with SHA-256 before sending. Ensure any user-provided data sent to GA4 is properly anonymized.\"\n    },\n    {\n      \"rule_id\": \"eval-usage\",\n      \"title\": \"eval() usage detected\",\n      \"severity\": \"high\",\n      \"tier\": \"error\",\n      \"category\": \"security\",\n      \"finding_count\": 1,\n      \"affected_items\": [\n        {\n          \"id\": \"4\",\n          \"name\": \"Legacy chat widget\"\n        }\n      ],\n      \"affected_items_total\": 1,\n      \"action\": \"Remove eval() usage\",\n      \"recommendation\": \"Refactor to avoid eval(). Use JSON.parse() for data, or restructure the logic to avoid dynamic code execution.\"\n    }\n  ]\n}\n",[1893,1894,1895,1896,1897,1898],{"id":75,"label":76},{"id":93,"label":94},{"id":306,"label":307},{"id":1568,"label":48},{"id":1736,"label":1737},{"id":1803,"label":1804},null,"MCP tool that audits a GTM container by page address or GTM ID. Synchronous.","md",{},true,{"href":1845,"title":85},"\u002Fmcp\u002Ftools\u002Fscan-url",{"href":1907,"title":1908},"\u002Fmcp\u002Fconnect\u002F","Connect to Claude","APIReference",{"title":5,"description":1900},"mcp\u002Ftools\u002Fscan-url",false,"ugDvqR12Gz9nZMxjx98FahShCtlOSlsY80tDkTUVTjE",1796069482653]