List audit rules
The rule catalogue, for building enabledRulePatterns and disabledRulePatterns
/v1/rulesThe rule catalogue, grouped by category and sorted by category priority. Use it to build `enabledRulePatterns` and `disabledRulePatterns` for `POST /v1/agent-runs`: a pattern is a category code (`ax`), a category glob (`ax/*`) or an exact rule `id` (`core/robots-meta`). Each rule says whether it `requiresCloud` (reads a cloud-backed step: slower and credit-metered) and whether it `requiresRender` (reads the render step, so it is skipped on a run with `render: false`). The catalogue is the same for every caller and changes only when a new engine version ships, so the response is cacheable (`Cache-Control: public, max-age=3600`). Opt-in rules (`gaps/*`) are not listed and cannot be selected. The hosted MCP `list_rules` and `get_rule` tools return the same fields as `requires_cloud` and `requires_render`.
Responses
The rule catalogue.
totalRulesintegerrequiredRules in the catalogue, across all categories.
categoriesobject[]requiredcurl --request GET \
--url "https://api.squirrelscan.com/v1/rules"{
"totalRules": 123,
"categories": []
}