Skip to main content
TagManifest /Docs Dashboard

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.

GET/v1/rules-detail?rule_id=consent-no-cmp

Request

Headers

HeaderRequiredValue
AuthorizationyesBearer <token>. An API key, or an MCP access token with the mcp:read or mcp:tools scope. See Authentication.

Query parameters

ParamTypeRequiredDescription
rule_idstringyesThe 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

FieldTypeDescription
rule_idstringPrimary key. Stable identifier used across findings and rule runs.
versionintegerRule definition version. Increments when logic changes.
titlestringShort display name.
descriptionstringWhat the rule detects and why it matters.
recommendationstringConcrete remediation step.
categorystringFunctional grouping, e.g. consent, quality, performance.
tierstringerror, warning, optimization, or info.
statusstringThe field allows not_started, in_progress, validated, shipped, retired and deferred. The catalog today holds only shipped and deferred rules.
layer_requirementsstring | nullWhat the rule needs to run. The field allows container, container+page, container+page+runtime and container+api. Every shipped rule has container.
severitystring | nullcritical, high, medium, or low.
effort_estimatestring | nullRemediation effort band: 15min, 2hr, 2wk, or strategic.
reversibilitystring | nulldestructive or non-destructive. Every rule in the catalog today is non-destructive.
regulatory_citesstringRegulatory references, e.g. ["GDPR Art. 7"]. Empty array when none.
learn_more_urlstring | nullExternal reference URL. null for every rule in the catalog today.

Response headers

HeaderDescription
X-RateLimit-LimitDaily call ceiling for this endpoint
X-RateLimit-RemainingCalls remaining in the current bucket
X-RateLimit-ResetISO 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

StatusBodyCause
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

Examples

Request
curl "https://developer.tagmanifest.com/v1/rules-detail?rule_id=consent-no-cmp" \
  -H "Authorization: Bearer $TM_API_KEY"
200 — rule
{
  "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
}