Rego dependency analysis
rego_depsAnalyzes Rego policy dependencies for a given reference. Returns base data references and rule dependencies transitively to help understand policy impact.
Instructions
Static dependency analysis for a Rego reference. Given a target ref like "data.example.allow", returns the base document references (input/data leaves) and virtual document references (rules) it depends on, transitively.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Reference to compute dependencies for, e.g. "data.example.allow". | |
| paths | Yes | Policy / data paths to load before computing dependencies. Each must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). |