Skip to main content

Available Tools

Complete reference for all MCP tools provided by the Prometheus MCP Server. Tools are organized by category — 28 tools across 6 categories.


PromQL Query Engine

Tools for safely querying Prometheus with counter enforcement and automatic downsampling.

ToolDescription
prom_validate_promqlCheck PromQL syntax before executing
prom_query_instantExecute a point-in-time PromQL query with counter enforcement
prom_query_rangeExecute a time-range PromQL query with automatic downsampling
prom_explore_labelsDiscover label names and top values for a given metric
prom_suggest_promqlGenerate a PromQL expression from natural language intent

prom_query_instant

Executes an instant (point-in-time) query. Enforces counter semantics — raw counter queries are blocked unless allow_raw_counters=true.

"What is the current request rate for http_requests_total?"
"Show CPU usage across all pods in the production namespace."
"Query up{job='api-server'} — is my service being scraped?"

prom_query_range

Executes a range query with automatic step calculation. Downsamples results to ~200 points per series to protect LLM context windows.

"Show me the request rate for http_requests_total over the last hour."
"Graph CPU usage for the last 24 hours."

Safety guardrails

GuardrailRuleOverride
Counter EnforcementCounters must use rate() or increase()allow_raw_counters=true
Auto-DownsamplingRange queries capped at ~200 points/seriesmax_points_per_series param
Validate FirstComplex queries should be checked via prom_validate_promql

Application Onboarding

Tools for instrumenting applications and wiring them into Prometheus.

ToolDescription
prom_recommend_instrumentationRecommend direct instrumentation vs exporter vs builtin metrics
prom_test_endpointValidate that an endpoint exposes valid Prometheus/OpenMetrics metrics
prom_apply_servicemonitorGenerate and apply a ServiceMonitor CRD for Prometheus Operator
prom_apply_probeGenerate and apply a Probe CRD for synthetic endpoint monitoring
prom_manage_file_sdAdd or remove static targets in a file_sd_configs JSON file

prom_recommend_instrumentation

Recommends the best monitoring strategy based on workload type, language, and environment.

"What's the best way to monitor my Python Flask app on Kubernetes?"
"Should I use an exporter or direct instrumentation for our Go service?"

Returns one of: direct_instrumentation, exporter, or builtin_metrics (e.g., Spring Boot Actuator/Micrometer).

prom_apply_servicemonitor

Creates a ServiceMonitor CRD with auto-detected Prometheus Operator selector labels. Mutates the cluster.

"Wire my api-server service in the default namespace to Prometheus."
"Create a ServiceMonitor for postgres-exporter in monitoring namespace."

prom_apply_probe

Creates a Probe CRD for synthetic endpoint monitoring using Blackbox exporter.

"Monitor https://talkops.ai availability from inside the cluster."
"Set up a probe for our health check endpoint at /healthz."

prom_manage_file_sd

Manages static targets for VM/legacy environments. Supports add and remove sub-actions. Optionally triggers POST /-/reload.

"Add my VM host 10.0.1.5:9100 to Prometheus file_sd targets."
"Remove the old database target from file_sd."

Exporter Lifecycle

Tools for deploying and managing Prometheus exporters on Kubernetes.

ToolDescription
prom_recommend_exporterGet exporter recommendations for a specific service type
prom_install_exporterDeploy an exporter to Kubernetes (Deployment/DaemonSet + Service + RBAC)
prom_uninstall_exporterRemove an exporter from Kubernetes
prom_verify_exporterEnd-to-end health check: scrape endpoint + check Prometheus up{} series

prom_install_exporter

Deploys a complete exporter stack to Kubernetes — Deployment (or DaemonSet), Service, and optionally RBAC roles, ConfigMaps, and additional manifests. Mutates the cluster.

"Deploy a postgres_exporter in the monitoring namespace for our PostgreSQL database."
"Install node_exporter as a DaemonSet across all nodes."
"Set up a blackbox_exporter for synthetic endpoint monitoring."

Supported exporters (19 total)

ExporterDefault PortScopeK8s Nuances
node_exporter9100DaemonSet
kube-state-metrics8080DeploymentRequires RBAC
postgres_exporter9187SidecarSidecar support
mysqld_exporter9104SidecarSidecar support
mongodb_exporter9216DeploymentSidecar support
redis_exporter9121SidecarSidecar support
nginx_exporter9113SidecarSidecar support
kafka_exporter9308Deployment
rabbitmq_exporter9419Deployment
elasticsearch_exporter9114Deployment
blackbox_exporter9115DeploymentRequires ConfigMap
snmp_exporter9116DeploymentRequires ConfigMap
statsd_exporter9102DeploymentUDP Service + ConfigMap
jmx_exporter5556SidecarConfigMap + Sidecar
aws_cloudwatch_exporter5000DeploymentConfigMap
apache_exporter9117SidecarSidecar support
php_fpm_exporter9253SidecarSidecar support
memcached_exporter9150Deployment
windows_exporter9182DaemonSetVM only

Rule Management & Authoring

Tools for creating, validating, and managing alerting and recording rules.

ToolDescription
prom_get_rule_groupGet a single rule group by name with full rule details
prom_upsert_rule_groupCreate or update a rule group (YAML, CRD, or HTTP Ruler)
prom_delete_rule_groupDelete a rule group
prom_describe_alert_ruleHuman-readable explanation of an alerting rule
prom_draft_alert_ruleGenerate an alert rule from natural language intent
prom_tune_alert_ruleSuggest rule adjustments based on firing history

prom_draft_alert_rule

Generates a complete alerting rule definition from natural language.

"Draft an alert for when the 5xx error rate exceeds 5% for 5 minutes."
"Create a recording rule for pre-aggregated request rates by service."

prom_upsert_rule_group

Creates or updates a rule group. Supports three storage modes:

Storage ModeDescription
yamlWrites YAML rule file to disk
k8s_crdPatches a PrometheusRule CRD in Kubernetes
http_rulerPOSTs to the HTTP Ruler API (Thanos/Mimir/Cortex)
warning

When using k8s_crd mode, always cross-reference prom://kubernetes/prometheusrules to discover the exact CRD name and namespace. An incorrect namespace will silently create a duplicate CRD instead of patching the existing one.


Rule Simulation & Testing

Tools for validating and testing rules before deploying them.

ToolDescription
prom_check_rule_groupValidate rule group syntax via promtool
prom_run_rule_testsRun promtool test rules with synthetic test scenarios
prom_simulate_firing_syntheticRun synthetic alert firing test via promtool
prom_simulate_firing_historicalEvaluate alert expression against real historical data
prom_analyze_firing_historyAnalyze alert firing frequency and duration for tuning

prom_simulate_firing_historical

The most powerful testing tool — evaluates an alert expression against your real historical data to see if it would have fired over a given time period.

"If I set the error rate threshold to 3%, would this alert have fired in the last 7 days?"
"Simulate the high memory alert against last week's production data."

TSDB FinOps & Optimization

Tools for analyzing and optimizing Prometheus storage costs and cardinality.

ToolDescription
prom_optimize_cardinalityAnalyze top-N cardinality metrics and recommend optimization strategies
prom_plan_relabelGenerate metric_relabel_configs YAML to drop/keep labels
prom_create_recording_ruleGenerate recording rule group YAML
prom_configure_remote_writeGenerate remote_write config YAML for long-term storage
YAML Output Only

All FinOps tools generate configuration YAML — they do not apply changes to a running Prometheus instance. Users must manually add the YAML to their Prometheus configuration files.

"Analyze cardinality hotspots and recommend optimization strategies."
"Generate a relabel config to drop the pod_id label from http_requests_total."
"Configure remote-write to our Thanos receive endpoint."

Tool Availability Summary

CategoryTotal Tools
PromQL Query Engine5
Application Onboarding5
Exporter Lifecycle4
Rule Management & Authoring6
Rule Simulation & Testing5
TSDB FinOps & Optimization4
Total29

Next Steps

  • Resources — 14 MCP resources for discovery and monitoring
  • Common Workflows — Step-by-step workflow guides
  • Examples — Quick reference and natural language prompts