Describe Rego policy
rego_describe_policyParse Rego policy into a structured summary of package, imports, rules, clause counts, defaults, arguments, body lengths, and annotations. Use as the first step to understand what a policy does.
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. |