GET /rules-detail
Returns the catalog entry for a single rule by rule_id — description, recommendation, severity, regulatory cites, and the other public fields.
On this page 5
Summary
- endpoint —
GET /rules-detail - purpose — return the catalog entry for a single rule
- mcp equivalent —
get_rule - rate limit — 1000/day per user
- synchronous — yes (instant — single database read)
Returns the 14 public fields of one rule. Use it to show the full description, recommendation, regulatory cites, severity, and effort estimate for a rule your scan flagged.
The rule is always passed as a query parameter: GET /v1/rules-detail?rule_id=consent-no-cmp. There is no /v1/rules/{rule_id} path.
Request
Headers
| Header | Required | Value |
|---|---|---|
Authorization | yes | Bearer <token>. An API key, or an MCP access token with the mcp:read or mcp:tools scope. See Authentication. |
Query parameters
| Param | Type | Required | Description |
|---|---|---|---|
rule_id | string | yes | The rule identifier to look up. Matches the rule_id returned in scan findings. |
No scan. A single registry read. It fetches no container and runs no rules.
Response
Returns the public fields of the matching rule. Every field below is present in every response; null means the field is not set for that rule.
The values are the rule's catalog entry. A finding from a scan carries the title and severity that apply to that container, which can differ. consent-no-cmp is listed here as high; its findings report medium or high depending on what the rule found.
{
"rule_id": "consent-no-cmp",
"title": "No CMP detected",
"description": "Tags require consent but no Consent Management Platform is detected in the container.",
"recommendation": "Install a CMP (CookieBot, OneTrust, etc.) and configure it to fire on Consent Initialization.",
"category": "consent",
"tier": "warning",
"severity": "high",
"layer_requirements": "container",
"status": "shipped",
"version": 1,
"effort_estimate": "strategic",
"reversibility": "non-destructive",
"regulatory_cites": [
"GDPR Art. 6 (lawful basis)",
"GDPR Art. 7 (consent)"
],
"learn_more_url": null
}
Response fields
| Field | Type | Description |
|---|---|---|
rule_id | string | Primary key. Stable identifier used across findings and rule runs. |
version | integer | Rule definition version. Increments when logic changes. |
title | string | Short display name. |
description | string | What the rule detects and why it matters. |
recommendation | string | Concrete remediation step. |
category | string | Functional grouping, e.g. consent, quality, performance. |
tier | string | error, warning, optimization, or info. |
status | string | The field allows not_started, in_progress, validated, shipped, retired and deferred. The catalog today holds only shipped and deferred rules. |
layer_requirements | string | null | What the rule needs to run. The field allows container, container+page, container+page+runtime and container+api. Every shipped rule has container. |
severity | string | null | critical, high, medium, or low. |
effort_estimate | string | null | Remediation effort band: 15min, 2hr, 2wk, or strategic. |
reversibility | string | null | destructive or non-destructive. Every rule in the catalog today is non-destructive. |
regulatory_cites | string | Regulatory references, e.g. ["GDPR Art. 7"]. Empty array when none. |
learn_more_url | string | null | External reference URL. null for every rule in the catalog today. |
Response headers
| Header | Description |
|---|---|
X-RateLimit-Limit | Daily call ceiling for this endpoint |
X-RateLimit-Remaining | Calls remaining in the current bucket |
X-RateLimit-Reset | ISO timestamp when the bucket resets |
These headers are on every response to a request that was counted, including the 400 and 404 below. They are absent on 401, 403 and 405. During a rate-limiter outage this endpoint still answers and the headers hold placeholder values, not your real count. See Rate limits.
Errors
| Status | Body | Cause |
|---|---|---|
400 | { "error": "Missing required query param: rule_id" } | rule_id query param absent |
401 | { "error": "Invalid or expired token" } | Missing, malformed, expired or revoked bearer token. An API key failure reads Invalid or revoked API key. |
403 | { "error": "insufficient_scope", "message": "This token was not granted 'mcp:read', which this endpoint requires." } | An MCP access token with no usable scope |
404 | { "error": "Rule not found: <rule_id>" } | No rule with that rule_id exists in the registry |
429 | { "error": "rate_limit_exceeded", "message": "Daily limit reached for get_rule (1001/1000)", "tool": "get_rule", "limit": 1000, "count": 1001, "reset_at": "..." } | Daily bucket exhausted; check X-RateLimit-Reset |
500 | { "error": "..." } | Internal failure; retry once before reporting |
Try saying
Useful when wiring this endpoint to an agent that will call it programmatically.
Tell the agent something like:
You have access to TagManifest's REST API at https://developer.tagmanifest.com/v1.
Use GET /rules-detail to retrieve full metadata for a single rule.
Pass the rule_id as a query parameter: ?rule_id=<id>.
Authentication: include header "Authorization: Bearer <api-key>".
Or, when the agent has direct HTTP capability:
- "Fetch the full details for rule consent-no-cmp from TagManifest"
- "Look up the recommendation and regulatory cites for this rule ID using the TagManifest rules-detail endpoint"
See also
- MCP equivalent:
get_rule— same data, MCP path - GET /rules — browse or filter the full rule catalog
- Rules catalog — human-readable index of all rules
Examples
curl "https://developer.tagmanifest.com/v1/rules-detail?rule_id=consent-no-cmp" \
-H "Authorization: Bearer $TM_API_KEY"
const r = await fetch(
"https://developer.tagmanifest.com/v1/rules-detail?rule_id=consent-no-cmp",
{ headers: { Authorization: `Bearer ${process.env.TM_API_KEY}` } }
);
const rule = await r.json();
import os, httpx
r = httpx.get(
"https://developer.tagmanifest.com/v1/rules-detail",
params={"rule_id": "consent-no-cmp"},
headers={"Authorization": f"Bearer {os.environ['TM_API_KEY']}"},
)
rule = r.json()
{
"rule_id": "consent-no-cmp",
"title": "No CMP detected",
"description": "Tags require consent but no Consent Management Platform is detected in the container.",
"recommendation": "Install a CMP (CookieBot, OneTrust, etc.) and configure it to fire on Consent Initialization.",
"category": "consent",
"tier": "warning",
"severity": "high",
"layer_requirements": "container",
"status": "shipped",
"version": 1,
"effort_estimate": "strategic",
"reversibility": "non-destructive",
"regulatory_cites": [
"GDPR Art. 6 (lawful basis)",
"GDPR Art. 7 (consent)"
],
"learn_more_url": null
}