Describe Rego policy
rego_describe_policyParses Rego policies to produce a structured summary of package, imports, and rules, including clause count, defaults, arguments, body length, and inline annotations.
Instructions
Parse a Rego policy and return a structured summary: package, imports, and rules. Each rule reports clauseCount (how many definitions share the name), isDefault (true if any clause is a default), hasArgs, bodyLength (total body expressions across all clauses), and inline annotations. Useful as the first step in any "what does this policy do" workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Rego source to describe. |