[{"data":1,"prerenderedAt":715},["ShallowReactive",2],{"docs-\u002Fmcp\u002Ftools\u002Fget-rule\u002F":3},{"id":4,"title":5,"body":6,"breadcrumb":673,"coderail":680,"dateModified":700,"datePublished":700,"description":701,"extension":702,"meta":703,"navigation":704,"next":705,"path":708,"prev":709,"schemaType":710,"seo":711,"stem":712,"wide":713,"__hash__":714},"docs\u002Fmcp\u002Ftools\u002Fget-rule.md","get_rule",{"type":7,"value":8,"toc":665},"minimark",[9,16,55,58,62,67,77,103,121,134,138,186,198,202,247,293,551,555,607,611,614,625,628,636,640,661],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,29,35,43,49],"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 catalog record for one rule: description, recommendation, regulatory cites, tier, severity, effort estimate",[20,36,37,25,40],{},[13,38,39],{},"rest equivalent",[27,41,42],{},"GET \u002Fv1\u002Frules-detail?rule_id=\u003Crule_id>",[20,44,45,48],{},[13,46,47],{},"rate limit"," — 1000\u002Fday per user",[20,50,51,54],{},[13,52,53],{},"synchronous"," — yes (a catalog read; no scan)",[10,56,57],{},"Returns the public fields stored for a single rule. No container is needed and no scan runs. Use it when an agent needs to explain a finding, name the regulations involved, or recommend a fix.",[59,60],"endpoint-bar",{"method":61,"path":5},"TOOL",[63,64,66],"h2",{"id":65},"when","When to use it",[10,68,69,70,72,73,76],{},"Use ",[27,71,5],{}," when you already have a ",[27,74,75],{},"rule_id"," and want that one rule.",[10,78,79,85,86,88,89,91,92,94,95,98,99,102],{},[13,80,81,82],{},"vs ",[27,83,84],{},"list_rules"," — both tools return the same 14 fields per rule. ",[27,87,84],{}," returns many rules at once and can filter by category, tier and status; use it to browse or to find IDs. ",[27,90,5],{}," returns one rule by ID. It also returns a deferred rule, which ",[27,93,84],{}," leaves out unless you ask for ",[27,96,97],{},"status: \"deferred\""," or ",[27,100,101],{},"\"all\"",".",[10,104,105,25,110,112,113,115,116,118,119,102],{},[13,106,81,107],{},[27,108,109],{},"evaluate_rule",[27,111,109],{}," runs a rule against a container and says whether it fired. ",[27,114,5],{}," reads the catalog and never touches a container. If a user asks \"what does this rule check?\" call ",[27,117,5],{},". If they ask \"does my container pass this rule?\" call ",[27,120,109],{},[10,122,123,126,127,130,131,133],{},[13,124,125],{},"vs a finding from a scan"," — a finding in a ",[27,128,129],{},"scan_url"," result carries the title, severity and tier that apply to that container. ",[27,132,5],{}," returns the rule's catalog entry, so the title wording can differ.",[63,135,137],{"id":136},"arguments","Arguments",[139,140,141,160],"table",{},[142,143,144],"thead",{},[145,146,147,151,154,157],"tr",{},[148,149,150],"th",{},"Argument",[148,152,153],{},"Type",[148,155,156],{},"Required",[148,158,159],{},"Description",[161,162,163],"tbody",{},[145,164,165,170,173,176],{},[166,167,168],"td",{},[27,169,75],{},[166,171,172],{},"string",[166,174,175],{},"required",[166,177,178,179,182,183,185],{},"The rule's ID (for example ",[27,180,181],{},"ga4-pii-parameter-names","). Use ",[27,184,84],{}," to find valid IDs.",[187,188,189],"callout",{},[10,190,191,194,195,197],{},[13,192,193],{},"No scan runs."," ",[27,196,5],{}," reads one row from the rules database. No container is fetched and no rule runs.",[63,199,201],{"id":200},"returns","Returns",[10,203,204,205,207,208,207,211,207,214,207,217,207,220,207,223,207,226,207,229,207,232,207,235,207,238,207,241,207,244,102],{},"The tool result is one text block. Its text is a JSON object with the rule's 14 public fields: ",[27,206,75],{},", ",[27,209,210],{},"title",[27,212,213],{},"description",[27,215,216],{},"recommendation",[27,218,219],{},"category",[27,221,222],{},"tier",[27,224,225],{},"severity",[27,227,228],{},"layer_requirements",[27,230,231],{},"status",[27,233,234],{},"version",[27,236,237],{},"effort_estimate",[27,239,240],{},"reversibility",[27,242,243],{},"regulatory_cites",[27,245,246],{},"learn_more_url",[10,248,249,207,251,253,254,256,257,253,259,261,262,264,265,267,268,207,271,207,274,207,277,280,281,283,284,287,288,292],{},[27,250,210],{},[27,252,213],{}," and ",[27,255,216],{}," explain the issue and the fix. ",[27,258,222],{},[27,260,225],{}," say how urgent it is. ",[27,263,243],{}," lists the regulations the rule relates to, and is empty for most rules. ",[27,266,237],{}," is one of ",[27,269,270],{},"15min",[27,272,273],{},"2hr",[27,275,276],{},"2wk",[27,278,279],{},"strategic",". ",[27,282,246],{}," is currently ",[27,285,286],{},"null"," for every rule. Internal notes are not returned. See ",[289,290,84],"a",{"href":291},"\u002Fmcp\u002Ftools\u002Flist-rules\u002F#returns"," for every field's type.",[294,295,297],"details",{"summary":296},"Full response shape",[298,299,304],"pre",{"className":300,"code":301,"language":302,"meta":303,"style":303},"language-json shiki shiki-themes github-light github-dark","{\n  \"rule_id\": \"ga4-pii-parameter-names\",\n  \"title\": \"Parameters with PII-suggesting names\",\n  \"description\": \"Parameters with names like \\\"email\\\", \\\"phone\\\", or \\\"user_name\\\" — GA4 prohibits sending PII.\",\n  \"recommendation\": \"Remove PII parameters or hash values with SHA-256 before sending.\",\n  \"category\": \"ga4\",\n  \"tier\": \"error\",\n  \"severity\": \"critical\",\n  \"layer_requirements\": \"container\",\n  \"status\": \"shipped\",\n  \"version\": 1,\n  \"effort_estimate\": \"15min\",\n  \"reversibility\": \"non-destructive\",\n  \"regulatory_cites\": [\n    \"GDPR Art. 5\",\n    \"GDPR Art. 6\"\n  ],\n  \"learn_more_url\": null\n}\n","json","",[27,305,306,315,332,345,388,401,414,427,440,453,466,479,492,505,514,522,528,534,545],{"__ignoreMap":303},[307,308,311],"span",{"class":309,"line":310},"line",1,[307,312,314],{"class":313},"sVt8B","{\n",[307,316,318,322,325,329],{"class":309,"line":317},2,[307,319,321],{"class":320},"sj4cs","  \"rule_id\"",[307,323,324],{"class":313},": ",[307,326,328],{"class":327},"sZZnC","\"ga4-pii-parameter-names\"",[307,330,331],{"class":313},",\n",[307,333,335,338,340,343],{"class":309,"line":334},3,[307,336,337],{"class":320},"  \"title\"",[307,339,324],{"class":313},[307,341,342],{"class":327},"\"Parameters with PII-suggesting names\"",[307,344,331],{"class":313},[307,346,348,351,353,356,359,362,364,366,368,371,373,376,378,381,383,386],{"class":309,"line":347},4,[307,349,350],{"class":320},"  \"description\"",[307,352,324],{"class":313},[307,354,355],{"class":327},"\"Parameters with names like ",[307,357,358],{"class":320},"\\\"",[307,360,361],{"class":327},"email",[307,363,358],{"class":320},[307,365,207],{"class":327},[307,367,358],{"class":320},[307,369,370],{"class":327},"phone",[307,372,358],{"class":320},[307,374,375],{"class":327},", or ",[307,377,358],{"class":320},[307,379,380],{"class":327},"user_name",[307,382,358],{"class":320},[307,384,385],{"class":327}," — GA4 prohibits sending PII.\"",[307,387,331],{"class":313},[307,389,391,394,396,399],{"class":309,"line":390},5,[307,392,393],{"class":320},"  \"recommendation\"",[307,395,324],{"class":313},[307,397,398],{"class":327},"\"Remove PII parameters or hash values with SHA-256 before sending.\"",[307,400,331],{"class":313},[307,402,404,407,409,412],{"class":309,"line":403},6,[307,405,406],{"class":320},"  \"category\"",[307,408,324],{"class":313},[307,410,411],{"class":327},"\"ga4\"",[307,413,331],{"class":313},[307,415,417,420,422,425],{"class":309,"line":416},7,[307,418,419],{"class":320},"  \"tier\"",[307,421,324],{"class":313},[307,423,424],{"class":327},"\"error\"",[307,426,331],{"class":313},[307,428,430,433,435,438],{"class":309,"line":429},8,[307,431,432],{"class":320},"  \"severity\"",[307,434,324],{"class":313},[307,436,437],{"class":327},"\"critical\"",[307,439,331],{"class":313},[307,441,443,446,448,451],{"class":309,"line":442},9,[307,444,445],{"class":320},"  \"layer_requirements\"",[307,447,324],{"class":313},[307,449,450],{"class":327},"\"container\"",[307,452,331],{"class":313},[307,454,456,459,461,464],{"class":309,"line":455},10,[307,457,458],{"class":320},"  \"status\"",[307,460,324],{"class":313},[307,462,463],{"class":327},"\"shipped\"",[307,465,331],{"class":313},[307,467,469,472,474,477],{"class":309,"line":468},11,[307,470,471],{"class":320},"  \"version\"",[307,473,324],{"class":313},[307,475,476],{"class":320},"1",[307,478,331],{"class":313},[307,480,482,485,487,490],{"class":309,"line":481},12,[307,483,484],{"class":320},"  \"effort_estimate\"",[307,486,324],{"class":313},[307,488,489],{"class":327},"\"15min\"",[307,491,331],{"class":313},[307,493,495,498,500,503],{"class":309,"line":494},13,[307,496,497],{"class":320},"  \"reversibility\"",[307,499,324],{"class":313},[307,501,502],{"class":327},"\"non-destructive\"",[307,504,331],{"class":313},[307,506,508,511],{"class":309,"line":507},14,[307,509,510],{"class":320},"  \"regulatory_cites\"",[307,512,513],{"class":313},": [\n",[307,515,517,520],{"class":309,"line":516},15,[307,518,519],{"class":327},"    \"GDPR Art. 5\"",[307,521,331],{"class":313},[307,523,525],{"class":309,"line":524},16,[307,526,527],{"class":327},"    \"GDPR Art. 6\"\n",[307,529,531],{"class":309,"line":530},17,[307,532,533],{"class":313},"  ],\n",[307,535,537,540,542],{"class":309,"line":536},18,[307,538,539],{"class":320},"  \"learn_more_url\"",[307,541,324],{"class":313},[307,543,544],{"class":320},"null\n",[307,546,548],{"class":309,"line":547},19,[307,549,550],{"class":313},"}\n",[63,552,554],{"id":553},"errors","Errors",[17,556,557,576,590],{},[20,558,559,562,563,566,567,569,570,572,573,575],{},[13,560,561],{},"Bad arguments"," come back as a JSON-RPC error with code ",[27,564,565],{},"-32602",". This covers a missing ",[27,568,75],{},", any argument other than ",[27,571,75],{},", and a ",[27,574,75],{}," that is not a string. These are checked before the rate limit, so they do not count against it.",[20,577,578,581,582,585,586,589],{},[13,579,580],{},"A rule that does not exist"," comes back as a normal tool result with ",[27,583,584],{},"isError: true"," and the message ",[27,587,588],{},"Rule not found: \u003Crule_id>",". This call does count against the rate limit.",[20,591,592,595,596,585,599,602,603,606],{},[13,593,594],{},"Rate limit"," comes back as a JSON-RPC error with code ",[27,597,598],{},"-32603",[27,600,601],{},"Rate limit exceeded for get_rule: 1001\u002F1000. Resets at \u003Ctime>."," The HTTP status is 200. MCP responses carry no ",[27,604,605],{},"X-RateLimit-*"," headers. The limit resets at midnight UTC.",[63,608,610],{"id":609},"try-saying","Try saying",[10,612,613],{},"Natural-language prompts that route to this tool through an agent:",[17,615,616,619,622],{},[20,617,618],{},"\"What does the ga4-pii-parameter-names rule actually check?\"",[20,620,621],{},"\"Explain the consent-no-cmp finding and what I should do about it.\"",[20,623,624],{},"\"What regulations apply to the btoa-pii rule?\"",[10,626,627],{},"For agents wired to your own application:",[298,629,634],{"className":630,"code":632,"language":633},[631],"language-text","You have access to TagManifest's MCP server. Use the get_rule tool\nto retrieve the catalog record for a rule by its rule_id. The tool\nrequires a rule_id string and returns the rule's public fields,\nincluding description, recommendation, regulatory_cites, tier,\nseverity, and effort_estimate. Use this before explaining a finding\nto a user or recommending a fix.\n","text",[27,635,632],{"__ignoreMap":303},[63,637,639],{"id":638},"see-also","See also",[17,641,642,648,654],{},[20,643,644,647],{},[289,645,84],{"href":646},"\u002Fmcp\u002Ftools\u002Flist-rules\u002F"," — browse the catalog and find rule IDs",[20,649,650,653],{},[289,651,109],{"href":652},"\u002Fmcp\u002Ftools\u002Fevaluate-rule\u002F"," — run a single rule against a container",[20,655,656,660],{},[289,657,659],{"href":658},"\u002Fhealth-score\u002F","Health score"," — how rule findings translate to the health score",[662,663,664],"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":303,"searchDepth":317,"depth":317,"links":666},[667,668,669,670,671,672],{"id":65,"depth":317,"text":66},{"id":136,"depth":317,"text":137},{"id":200,"depth":317,"text":201},{"id":553,"depth":317,"text":554},{"id":609,"depth":317,"text":610},{"id":638,"depth":317,"text":639},[674,677,679],{"label":675,"href":676},"API Reference","\u002F",{"label":678},"MCP tools",{"label":5},{"cards":681,"onpage":694},[682,687],{"title":683,"tabs":684},"MCP tool call",[685],{"label":136,"language":302,"code":686},"{\n  \"tool\": \"get_rule\",\n  \"arguments\": {\n    \"rule_id\": \"ga4-pii-parameter-names\"\n  }\n}\n",{"title":688,"variant":689,"tabs":690},"Tool result","response",[691],{"label":692,"language":302,"code":693},"tool result","{\n  \"rule_id\": \"ga4-pii-parameter-names\",\n  \"title\": \"Parameters with PII-suggesting names\",\n  \"description\": \"Parameters with names like \\\"email\\\", \\\"phone\\\", or \\\"user_name\\\" — GA4 prohibits sending PII.\",\n  \"recommendation\": \"Remove PII parameters or hash values with SHA-256 before sending.\",\n  \"category\": \"ga4\",\n  \"tier\": \"error\",\n  \"severity\": \"critical\",\n  \"layer_requirements\": \"container\",\n  \"status\": \"shipped\",\n  \"version\": 1,\n  \"effort_estimate\": \"15min\",\n  \"reversibility\": \"non-destructive\",\n  \"regulatory_cites\": [\"GDPR Art. 5\", \"GDPR Art. 6\"],\n  \"learn_more_url\": null\n}\n",[695,696,697,698,699],{"id":65,"label":66},{"id":136,"label":137},{"id":200,"label":201},{"id":553,"label":554},{"id":609,"label":610},null,"MCP tool that returns the catalog record for a single rule by ID.","md",{},true,{"href":706,"title":707},"\u002Fmcp\u002Ftools\u002Fget-health-score\u002F","get_health_score","\u002Fmcp\u002Ftools\u002Fget-rule",{"href":646,"title":84},"APIReference",{"title":5,"description":701},"mcp\u002Ftools\u002Fget-rule",false,"nZDeWguW2WRyxc-S2uhS8CeL3V-nBrxJ6YSr0UnF7o4",1796069482785]