Rego dependency analysis
rego_depsAnalyze static dependencies of a Rego policy reference, returning base document and virtual document dependencies transitively.
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). |