Skip to main content
TagManifest /Docs Dashboard

GET /rules

List the rule catalog with metadata. Filter by category, tier, or status.

On this page 5

Summary

  • endpoint — GET /rules
  • purpose — browse the full rule catalog, optionally filtered by category, tier, or status
  • mcp equivalent — list_rules
  • rate limit — 1000/day per user
  • synchronous — yes (database read, no fetch or scan)

Returns the TagManifest rule catalog as an array of rules. Results are sorted by category, then by rule ID. No container is required: this reads the catalog and audits nothing.

The catalog has 92 shipped rules. With no filters the endpoint returns all of them.

GET/v1/rules

No scan. This endpoint reads from the rule registry. It fetches no container and runs no rules.

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

ParamTypeRequiredDefaultDescription
categorystringoptional—Restrict results to one category: consent, ga4, ads, ecommerce, security, pii, performance, quality, organization or dead-code.
tierstringoptional—Restrict results to one tier: error, warning, optimization, or info.
statusstringoptionalshippedshipped, deferred or all. shipped rules are the ones that produce findings. Two rules are listed with status deferred; they produce no findings today. all returns every rule whatever its status.
limitnumberoptional200Maximum rules to return. Must be 0 or more. 0 means the default of 200. Values over 500 are cut to 500. A fraction is rounded down.

These four are the only query parameters. Any other, such as layer, is refused with a 400.

Response

Returns an object with a total count and a rules array. total is the number of rules in this response, after the filters and the limit. Each entry has the same 14 fields as GET /rules-detail; that page describes each one.

The example holds one rule, so total is 1. A call with no filters returns 92.

{
  "total": 1,
  "rules": [
    {
      "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
    }
  ]
}
  • category and tier take the values listed under Query parameters.
  • severity is critical, high, medium or low.
  • status is shipped or deferred.
  • version is an integer.
  • layer_requirements is a string, not a list. Every shipped rule has container.
  • effort_estimate is one of 15min, 2hr, 2wk or strategic.
  • reversibility is non-destructive for every rule in the catalog today. The field also allows destructive.
  • learn_more_url is null for every rule in the catalog today.
  • regulatory_cites is an empty array when a rule has none.
  • severity here is the rule's catalog value. A finding from a scan carries the severity that applies to that container, which can differ.

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 a 400 for a bad parameter. 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

No-results queries return an empty rules array with total: 0 — not a 404.

StatusBodyCause
400{ "error": "Unknown category \"privacy\". Category must be one of: ..." }category, tier or status is not a real value. The message lists the accepted ones.
400{ "error": "Unknown query parameter: \"statuses\" (did you mean \"status\"?). Accepted: category, tier, status, limit." }A query parameter this endpoint does not take. It is refused so that a misspelt filter is never silently ignored.
400{ "error": "limit must be a number of 0 or more (got \"-1\")." }limit is negative or not a number.
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.
429{ "error": "rate_limit_exceeded", "message": "Daily limit reached for list_rules (1001/1000)", "tool": "list_rules", "limit": 1000, "count": 1001, "reset_at": "..." }Daily bucket exhausted. See X-RateLimit-Reset.
500{ "error": "Registry read failed: ..." }Internal registry failure. Retry once before reporting.

Try saying

Useful when wiring this endpoint to an agent that calls it programmatically.

Tell the agent something like:

You have access to TagManifest's REST API at https://developer.tagmanifest.com/v1.
Use GET /rules to browse the rule catalog.
Filter with query params: category, tier, status, limit.
Authentication: include header "Authorization: Bearer <api-key>".

Or, when the agent has direct HTTP capability:

  • "List all TagManifest rules in the consent category"
  • "Show me the warning-tier consent rules available in TagManifest"
  • "Fetch the full TagManifest rule catalog and summarize what's in the performance category"

See also

Examples

Request
curl "https://developer.tagmanifest.com/v1/rules?category=consent&tier=warning" \
  -H "Authorization: Bearer $TM_API_KEY"
200 — rules list
{
  "total": 2,
  "rules": [
    {
      "rule_id": "consent-cmp-not-wired",
      "title": "CMP detected but consent mode not wired",
      "description": "A CMP is installed but 80%+ of tags have no consent configuration, making the CMP effectively decorative.",
      "recommendation": "Configure consent types on all tags that collect or process user data.",
      "category": "consent",
      "tier": "warning",
      "severity": "critical",
      "layer_requirements": "container",
      "status": "shipped",
      "version": 1,
      "effort_estimate": "2wk",
      "reversibility": "non-destructive",
      "regulatory_cites": [
        "GDPR Art. 6 (lawful basis)",
        "GDPR Art. 7 (consent)"
      ],
      "learn_more_url": null
    },
    {
      "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
    }
  ]
}