loki_list_label_values
List all values for a label in Loki logs within a lookback window. Specify label name and time range to discover available label values.
Instructions
List all values seen for a given label in the lookback window.
label: Label name (e.g. container, service_name, job, host).
lookback: Duration (1h, 24h, 7d). Default 1h.
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": {
"label": "<label>"
},
"name": "loki_list_label_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| lookback | No | 1h |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |