Read data from OPA
opa_get_dataRetrieve a value from OPA's data hierarchy by specifying a dotted or slash-separated path. Use literal segments when keys contain both dots and slashes.
Instructions
Read a path from OPA's data hierarchy. A path is read as dotted (users.alice) unless it contains a slash, in which case slash is the only separator (users/alice), so a key such as example.com is addressable as hosts/example.com. Pass segments instead when a key contains both.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "opa_get_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Data path under `data.`, e.g. "users" or "users/alice". | |
| segments | No | Path as literal key segments, e.g. ["labels", "app.kubernetes.io/name"]. Use instead of `path` when a key contains a dot or a slash. |