list_metrics
List Prometheus metric names, optionally filtered by a case-insensitive substring, to help AI clients discover available metrics before running PromQL queries.
Instructions
List metric names known to Prometheus, optionally filtered by substring.
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": "list_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum names to return. | |
| contains | No | Case-insensitive substring filter, e.g. 'http_request'. Empty for all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |