[{"data":1,"prerenderedAt":1436},["ShallowReactive",2],{"docs-\u002Fmcp\u002Ftools\u002Fcompare-containers\u002F":3},{"id":4,"title":5,"body":6,"breadcrumb":1393,"coderail":1400,"dateModified":1419,"datePublished":1419,"description":1420,"extension":1421,"meta":1422,"navigation":1423,"next":1424,"path":1427,"prev":1428,"schemaType":1431,"seo":1432,"stem":1433,"wide":1434,"__hash__":1435},"docs\u002Fmcp\u002Ftools\u002Fcompare-containers.md","compare_containers",{"type":7,"value":8,"toc":1385},"minimark",[9,16,53,56,60,65,71,82,86,97,270,288,297,301,304,394,430,437,1239,1251,1255,1321,1325,1328,1339,1342,1350,1354,1381],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,29,35,41,47],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"tool"," — ",[27,28,5],"code",{},[20,30,31,34],{},[13,32,33],{},"purpose"," — diff two GTM containers; returns each health score, the difference, and the findings unique to each side and shared",[20,36,37,40],{},[13,38,39],{},"rest equivalent"," — none (MCP only)",[20,42,43,46],{},[13,44,45],{},"rate limit"," — 30\u002Fday per user (each call scans two containers and counts once)",[20,48,49,52],{},[13,50,51],{},"synchronous"," — yes",[10,54,55],{},"Diffs two containers. Each call scans both sides at the same time. Each side can be a page address, a GTM ID, or a GTM JSON export.",[57,58],"endpoint-bar",{"method":59,"path":5},"TOOL",[61,62,64],"h2",{"id":63},"when","When to use it",[10,66,67,68,70],{},"Use ",[27,69,5],{}," when the question is about the difference between two containers: staging against production, one site against another, or an export from before a change against one from after.",[10,72,73,74,77,78,81],{},"The tool keeps no history. To compare before and after, you need both containers: two exports, or two GTM IDs. For one container, use ",[27,75,76],{},"scan_url",". To run one named rule, use ",[27,79,80],{},"evaluate_rule",".",[61,83,85],{"id":84},"arguments","Arguments",[10,87,88,89,92,93,96],{},"Both ",[27,90,91],{},"a"," and ",[27,94,95],{},"b"," are required. Each is an object that names one container.",[98,99,100,119],"table",{},[101,102,103],"thead",{},[104,105,106,110,113,116],"tr",{},[107,108,109],"th",{},"Argument",[107,111,112],{},"Type",[107,114,115],{},"Required",[107,117,118],{},"Description",[120,121,122,149,168,203,223,240],"tbody",{},[104,123,124,129,132,135],{},[125,126,127],"td",{},[27,128,91],{},[125,130,131],{},"object",[125,133,134],{},"required",[125,136,137,138,141,142,145,146,81],{},"The first container. Holds one of ",[27,139,140],{},"url",", ",[27,143,144],{},"gtm_id",", or ",[27,147,148],{},"data",[104,150,151,155,157,159],{},[125,152,153],{},[27,154,95],{},[125,156,131],{},[125,158,134],{},[125,160,161,162,141,164,145,166,81],{},"The second container. Holds one of ",[27,163,140],{},[27,165,144],{},[27,167,148],{},[104,169,170,178,181,184],{},[125,171,172,141,175],{},[27,173,174],{},"a.url",[27,176,177],{},"b.url",[125,179,180],{},"string",[125,182,183],{},"one of",[125,185,186,187,190,191,194,195,198,199,202],{},"Address of the page. A full URL (",[27,188,189],{},"https:\u002F\u002Fexample.com","), a bare domain (",[27,192,193],{},"example.com",", scanned over ",[27,196,197],{},"https","), or a GTM ID (",[27,200,201],{},"GTM-XXXXX",") are all accepted.",[104,204,205,213,215,217],{},[125,206,207,141,210],{},[27,208,209],{},"a.gtm_id",[27,211,212],{},"b.gtm_id",[125,214,180],{},[125,216,183],{},[125,218,219,220,222],{},"GTM container ID (",[27,221,201],{},", upper case). The page is not fetched.",[104,224,225,233,235,237],{},[125,226,227,141,230],{},[27,228,229],{},"a.data",[27,231,232],{},"b.data",[125,234,131],{},[125,236,183],{},[125,238,239],{},"A GTM JSON export as downloaded from GTM, or container data already parsed by TagManifest. Nothing is fetched.",[104,241,242,247,250,253],{},[125,243,244],{},[27,245,246],{},"top_n",[125,248,249],{},"number",[125,251,252],{},"optional",[125,254,255,256,141,259,92,262,265,266,269],{},"How many findings to list in each of ",[27,257,258],{},"a_only",[27,260,261],{},"b_only",[27,263,264],{},"shared",". Default ",[27,267,268],{},"10",". The totals always count every finding.",[10,271,272,273,92,275,277,278,141,280,145,282,284,285,287],{},"Each of ",[27,274,91],{},[27,276,95],{}," needs one of ",[27,279,140],{},[27,281,144],{},[27,283,148],{},". If ",[27,286,148],{}," is present it is used and the other two are ignored.",[289,290,291],"callout",{},[10,292,293,296],{},[13,294,295],{},"Synchronous."," Both scans run at the same time and the tool returns when both complete. No polling, no webhooks. A fetched container is reused for up to five minutes.",[61,298,300],{"id":299},"returns","Returns",[10,302,303],{},"The tool result is one text block. Its text is a JSON object with these fields, in this order:",[98,305,306,316],{},[101,307,308],{},[104,309,310,313],{},[107,311,312],{},"Field",[107,314,315],{},"Meaning",[120,317,318,341,351,367,376,385],{},[104,319,320,326],{},[125,321,322,141,324],{},[27,323,91],{},[27,325,95],{},[125,327,328,329,141,331,141,334,337,338,81],{},"For each side: ",[27,330,144],{},[27,332,333],{},"total_findings",[27,335,336],{},"health_score"," (the 0–100 number), and ",[27,339,340],{},"grade",[104,342,343,348],{},[125,344,345],{},[27,346,347],{},"health_delta",[125,349,350],{},"Score of B minus score of A. A positive value means B is healthier.",[104,352,353,364],{},[125,354,355,141,358,141,361],{},[27,356,357],{},"a_only_total",[27,359,360],{},"b_only_total",[27,362,363],{},"shared_total",[125,365,366],{},"How many findings are in each group.",[104,368,369,373],{},[125,370,371],{},[27,372,258],{},[125,374,375],{},"Findings whose rule fired in A and not in B.",[104,377,378,382],{},[125,379,380],{},[27,381,261],{},[125,383,384],{},"Findings whose rule fired in B and not in A.",[104,386,387,391],{},[125,388,389],{},[27,390,264],{},[125,392,393],{},"Findings whose rule fired in both. The details shown are from A.",[10,395,396,397,400,401,403,404,141,406,141,409,141,412,141,415,418,419,422,423,426,427,429],{},"Two findings match when they have the same ",[27,398,399],{},"rule_id",". Each list holds the first ",[27,402,246],{}," findings of its group (10 by default), most important first: by tier, then severity. Each finding is a short line with ",[27,405,399],{},[27,407,408],{},"title",[27,410,411],{},"severity",[27,413,414],{},"tier",[27,416,417],{},"category",", and ",[27,420,421],{},"affected_items_total",". Call ",[27,424,425],{},"get_rule"," for the fix, or ",[27,428,80],{}," for the affected items.",[10,431,432,433,436],{},"The example below compares two small test containers, called with ",[27,434,435],{},"top_n: 3",". Container B has two security findings fixed and a Conversion Linker added.",[438,439,441],"details",{"summary":440},"Full response shape",[442,443,448],"pre",{"className":444,"code":445,"language":446,"meta":447,"style":447},"language-json shiki shiki-themes github-light github-dark","{\n  \"a\": {\n    \"gtm_id\": \"GTM-EXAMPLE\",\n    \"total_findings\": 10,\n    \"health_score\": 49,\n    \"grade\": \"D\"\n  },\n  \"b\": {\n    \"gtm_id\": \"GTM-EXAMPLE2\",\n    \"total_findings\": 8,\n    \"health_score\": 69,\n    \"grade\": \"C\"\n  },\n  \"health_delta\": 20,\n  \"a_only_total\": 3,\n  \"b_only_total\": 1,\n  \"shared_total\": 7,\n  \"a_only\": [\n    {\n      \"rule_id\": \"eval-usage\",\n      \"title\": \"eval() usage detected\",\n      \"severity\": \"high\",\n      \"tier\": \"error\",\n      \"category\": \"security\",\n      \"affected_items_total\": 1\n    },\n    {\n      \"rule_id\": \"http-script-loading\",\n      \"title\": \"HTTP (non-secure) resource loading detected\",\n      \"severity\": \"high\",\n      \"tier\": \"error\",\n      \"category\": \"security\",\n      \"affected_items_total\": 1\n    },\n    {\n      \"rule_id\": \"missing-conversion-linker\",\n      \"title\": \"Google Ads tags present but no Conversion Linker tag\",\n      \"severity\": \"critical\",\n      \"tier\": \"warning\",\n      \"category\": \"ads\",\n      \"affected_items_total\": 1\n    }\n  ],\n  \"b_only\": [\n    {\n      \"rule_id\": \"naming-default-names\",\n      \"title\": \"Tags or triggers with default\u002Fplaceholder names\",\n      \"severity\": \"medium\",\n      \"tier\": \"info\",\n      \"category\": \"organization\",\n      \"affected_items_total\": 1\n    }\n  ],\n  \"shared\": [\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      \"affected_items_total\": 1\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      \"affected_items_total\": 1\n    },\n    {\n      \"rule_id\": \"consent-no-cmp\",\n      \"title\": \"Ad\u002Ftracking tags present with no consent configuration and no CMP\",\n      \"severity\": \"high\",\n      \"tier\": \"warning\",\n      \"category\": \"consent\",\n      \"affected_items_total\": 1\n    }\n  ]\n}\n","json","",[27,449,450,459,469,485,497,510,521,527,535,547,559,571,581,586,599,612,625,638,647,653,666,679,692,705,718,729,735,740,752,764,775,786,797,806,811,816,828,840,852,864,876,885,891,897,905,910,922,934,946,958,970,979,984,989,997,1002,1014,1026,1037,1048,1060,1069,1074,1079,1091,1103,1114,1125,1136,1145,1150,1155,1167,1179,1190,1201,1213,1222,1227,1233],{"__ignoreMap":447},[451,452,455],"span",{"class":453,"line":454},"line",1,[451,456,458],{"class":457},"sVt8B","{\n",[451,460,462,466],{"class":453,"line":461},2,[451,463,465],{"class":464},"sj4cs","  \"a\"",[451,467,468],{"class":457},": {\n",[451,470,472,475,478,482],{"class":453,"line":471},3,[451,473,474],{"class":464},"    \"gtm_id\"",[451,476,477],{"class":457},": ",[451,479,481],{"class":480},"sZZnC","\"GTM-EXAMPLE\"",[451,483,484],{"class":457},",\n",[451,486,488,491,493,495],{"class":453,"line":487},4,[451,489,490],{"class":464},"    \"total_findings\"",[451,492,477],{"class":457},[451,494,268],{"class":464},[451,496,484],{"class":457},[451,498,500,503,505,508],{"class":453,"line":499},5,[451,501,502],{"class":464},"    \"health_score\"",[451,504,477],{"class":457},[451,506,507],{"class":464},"49",[451,509,484],{"class":457},[451,511,513,516,518],{"class":453,"line":512},6,[451,514,515],{"class":464},"    \"grade\"",[451,517,477],{"class":457},[451,519,520],{"class":480},"\"D\"\n",[451,522,524],{"class":453,"line":523},7,[451,525,526],{"class":457},"  },\n",[451,528,530,533],{"class":453,"line":529},8,[451,531,532],{"class":464},"  \"b\"",[451,534,468],{"class":457},[451,536,538,540,542,545],{"class":453,"line":537},9,[451,539,474],{"class":464},[451,541,477],{"class":457},[451,543,544],{"class":480},"\"GTM-EXAMPLE2\"",[451,546,484],{"class":457},[451,548,550,552,554,557],{"class":453,"line":549},10,[451,551,490],{"class":464},[451,553,477],{"class":457},[451,555,556],{"class":464},"8",[451,558,484],{"class":457},[451,560,562,564,566,569],{"class":453,"line":561},11,[451,563,502],{"class":464},[451,565,477],{"class":457},[451,567,568],{"class":464},"69",[451,570,484],{"class":457},[451,572,574,576,578],{"class":453,"line":573},12,[451,575,515],{"class":464},[451,577,477],{"class":457},[451,579,580],{"class":480},"\"C\"\n",[451,582,584],{"class":453,"line":583},13,[451,585,526],{"class":457},[451,587,589,592,594,597],{"class":453,"line":588},14,[451,590,591],{"class":464},"  \"health_delta\"",[451,593,477],{"class":457},[451,595,596],{"class":464},"20",[451,598,484],{"class":457},[451,600,602,605,607,610],{"class":453,"line":601},15,[451,603,604],{"class":464},"  \"a_only_total\"",[451,606,477],{"class":457},[451,608,609],{"class":464},"3",[451,611,484],{"class":457},[451,613,615,618,620,623],{"class":453,"line":614},16,[451,616,617],{"class":464},"  \"b_only_total\"",[451,619,477],{"class":457},[451,621,622],{"class":464},"1",[451,624,484],{"class":457},[451,626,628,631,633,636],{"class":453,"line":627},17,[451,629,630],{"class":464},"  \"shared_total\"",[451,632,477],{"class":457},[451,634,635],{"class":464},"7",[451,637,484],{"class":457},[451,639,641,644],{"class":453,"line":640},18,[451,642,643],{"class":464},"  \"a_only\"",[451,645,646],{"class":457},": [\n",[451,648,650],{"class":453,"line":649},19,[451,651,652],{"class":457},"    {\n",[451,654,656,659,661,664],{"class":453,"line":655},20,[451,657,658],{"class":464},"      \"rule_id\"",[451,660,477],{"class":457},[451,662,663],{"class":480},"\"eval-usage\"",[451,665,484],{"class":457},[451,667,669,672,674,677],{"class":453,"line":668},21,[451,670,671],{"class":464},"      \"title\"",[451,673,477],{"class":457},[451,675,676],{"class":480},"\"eval() usage detected\"",[451,678,484],{"class":457},[451,680,682,685,687,690],{"class":453,"line":681},22,[451,683,684],{"class":464},"      \"severity\"",[451,686,477],{"class":457},[451,688,689],{"class":480},"\"high\"",[451,691,484],{"class":457},[451,693,695,698,700,703],{"class":453,"line":694},23,[451,696,697],{"class":464},"      \"tier\"",[451,699,477],{"class":457},[451,701,702],{"class":480},"\"error\"",[451,704,484],{"class":457},[451,706,708,711,713,716],{"class":453,"line":707},24,[451,709,710],{"class":464},"      \"category\"",[451,712,477],{"class":457},[451,714,715],{"class":480},"\"security\"",[451,717,484],{"class":457},[451,719,721,724,726],{"class":453,"line":720},25,[451,722,723],{"class":464},"      \"affected_items_total\"",[451,725,477],{"class":457},[451,727,728],{"class":464},"1\n",[451,730,732],{"class":453,"line":731},26,[451,733,734],{"class":457},"    },\n",[451,736,738],{"class":453,"line":737},27,[451,739,652],{"class":457},[451,741,743,745,747,750],{"class":453,"line":742},28,[451,744,658],{"class":464},[451,746,477],{"class":457},[451,748,749],{"class":480},"\"http-script-loading\"",[451,751,484],{"class":457},[451,753,755,757,759,762],{"class":453,"line":754},29,[451,756,671],{"class":464},[451,758,477],{"class":457},[451,760,761],{"class":480},"\"HTTP (non-secure) resource loading detected\"",[451,763,484],{"class":457},[451,765,767,769,771,773],{"class":453,"line":766},30,[451,768,684],{"class":464},[451,770,477],{"class":457},[451,772,689],{"class":480},[451,774,484],{"class":457},[451,776,778,780,782,784],{"class":453,"line":777},31,[451,779,697],{"class":464},[451,781,477],{"class":457},[451,783,702],{"class":480},[451,785,484],{"class":457},[451,787,789,791,793,795],{"class":453,"line":788},32,[451,790,710],{"class":464},[451,792,477],{"class":457},[451,794,715],{"class":480},[451,796,484],{"class":457},[451,798,800,802,804],{"class":453,"line":799},33,[451,801,723],{"class":464},[451,803,477],{"class":457},[451,805,728],{"class":464},[451,807,809],{"class":453,"line":808},34,[451,810,734],{"class":457},[451,812,814],{"class":453,"line":813},35,[451,815,652],{"class":457},[451,817,819,821,823,826],{"class":453,"line":818},36,[451,820,658],{"class":464},[451,822,477],{"class":457},[451,824,825],{"class":480},"\"missing-conversion-linker\"",[451,827,484],{"class":457},[451,829,831,833,835,838],{"class":453,"line":830},37,[451,832,671],{"class":464},[451,834,477],{"class":457},[451,836,837],{"class":480},"\"Google Ads tags present but no Conversion Linker tag\"",[451,839,484],{"class":457},[451,841,843,845,847,850],{"class":453,"line":842},38,[451,844,684],{"class":464},[451,846,477],{"class":457},[451,848,849],{"class":480},"\"critical\"",[451,851,484],{"class":457},[451,853,855,857,859,862],{"class":453,"line":854},39,[451,856,697],{"class":464},[451,858,477],{"class":457},[451,860,861],{"class":480},"\"warning\"",[451,863,484],{"class":457},[451,865,867,869,871,874],{"class":453,"line":866},40,[451,868,710],{"class":464},[451,870,477],{"class":457},[451,872,873],{"class":480},"\"ads\"",[451,875,484],{"class":457},[451,877,879,881,883],{"class":453,"line":878},41,[451,880,723],{"class":464},[451,882,477],{"class":457},[451,884,728],{"class":464},[451,886,888],{"class":453,"line":887},42,[451,889,890],{"class":457},"    }\n",[451,892,894],{"class":453,"line":893},43,[451,895,896],{"class":457},"  ],\n",[451,898,900,903],{"class":453,"line":899},44,[451,901,902],{"class":464},"  \"b_only\"",[451,904,646],{"class":457},[451,906,908],{"class":453,"line":907},45,[451,909,652],{"class":457},[451,911,913,915,917,920],{"class":453,"line":912},46,[451,914,658],{"class":464},[451,916,477],{"class":457},[451,918,919],{"class":480},"\"naming-default-names\"",[451,921,484],{"class":457},[451,923,925,927,929,932],{"class":453,"line":924},47,[451,926,671],{"class":464},[451,928,477],{"class":457},[451,930,931],{"class":480},"\"Tags or triggers with default\u002Fplaceholder names\"",[451,933,484],{"class":457},[451,935,937,939,941,944],{"class":453,"line":936},48,[451,938,684],{"class":464},[451,940,477],{"class":457},[451,942,943],{"class":480},"\"medium\"",[451,945,484],{"class":457},[451,947,949,951,953,956],{"class":453,"line":948},49,[451,950,697],{"class":464},[451,952,477],{"class":457},[451,954,955],{"class":480},"\"info\"",[451,957,484],{"class":457},[451,959,961,963,965,968],{"class":453,"line":960},50,[451,962,710],{"class":464},[451,964,477],{"class":457},[451,966,967],{"class":480},"\"organization\"",[451,969,484],{"class":457},[451,971,973,975,977],{"class":453,"line":972},51,[451,974,723],{"class":464},[451,976,477],{"class":457},[451,978,728],{"class":464},[451,980,982],{"class":453,"line":981},52,[451,983,890],{"class":457},[451,985,987],{"class":453,"line":986},53,[451,988,896],{"class":457},[451,990,992,995],{"class":453,"line":991},54,[451,993,994],{"class":464},"  \"shared\"",[451,996,646],{"class":457},[451,998,1000],{"class":453,"line":999},55,[451,1001,652],{"class":457},[451,1003,1005,1007,1009,1012],{"class":453,"line":1004},56,[451,1006,658],{"class":464},[451,1008,477],{"class":457},[451,1010,1011],{"class":480},"\"ga4-param-pii-risk\"",[451,1013,484],{"class":457},[451,1015,1017,1019,1021,1024],{"class":453,"line":1016},57,[451,1018,671],{"class":464},[451,1020,477],{"class":457},[451,1022,1023],{"class":480},"\"GA4 event parameters with PII-risk names\"",[451,1025,484],{"class":457},[451,1027,1029,1031,1033,1035],{"class":453,"line":1028},58,[451,1030,684],{"class":464},[451,1032,477],{"class":457},[451,1034,849],{"class":480},[451,1036,484],{"class":457},[451,1038,1040,1042,1044,1046],{"class":453,"line":1039},59,[451,1041,697],{"class":464},[451,1043,477],{"class":457},[451,1045,702],{"class":480},[451,1047,484],{"class":457},[451,1049,1051,1053,1055,1058],{"class":453,"line":1050},60,[451,1052,710],{"class":464},[451,1054,477],{"class":457},[451,1056,1057],{"class":480},"\"ga4\"",[451,1059,484],{"class":457},[451,1061,1063,1065,1067],{"class":453,"line":1062},61,[451,1064,723],{"class":464},[451,1066,477],{"class":457},[451,1068,728],{"class":464},[451,1070,1072],{"class":453,"line":1071},62,[451,1073,734],{"class":457},[451,1075,1077],{"class":453,"line":1076},63,[451,1078,652],{"class":457},[451,1080,1082,1084,1086,1089],{"class":453,"line":1081},64,[451,1083,658],{"class":464},[451,1085,477],{"class":457},[451,1087,1088],{"class":480},"\"ga4-pii-parameter-names\"",[451,1090,484],{"class":457},[451,1092,1094,1096,1098,1101],{"class":453,"line":1093},65,[451,1095,671],{"class":464},[451,1097,477],{"class":457},[451,1099,1100],{"class":480},"\"GA4 parameters with PII-suggesting names\"",[451,1102,484],{"class":457},[451,1104,1106,1108,1110,1112],{"class":453,"line":1105},66,[451,1107,684],{"class":464},[451,1109,477],{"class":457},[451,1111,849],{"class":480},[451,1113,484],{"class":457},[451,1115,1117,1119,1121,1123],{"class":453,"line":1116},67,[451,1118,697],{"class":464},[451,1120,477],{"class":457},[451,1122,702],{"class":480},[451,1124,484],{"class":457},[451,1126,1128,1130,1132,1134],{"class":453,"line":1127},68,[451,1129,710],{"class":464},[451,1131,477],{"class":457},[451,1133,1057],{"class":480},[451,1135,484],{"class":457},[451,1137,1139,1141,1143],{"class":453,"line":1138},69,[451,1140,723],{"class":464},[451,1142,477],{"class":457},[451,1144,728],{"class":464},[451,1146,1148],{"class":453,"line":1147},70,[451,1149,734],{"class":457},[451,1151,1153],{"class":453,"line":1152},71,[451,1154,652],{"class":457},[451,1156,1158,1160,1162,1165],{"class":453,"line":1157},72,[451,1159,658],{"class":464},[451,1161,477],{"class":457},[451,1163,1164],{"class":480},"\"consent-no-cmp\"",[451,1166,484],{"class":457},[451,1168,1170,1172,1174,1177],{"class":453,"line":1169},73,[451,1171,671],{"class":464},[451,1173,477],{"class":457},[451,1175,1176],{"class":480},"\"Ad\u002Ftracking tags present with no consent configuration and no CMP\"",[451,1178,484],{"class":457},[451,1180,1182,1184,1186,1188],{"class":453,"line":1181},74,[451,1183,684],{"class":464},[451,1185,477],{"class":457},[451,1187,689],{"class":480},[451,1189,484],{"class":457},[451,1191,1193,1195,1197,1199],{"class":453,"line":1192},75,[451,1194,697],{"class":464},[451,1196,477],{"class":457},[451,1198,861],{"class":480},[451,1200,484],{"class":457},[451,1202,1204,1206,1208,1211],{"class":453,"line":1203},76,[451,1205,710],{"class":464},[451,1207,477],{"class":457},[451,1209,1210],{"class":480},"\"consent\"",[451,1212,484],{"class":457},[451,1214,1216,1218,1220],{"class":453,"line":1215},77,[451,1217,723],{"class":464},[451,1219,477],{"class":457},[451,1221,728],{"class":464},[451,1223,1225],{"class":453,"line":1224},78,[451,1226,890],{"class":457},[451,1228,1230],{"class":453,"line":1229},79,[451,1231,1232],{"class":457},"  ]\n",[451,1234,1236],{"class":453,"line":1235},80,[451,1237,1238],{"class":457},"}\n",[10,1240,1241,1242,1244,1245,1247,1248,1250],{},"Here ",[27,1243,363],{}," is 7 and the ",[27,1246,264],{}," list holds 3, because ",[27,1249,246],{}," was 3.",[61,1252,1254],{"id":1253},"errors","Errors",[17,1256,1257,1286,1303],{},[20,1258,1259,1262,1263,1266,1267,1269,1270,1272,1273,1269,1275,1277,1278,1280,1281,92,1283,1285],{},[13,1260,1261],{},"Bad arguments"," come back as a JSON-RPC error with code ",[27,1264,1265],{},"-32602",". This covers a missing ",[27,1268,91],{}," or ",[27,1271,95],{},", a top-level argument the tool does not accept, an ",[27,1274,91],{},[27,1276,95],{}," that is not an object, and a ",[27,1279,246],{}," that is negative or not a number. ",[27,1282,417],{},[27,1284,414],{}," are not arguments of this tool. These are checked before the rate limit, so they do not count against it.",[20,1287,1288,1291,1292,1295,1296,141,1298,1269,1300,1302],{},[13,1289,1290],{},"A comparison that fails"," comes back as a normal tool result with ",[27,1293,1294],{},"isError: true"," and a plain message in the text block. Examples: a side with none of ",[27,1297,140],{},[27,1299,144],{},[27,1301,148],{},", a page with no GTM snippet, or a GTM ID that Google has no public container for. If either side fails, the whole call fails. These calls do count against the rate limit.",[20,1304,1305,1308,1309,1312,1313,1316,1317,1320],{},[13,1306,1307],{},"Rate limit"," comes back as a JSON-RPC error with code ",[27,1310,1311],{},"-32603"," and the message ",[27,1314,1315],{},"Rate limit exceeded for compare_containers: 31\u002F30. Resets at \u003Ctime>."," The HTTP status is 200. MCP responses carry no ",[27,1318,1319],{},"X-RateLimit-*"," headers. The limit resets at midnight UTC.",[61,1322,1324],{"id":1323},"try-saying","Try saying",[10,1326,1327],{},"Natural-language prompts that route to this tool through an agent:",[17,1329,1330,1333,1336],{},[20,1331,1332],{},"\"Compare GTM-AAAAAAA with GTM-BBBBBBB. Which is healthier?\"",[20,1334,1335],{},"\"What differs between the containers on staging.example.com and example.com?\"",[20,1337,1338],{},"\"Here are two exports, from before and after my change. What did the change fix?\"",[10,1340,1341],{},"For agents wired to your own application:",[442,1343,1348],{"className":1344,"code":1346,"language":1347},[1345],"language-text","You have access to TagManifest's MCP server. Use the compare_containers\ntool to diff two GTM containers. The tool requires both an `a` and a `b`\nargument, each holding a `url`, `gtm_id`, or `data` field. It returns\neach side's health score and grade, a `health_delta` (score B minus\nscore A), and `a_only`, `b_only`, and `shared` finding lists (the first\n10 of each, with `*_total` counts). Use it when the user asks how two\ncontainers differ.\n","text",[27,1349,1346],{"__ignoreMap":447},[61,1351,1353],{"id":1352},"see-also","See also",[17,1355,1356,1362,1368],{},[20,1357,1358,1361],{},[91,1359,76],{"href":1360},"\u002Fmcp\u002Ftools\u002Fscan-url\u002F"," — single-container audit; use this when you need one side, not a diff",[20,1363,1364,1367],{},[91,1365,80],{"href":1366},"\u002Fmcp\u002Ftools\u002Fevaluate-rule\u002F"," — run one rule against a container",[20,1369,1370,1374,1375,141,1377,418,1379],{},[91,1371,1373],{"href":1372},"\u002Fhealth-score\u002F","Health score"," — how to read ",[27,1376,336],{},[27,1378,340],{},[27,1380,347],{},[1382,1383,1384],"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":447,"searchDepth":461,"depth":461,"links":1386},[1387,1388,1389,1390,1391,1392],{"id":63,"depth":461,"text":64},{"id":84,"depth":461,"text":85},{"id":299,"depth":461,"text":300},{"id":1253,"depth":461,"text":1254},{"id":1323,"depth":461,"text":1324},{"id":1352,"depth":461,"text":1353},[1394,1397,1399],{"label":1395,"href":1396},"API Reference","\u002F",{"label":1398},"MCP tools",{"label":5},{"cards":1401,"onpage":1413},[1402,1407],{"title":1403,"tabs":1404},"MCP tool call",[1405],{"label":84,"language":446,"code":1406},"{\n  \"tool\": \"compare_containers\",\n  \"arguments\": {\n    \"a\": { \"url\": \"https:\u002F\u002Fstaging.example.com\" },\n    \"b\": { \"url\": \"https:\u002F\u002Fexample.com\" },\n    \"top_n\": 3\n  }\n}\n",{"title":1408,"variant":1409,"tabs":1410},"Tool result","response",[1411],{"label":1412,"language":446,"code":445},"tool result",[1414,1415,1416,1417,1418],{"id":63,"label":64},{"id":84,"label":85},{"id":299,"label":300},{"id":1253,"label":1254},{"id":1323,"label":1324},null,"MCP tool that diffs two containers and returns each health score, the score difference, and the findings unique to A, unique to B, and shared.","md",{},true,{"href":1425,"title":1426},"\u002Fmcp\u002Ftools\u002Faccount-status\u002F","account_status","\u002Fmcp\u002Ftools\u002Fcompare-containers",{"href":1429,"title":1430},"\u002Fmcp\u002Ftools\u002Fget-health-score\u002F","get_health_score","APIReference",{"title":5,"description":1420},"mcp\u002Ftools\u002Fcompare-containers",false,"Slmy_pnpwge4vkgigYb9DOg_Nff6UkeaG1ZpmbxE2ns",1796069482831]