loki_label_values
Enumerate distinct values for a specified Loki label within a bounded lookback window to inspect application, namespace, or target labels.
Instructions
[READ] Distinct values of one Loki label (bounded).
Args: name: Label name to enumerate (e.g. 'app', 'namespace'). hours: Lookback window in hours (capped at the tool's max lookback). target: Loki target name from config; omit for the default.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "loki_label_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| hours | No | ||
| target | No |