loki_list_labels
List all label names in Loki within a specified lookback window. Discover available labels to craft precise log queries.
Instructions
List all label names Loki has seen in the given lookback window.
lookback: Duration (1h, 24h, 7d). Default 1h. Shorter is faster.
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": "loki_list_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lookback | No | 1h |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |