[{"data":1,"prerenderedAt":885},["ShallowReactive",2],{"docs-\u002Fmcp\u002Ftools\u002Fget-health-score\u002F":3},{"id":4,"title":5,"body":6,"breadcrumb":844,"coderail":851,"dateModified":870,"datePublished":870,"description":871,"extension":872,"meta":873,"navigation":874,"next":875,"path":876,"prev":877,"schemaType":880,"seo":881,"stem":882,"wide":883,"__hash__":884},"docs\u002Fmcp\u002Ftools\u002Fget-health-score.md","get_health_score",{"type":7,"value":8,"toc":836},"minimark",[9,16,64,67,71,76,90,94,184,199,211,215,218,361,370,393,714,717,721,779,783,786,797,800,808,812,832],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,29,35,52,58],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"tool"," — ",[27,28,5],"code",{},[20,30,31,34],{},[13,32,33],{},"purpose"," — returns the score, grade, tier deductions, and per-category counts; no findings list",[20,36,37,40,41,44,45,48,49],{},[13,38,39],{},"rest equivalent"," — none of its own; the same object is the ",[27,42,43],{},"health_score"," field of ",[27,46,47],{},"POST \u002Fv1\u002Fscan-url"," and ",[27,50,51],{},"POST \u002Fv1\u002Fscan",[20,53,54,57],{},[13,55,56],{},"rate limit"," — 100\u002Fday per user",[20,59,60,63],{},[13,61,62],{},"synchronous"," — yes",[10,65,66],{},"Returns the health score for a container without the findings list. Use it when an agent only needs the number, for example for a status check.",[68,69],"endpoint-bar",{"method":70,"path":5},"TOOL",[72,73,75],"h2",{"id":74},"when","When to use it",[10,77,78,79,81,82,85,86,89],{},"Use ",[27,80,5],{}," to answer \"is this container healthy?\" without listing findings. For the findings, use ",[27,83,84],{},"scan_url","; its result includes the same score. To run one named rule, use ",[27,87,88],{},"evaluate_rule",".",[72,91,93],{"id":92},"arguments","Arguments",[95,96,97,116],"table",{},[98,99,100],"thead",{},[101,102,103,107,110,113],"tr",{},[104,105,106],"th",{},"Argument",[104,108,109],{},"Type",[104,111,112],{},"Required",[104,114,115],{},"Description",[117,118,119,152,169],"tbody",{},[101,120,121,127,130,133],{},[122,123,124],"td",{},[27,125,126],{},"url",[122,128,129],{},"string",[122,131,132],{},"one of",[122,134,135,136,139,140,143,144,147,148,151],{},"Address of the page. A full URL (",[27,137,138],{},"https:\u002F\u002Fexample.com","), a bare domain (",[27,141,142],{},"example.com",", scanned over ",[27,145,146],{},"https","), or a GTM ID (",[27,149,150],{},"GTM-XXXXX",") are all accepted. The tool fetches the page, finds the GTM container ID in its HTML, and scores that container.",[101,153,154,159,161,163],{},[122,155,156],{},[27,157,158],{},"gtm_id",[122,160,129],{},[122,162,132],{},[122,164,165,166,168],{},"GTM container ID (",[27,167,150],{},", upper case). The page is not fetched.",[101,170,171,176,179,181],{},[122,172,173],{},[27,174,175],{},"data",[122,177,178],{},"object",[122,180,132],{},[122,182,183],{},"A GTM JSON export as downloaded from GTM, or container data already parsed by TagManifest. Nothing is fetched.",[10,185,186,187,189,190,192,193,195,196,198],{},"One of ",[27,188,126],{},", ",[27,191,158],{},", or ",[27,194,175],{}," is needed. If ",[27,197,175],{}," is present it is used and the other two are ignored.",[200,201,202],"callout",{},[10,203,204,207,208,210],{},[13,205,206],{},"Synchronous."," The tool returns when the scan completes. No polling, no webhooks. A fetched container is reused for up to five minutes. The result is shorter than ",[27,209,84],{}," because findings are left out, but every rule still runs.",[72,212,214],{"id":213},"returns","Returns",[10,216,217],{},"The tool result is one text block. Its text is a JSON object:",[95,219,220,230],{},[98,221,222],{},[101,223,224,227],{},[104,225,226],{},"Field",[104,228,229],{},"Meaning",[117,231,232,263,273,305,331,341,351],{},[101,233,234,239],{},[122,235,236],{},[27,237,238],{},"container",[122,240,241,189,243,246,247,250,251,253,254,256,257,259,260,89],{},[27,242,158],{},[27,244,245],{},"name",", and ",[27,248,249],{},"from_cache",". ",[27,252,158],{}," is read from the container. When a parsed container in ",[27,255,175],{}," carries no ID, a ",[27,258,158],{}," passed in the same call is used; with neither, it is ",[27,261,262],{},"null",[101,264,265,270],{},[122,266,267],{},[27,268,269],{},"score",[122,271,272],{},"0 to 100. 100 minus the three tier deductions.",[101,274,275,283],{},[122,276,277,189,280],{},[27,278,279],{},"grade",[27,281,282],{},"label",[122,284,285,288,289,292,293,296,297,300,301,304],{},[27,286,287],{},"A"," Well-Configured (90+), ",[27,290,291],{},"B"," Healthy (75+), ",[27,294,295],{},"C"," Needs Attention (60+), ",[27,298,299],{},"D"," Patterns Found (45+), ",[27,302,303],{},"F"," Areas to Review.",[101,306,307,312],{},[122,308,309],{},[27,310,311],{},"deductions",[122,313,314,315,189,318,189,321,189,324,327,328,89],{},"Points taken off by tier (",[27,316,317],{},"error",[27,319,320],{},"warning",[27,322,323],{},"optimization",[27,325,326],{},"info","), plus ",[27,329,330],{},"byCategory",[101,332,333,338],{},[122,334,335],{},[27,336,337],{},"deductions.byCategory",[122,339,340],{},"The number of findings that fed the score, per category. A count, not points.",[101,342,343,348],{},[122,344,345],{},[27,346,347],{},"caps",[122,349,350],{},"The most each tier can take off: 35 for errors, 20 for warnings, 25 for optimizations, 0 for info.",[101,352,353,358],{},[122,354,355],{},[27,356,357],{},"functionalIssueCount",[122,359,360],{},"The number of findings that fed the score.",[10,362,363,364,369],{},"Not every finding feeds the score. Each rule is marked as either functional or hygiene, and only findings from functional rules count. Info-tier findings take no points off. See ",[365,366,368],"a",{"href":367},"\u002Fhealth-score\u002F","Health score"," for the full method.",[10,371,372,375,376,379,380,383,384,387,388,390,391,89],{},[13,373,374],{},"Caching."," On MCP the cache field is ",[27,377,378],{},"container.from_cache",". It is ",[27,381,382],{},"true"," when a stored copy of the container was used, ",[27,385,386],{},"false"," when the container was fetched from Google, and ",[27,389,262],{}," when the container came from ",[27,392,175],{},[394,395,397],"details",{"summary":396},"Full response shape",[398,399,404],"pre",{"className":400,"code":401,"language":402,"meta":403,"style":403},"language-json shiki shiki-themes github-light github-dark","{\n  \"container\": {\n    \"gtm_id\": \"GTM-EXAMPLE\",\n    \"name\": \"Example container\",\n    \"from_cache\": false\n  },\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      \"consent\": 2,\n      \"security\": 2,\n      \"ga4\": 3,\n      \"ads\": 2\n    }\n  },\n  \"caps\": {\n    \"error\": 35,\n    \"warning\": 20,\n    \"optimization\": 25,\n    \"info\": 0\n  },\n  \"functionalIssueCount\": 9\n}\n","json","",[27,405,406,415,425,441,454,465,471,484,497,510,518,531,544,557,570,578,591,603,616,627,633,638,646,658,670,682,692,697,708],{"__ignoreMap":403},[407,408,411],"span",{"class":409,"line":410},"line",1,[407,412,414],{"class":413},"sVt8B","{\n",[407,416,418,422],{"class":409,"line":417},2,[407,419,421],{"class":420},"sj4cs","  \"container\"",[407,423,424],{"class":413},": {\n",[407,426,428,431,434,438],{"class":409,"line":427},3,[407,429,430],{"class":420},"    \"gtm_id\"",[407,432,433],{"class":413},": ",[407,435,437],{"class":436},"sZZnC","\"GTM-EXAMPLE\"",[407,439,440],{"class":413},",\n",[407,442,444,447,449,452],{"class":409,"line":443},4,[407,445,446],{"class":420},"    \"name\"",[407,448,433],{"class":413},[407,450,451],{"class":436},"\"Example container\"",[407,453,440],{"class":413},[407,455,457,460,462],{"class":409,"line":456},5,[407,458,459],{"class":420},"    \"from_cache\"",[407,461,433],{"class":413},[407,463,464],{"class":420},"false\n",[407,466,468],{"class":409,"line":467},6,[407,469,470],{"class":413},"  },\n",[407,472,474,477,479,482],{"class":409,"line":473},7,[407,475,476],{"class":420},"  \"score\"",[407,478,433],{"class":413},[407,480,481],{"class":420},"49",[407,483,440],{"class":413},[407,485,487,490,492,495],{"class":409,"line":486},8,[407,488,489],{"class":420},"  \"grade\"",[407,491,433],{"class":413},[407,493,494],{"class":436},"\"D\"",[407,496,440],{"class":413},[407,498,500,503,505,508],{"class":409,"line":499},9,[407,501,502],{"class":420},"  \"label\"",[407,504,433],{"class":413},[407,506,507],{"class":436},"\"Patterns Found\"",[407,509,440],{"class":413},[407,511,513,516],{"class":409,"line":512},10,[407,514,515],{"class":420},"  \"deductions\"",[407,517,424],{"class":413},[407,519,521,524,526,529],{"class":409,"line":520},11,[407,522,523],{"class":420},"    \"error\"",[407,525,433],{"class":413},[407,527,528],{"class":420},"32",[407,530,440],{"class":413},[407,532,534,537,539,542],{"class":409,"line":533},12,[407,535,536],{"class":420},"    \"warning\"",[407,538,433],{"class":413},[407,540,541],{"class":420},"8",[407,543,440],{"class":413},[407,545,547,550,552,555],{"class":409,"line":546},13,[407,548,549],{"class":420},"    \"optimization\"",[407,551,433],{"class":413},[407,553,554],{"class":420},"11",[407,556,440],{"class":413},[407,558,560,563,565,568],{"class":409,"line":559},14,[407,561,562],{"class":420},"    \"info\"",[407,564,433],{"class":413},[407,566,567],{"class":420},"0",[407,569,440],{"class":413},[407,571,573,576],{"class":409,"line":572},15,[407,574,575],{"class":420},"    \"byCategory\"",[407,577,424],{"class":413},[407,579,581,584,586,589],{"class":409,"line":580},16,[407,582,583],{"class":420},"      \"consent\"",[407,585,433],{"class":413},[407,587,588],{"class":420},"2",[407,590,440],{"class":413},[407,592,594,597,599,601],{"class":409,"line":593},17,[407,595,596],{"class":420},"      \"security\"",[407,598,433],{"class":413},[407,600,588],{"class":420},[407,602,440],{"class":413},[407,604,606,609,611,614],{"class":409,"line":605},18,[407,607,608],{"class":420},"      \"ga4\"",[407,610,433],{"class":413},[407,612,613],{"class":420},"3",[407,615,440],{"class":413},[407,617,619,622,624],{"class":409,"line":618},19,[407,620,621],{"class":420},"      \"ads\"",[407,623,433],{"class":413},[407,625,626],{"class":420},"2\n",[407,628,630],{"class":409,"line":629},20,[407,631,632],{"class":413},"    }\n",[407,634,636],{"class":409,"line":635},21,[407,637,470],{"class":413},[407,639,641,644],{"class":409,"line":640},22,[407,642,643],{"class":420},"  \"caps\"",[407,645,424],{"class":413},[407,647,649,651,653,656],{"class":409,"line":648},23,[407,650,523],{"class":420},[407,652,433],{"class":413},[407,654,655],{"class":420},"35",[407,657,440],{"class":413},[407,659,661,663,665,668],{"class":409,"line":660},24,[407,662,536],{"class":420},[407,664,433],{"class":413},[407,666,667],{"class":420},"20",[407,669,440],{"class":413},[407,671,673,675,677,680],{"class":409,"line":672},25,[407,674,549],{"class":420},[407,676,433],{"class":413},[407,678,679],{"class":420},"25",[407,681,440],{"class":413},[407,683,685,687,689],{"class":409,"line":684},26,[407,686,562],{"class":420},[407,688,433],{"class":413},[407,690,691],{"class":420},"0\n",[407,693,695],{"class":409,"line":694},27,[407,696,470],{"class":413},[407,698,700,703,705],{"class":409,"line":699},28,[407,701,702],{"class":420},"  \"functionalIssueCount\"",[407,704,433],{"class":413},[407,706,707],{"class":420},"9\n",[407,709,711],{"class":409,"line":710},29,[407,712,713],{"class":413},"}\n",[10,715,716],{},"In this example four error findings take off 32 points, two warnings take off 8, and three optimizations take off 11. 100 − 51 = 49.",[72,718,720],{"id":719},"errors","Errors",[17,722,723,743,761],{},[20,724,725,728,729,732,733,189,736,48,739,742],{},[13,726,727],{},"Bad arguments"," come back as a JSON-RPC error with code ",[27,730,731],{},"-32602",". This covers an argument the tool does not accept (the message suggests the nearest name) and an argument of the wrong type. ",[27,734,735],{},"category",[27,737,738],{},"tier",[27,740,741],{},"top_n"," are not arguments of this tool. These are checked before the rate limit, so they do not count against it.",[20,744,745,748,749,752,753,189,755,757,758,760],{},[13,746,747],{},"A scan that fails"," comes back as a normal tool result with ",[27,750,751],{},"isError: true"," and a plain message in the text block. Examples: none of ",[27,754,126],{},[27,756,158],{}," or ",[27,759,175],{}," given, a page with no GTM snippet, or a GTM ID that Google has no public container for. These calls do count against the rate limit.",[20,762,763,766,767,770,771,774,775,778],{},[13,764,765],{},"Rate limit"," comes back as a JSON-RPC error with code ",[27,768,769],{},"-32603"," and the message ",[27,772,773],{},"Rate limit exceeded for get_health_score: 101\u002F100. Resets at \u003Ctime>."," The HTTP status is 200. MCP responses carry no ",[27,776,777],{},"X-RateLimit-*"," headers. The limit resets at midnight UTC.",[72,780,782],{"id":781},"try-saying","Try saying",[10,784,785],{},"Natural-language prompts that route to this tool through an agent:",[17,787,788,791,794],{},[20,789,790],{},"\"What's the health score for example.com?\"",[20,792,793],{},"\"Is GTM-XXXXX in good shape? Just give me the grade.\"",[20,795,796],{},"\"Score this GTM export.\"",[10,798,799],{},"For agents wired to your own application:",[398,801,806],{"className":802,"code":804,"language":805},[803],"language-text","You have access to TagManifest's MCP server. Use the get_health_score\ntool to check the health of a GTM container. The tool accepts a url,\ngtm_id, or data argument and returns a score (0–100), letter grade,\ntier deductions, and per-category counts, with no findings list.\nUse scan_url when you need the findings.\n","text",[27,807,804],{"__ignoreMap":403},[72,809,811],{"id":810},"see-also","See also",[17,813,814,819,825],{},[20,815,816,818],{},[365,817,368],{"href":367}," — how findings translate to tier deductions and grades",[20,820,821,824],{},[365,822,84],{"href":823},"\u002Fmcp\u002Ftools\u002Fscan-url\u002F"," — full audit: findings list, counts, and the score in one call",[20,826,827,831],{},[365,828,830],{"href":829},"\u002Fmcp\u002Ftools\u002Fcompare-containers\u002F","compare_containers"," — diff two containers and get the score difference",[833,834,835],"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":403,"searchDepth":417,"depth":417,"links":837},[838,839,840,841,842,843],{"id":74,"depth":417,"text":75},{"id":92,"depth":417,"text":93},{"id":213,"depth":417,"text":214},{"id":719,"depth":417,"text":720},{"id":781,"depth":417,"text":782},{"id":810,"depth":417,"text":811},[845,848,850],{"label":846,"href":847},"API Reference","\u002F",{"label":849},"MCP tools",{"label":5},{"cards":852,"onpage":864},[853,858],{"title":854,"tabs":855},"MCP tool call",[856],{"label":92,"language":402,"code":857},"{\n  \"tool\": \"get_health_score\",\n  \"arguments\": {\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",{"title":859,"variant":860,"tabs":861},"Tool result","response",[862],{"label":863,"language":402,"code":401},"tool result",[865,866,867,868,869],{"id":74,"label":75},{"id":92,"label":93},{"id":213,"label":214},{"id":719,"label":720},{"id":781,"label":782},null,"MCP tool that returns only the health score breakdown for a container, with no findings list.","md",{},true,{"href":829,"title":830},"\u002Fmcp\u002Ftools\u002Fget-health-score",{"href":878,"title":879},"\u002Fmcp\u002Ftools\u002Fget-rule\u002F","get_rule","APIReference",{"title":5,"description":871},"mcp\u002Ftools\u002Fget-health-score",false,"W0CGG_1KRXr75lojcNplEGe__hP0HQOFLoY4m8RSNWU",1796069482824]