OPA capabilities
rego_capabilitiesInspect OPA capabilities for the current or specified version: list available builtin names, features, and WASM ABI versions, or retrieve full type signatures and docs for selected builtins.
Instructions
Return OPA capabilities -- the available builtins, future keywords, features, and WASM ABI versions. With current: true, returns the running OPA's capabilities. With version: "v1.19.0", returns those of a specific version. With neither, lists available named versions. By default (names_only: true), returns only builtin names and count to stay within response size limits. Pass builtins: [...] for the full type signatures and documentation of a few named builtins; names_only: false returns every full record, which needs OPA_MCP_MAX_RESPONSE_BYTES raised above its default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| current | No | Print the capabilities of the currently installed OPA. Mutually exclusive with `version`. | |
| version | No | A specific OPA capabilities version (e.g. "v1.19.0"). When neither flag is set, lists available versions. | |
| builtins | No | Return the full record (type signature, documentation, metadata) for up to 100 builtin names, exact matches only. `matched` counts the records returned and names not found are listed under `missing`. When the records would not fit the response cap the tool returns OUTPUT_TOO_LARGE rather than a truncated result; ask for fewer names. Do not combine with `names_only: true`, which asks for the opposite. | |
| names_only | No | When true, or omitted, return only builtin names, count, future keywords, and features. The full payload for every builtin is larger than the default response cap (OPA_MCP_MAX_RESPONSE_BYTES), so `names_only: false` on its own needs that cap raised; use `builtins` to get full records for a few names instead. |