MCP Server Tools
The Kloudfuse MCP server exposes a set of tools that an AI assistant calls to read your observability data. Every tool is read-only: it queries metrics, logs, traces, alerts, dashboards, Kubernetes state, profiles, RUM, or documentation, and never changes anything.
Tools are grouped into toolsets. On the remote MCP server, you can limit which toolsets a connection can see by appending ?toolsets=<names> to the MCP server URL as described in Toolsets. The local Docker server does not read this query parameter: it always exposes every default toolset, and the opt-in LogQL toolset cannot be enabled there.
Metrics
Run PromQL queries against your metrics and explore label names and values.
query_prometheus
Toolset: metrics
Runs a PromQL expression against your metrics and returns an instant or range result.
-
Show me CPU usage per pod in the
kfusenamespace over the last hour. -
What is the p99 request latency for the checkout service right now?
-
Plot memory usage for the ingester over the past 6 hours.
Logs
Query logs with FuseQL, read the lines around a match, group logs by fingerprint, and discover labels and facets.
query_logs
Toolset: logs
Queries logs with FuseQL and returns either raw log lines or an aggregated metric table.
-
Show me error logs from the payments service in the last 30 minutes.
-
Count log lines by level for the
apiservice over the past hour. -
Find logs containing "connection refused" in the production namespace.
get_log_context
Toolset: logs
Fetches the raw log lines immediately before and after one log line, like scrolling around it in the log viewer.
-
Show me what happened right before this out-of-memory log line.
-
Get 50 lines of context around that stack trace.
search_log_fingerprints
Toolset: logs
Groups logs into fingerprint patterns with occurrence counts to surface the noisiest and most common log templates.
-
What are the most common log patterns from the gateway in the last hour?
-
Which services are producing the most repeated error messages?
get_log_label_names
Toolset: logs, logql
Lists the label names available on logs.
-
What labels can I filter logs by?
get_log_label_values
Toolset: logs, logql
Lists the values of one log label.
-
Which services are sending logs?
-
List all Kubernetes namespaces present in logs.
APM
Inspect services and dependencies, search traces, and drill into waterfalls, spans, and errors.
search_apm_services
Toolset: apm
Finds active APM services and databases in your infrastructure.
-
Which services are running in production?
-
List all databases the APM data knows about.
search_apm_dependencies
Toolset: apm
Returns service-to-service dependencies to build a service graph.
-
What does the checkout service depend on?
-
Which services call the postgres database?
get_apm_service_nodes
Toolset: apm
Lists the Kubernetes nodes that handled traffic for a service.
-
Which nodes served traffic for the frontend service today?
search_apm_traces
Toolset: apm
Searches traces by service, operation, duration, status, and other criteria.
-
Find traces slower than 2 seconds for the checkout service in the last hour.
-
Show me failed traces for the
POST /ordersendpoint. -
List the slowest traces in production from the past 15 minutes.
get_apm_trace_waterfall
Toolset: apm
Returns the full span waterfall for one trace ID.
-
Show me the waterfall for trace
abc123. -
Where is the time going in this trace?
get_apm_span_details
Toolset: apm
Returns complete details for one span, given its span ID and trace ID.
-
Show me the attributes of the database span in trace
abc123. -
What tags are set on this span?
search_apm_trace_errors
Toolset: apm
Searches trace errors matching the given criteria.
-
What errors is the payments service throwing right now?
-
Group recent trace errors by exception type.
Alerts
Search alert rules and their firing instances, read the queries behind a rule, and review alert history.
get_alert_summary
Toolset: alerts
Returns a high-level rollup of the cluster’s current alert state: what is firing and what has been changing.
-
What is firing right now?
-
Give me an overview of alert activity today.
search_alert_rules
Toolset: alerts
Searches alert rules by name, labels, severity, health, or state, and returns each rule’s current state.
-
List all critical alert rules.
-
Which alert rules mention Kafka?
-
Are any alert rules in an error state?
search_alert_instances
Toolset: alerts
Lists the individual firing instances of a rule, one per evaluated label set, so you can see which pods or services are affected.
-
Which pods are firing the high memory alert?
-
Show me every firing instance in the
kfusenamespace.
get_alert_rule_queries
Toolset: alerts
Returns the full query and detection pipeline behind one alert rule, for any signal type and detection method.
-
What query does the disk usage alert evaluate?
-
Show me the threshold and condition for this alert rule.
get_alert_history
Toolset: alerts
Returns historical state transitions for alert rules, either as raw rows or an aggregated rollup, to spot past fires and flapping.
-
When did the latency alert fire in the last 7 days?
-
Which alerts have been flapping this week?
-
How long was the Kafka lag alert firing yesterday?
Dashboards
Search dashboards and folders, list tags, and read dashboard definitions and panel queries.
search_dashboards
Toolset: dashboards
Searches dashboards by title, tag, folder, or starred status.
-
Find dashboards related to Kafka.
-
List my starred dashboards.
search_folders
Toolset: dashboards
Searches dashboard folders.
-
What dashboard folders exist?
-
Find the folder for the platform team.
list_dashboard_tags
Toolset: dashboards
Lists dashboard tags with the number of dashboards using each.
-
Which dashboard tags are in use?
Events
Query events with filtering, sorting, and facet discovery.
get_events
Toolset: events
Returns events in a time range with filtering, sorting, and pagination.
-
Show me Kubernetes events from the last hour.
-
Find pod restart events in the
kfusenamespace today. -
List warning events for the ingester deployment.
Infrastructure
Search Kubernetes objects and read their status.
search_kubernetes
Toolset: infrastructure
Queries Kubernetes objects such as pods, deployments, services, and nodes, returning only the fields you request.
-
List pods that are not running in the
kfusenamespace. -
How many replicas does the ingester deployment have?
-
Which nodes are in the cluster and what are their capacities?
Pyroscope
Pull continuous-profiling data: profile types, labels, series, flamegraphs, and diffs between time windows.
get_pyroscope_profile_types
Toolset: pyroscope
Lists the available continuous-profiling profile types.
-
What profile types are being collected?
get_pyroscope_label_names
Toolset: pyroscope
Lists the label names available for filtering profiles.
-
What labels can I filter profiles by?
get_pyroscope_label_values
Toolset: pyroscope
Lists the values of one profile label.
-
Which services have profiling data?
get_pyroscope_series
Toolset: pyroscope
Finds the unique series, or label combinations, that match a selector.
-
What profile series exist for the query service?
get_pyroscope_flamegraph
Toolset: pyroscope
Returns flamegraph data for a profile type and label selector.
-
Show me the CPU flamegraph for the ingester over the last 15 minutes.
-
Where is the query service spending its time?
RUM
Real User Monitoring: list applications, search events, view error groups, latency, time series, and unminified stack traces.
list_rum_applications
Toolset: rum
Lists all RUM applications, or returns details for one.
-
What RUM applications are configured?
-
Show me details for the web storefront application.
search_rum_events
Toolset: rum
Searches RUM events within one application.
-
Show me error events from the storefront app in the last hour.
-
Find page views for the checkout page from Safari users.
get_rum_attributes
Toolset: rum
Lists the available RUM attribute fields, organized by category and event type.
-
What attributes can I filter RUM events by?
get_rum_attribute_values
Toolset: rum
Lists the values of one RUM attribute within an application, with counts.
-
Which browsers are users on?
-
What are the most visited pages today?
get_rum_time_series
Toolset: rum
Returns a time series for one field and aggregation within an application.
-
Plot the error rate for the storefront app over the last 24 hours.
-
Show me page view counts per hour today.
get_rum_raw_event
Toolset: rum
Returns the complete raw data for one RUM event, by event ID and type.
-
Show me the full payload for event
abc123.
get_rum_error_groups
Toolset: rum
Returns error groups with occurrence counts within an application.
-
What are the top frontend errors in the last 24 hours?
-
Which JavaScript errors are new since yesterday?
Docs
LogQL
Legacy LogQL tools. This toolset is opt-in only: its tools are hidden unless you request the toolset explicitly with ?toolsets=logql. The log label and facet tools listed under Logs are also included in this toolset.