Prometheus Instant Query
prometheus_queryRuns a PromQL instant query against Prometheus to return current metric values, with mock data when no backend is configured.
Instructions
Run a PromQL instant query against Prometheus. Connects to a real Prometheus instance when MCP_PROMETHEUS_URL is set (optionally MCP_PROMETHEUS_TOKEN for bearer auth); otherwise returns mock latency/error-rate/resource metrics so the tool is demoable without infra.
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": {
"query": "<query>"
},
"name": "prometheus_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | PromQL expression, e.g. histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[5m])) |