Splunk RUM tools
Splunk MCP Server provides 9 read-only Real User Monitoring (RUM) tools for retrieving information about applications, metrics, errors, sessions, and spans. The tools use fixed GraphQL operations and do not use a large language model (LLM) internally. They cannot create, modify, replay, or delete RUM data.
The RUM tools are not included in the default toolset. To select them, set the X-SPLUNK-O11Y-TOOL-SETS header to rum. To select RUM with the APM toolset, use apm,rum. Selecting a toolset does not grant access: your organization must have a RUM entitlement, and the caller must be authorized to access RUM data.
RUM tool responses are limited to an approximately 8,000-token budget. Large responses might be sampled or truncated.
Available RUM tools
The following table describes the available RUM tools and their input requirements:
| Tool name | Description | Requirements or inputs |
|---|---|---|
rum_app_list |
Lists and ranks RUM applications visible to your organization. | Requires a time range. Returns application names, product types, and rank values. |
rum_tags_v5 |
Lists RUM tags available for filtering and grouping metrics. | Does not require query parameters. Returns tag names, supported products, usages, and types. |
rum_selected_tag_values |
Lists values for a selected RUM tag. | Requires a time range and a group-by tag. Supports optional tag filters and allowed matches. The default result limit is 20, and the maximum is 1,000. |
rum_node_metrics_aggregated_query1 |
Queries aggregated RUM metrics for one or more applications, with optional timeseries. | Requires app_list, metric_family_name, aggregation, sf_product, and a time range. Optional inputs include product, environment, grouping dimension, filters, result limit, timeseries selection, and resolution. See Supported combinations for the supported metric and aggregation pairs. Timeseries requests use resolution_millis and are limited to 100 points. Results may include Tag Spotlight links. |
error_details |
Returns details for discovered JavaScript, iOS, and Android error fingerprints, including messages, parsed stack traces, and symbolication or deobfuscation details. | First discover fingerprints with rum_node_metrics_aggregated_query1. You can request up to 500 fingerprints at a time. |
rum_session_search |
Finds RUM sessions that match the requested criteria and returns session records plus totalCountSessions. |
Requires a time range. Supports session- and span-domain filter expressions, limit, offset, sort field, and sort order. The default limit is 40; the maximum is 1,000. Records can include session ID, timestamps, duration, application, product, event count, and error count. |
session_summary |
Returns a bounded summary of a RUM session, including timing, chunk timing, batch IDs, event counts, HTTP request and error counts, and JavaScript error counts. | Requires a known session ID. Discover a real session ID with rum_session_search first. |
batch_session |
Returns detailed traces, spans, session events, errors, browser or mobile metrics, and a RUM session link. | Requires a known session ID and chunk inputs. For the legacy API, copy each sessionChunkSummaries.batchIds list into both chunks.batch_ids and chunks.chunk_start_micros; don't use sessionChunkSummaries.chunkStartMicros. Each list supports up to 200 values, with a maximum of 50 chunks. Responses contain at most 30 spans and indicate truncation. |
span_search |
Asynchronously searches for RUM spans, traces, and sessions, returning up to 20 items and the backend total. | Requires a time range and application filter. Supports tag filters, optional filter type, offset, limit, incremental behavior, and time-window filtering. Responses indicate truncation and may include a link to the full RUM session-search view. |
Supported combinations
The following table lists the metric families supported for web and mobile RUM data, the aggregations available for each family, and what each family measures.
| Product | Metric family | Supported aggregations | Purpose |
|---|---|---|---|
| Web | page_view |
COUNT, P50, P75, P99 |
Page views or page-load latency |
| Web | client_error |
COUNT |
JavaScript or client errors |
| Web | webvitals_lcp |
P50, P75, P99 |
Largest Contentful Paint |
| Web | webvitals_fid |
P50, P75, P99 |
First Input Delay |
| Web | webvitals_cls |
P50, P75, P99 |
Cumulative Layout Shift |
| Web | webvitals_inp |
P50, P75, P99 |
Interaction to Next Paint |
| Web | long_task |
COUNT, P50, P75, P99 |
Task count or duration |
| Web | resource_request.ttfb |
P50, P75, P99 |
Time to first byte |
| Mobile | cold_start |
COUNT, P50, P75, P99 |
Cold launches or startup latency |
| Mobile | hot_start |
COUNT, P50, P75, P99 |
Hot launches or startup latency |
| Mobile | app_error |
COUNT |
Mobile application errors |
| Web and mobile | workflow |
COUNT, ERROR_COUNT, P50, P75, P99 |
Custom events, errors, or duration |
| Web and mobile | resource_request |
COUNT, ERROR_COUNT, P50, P75, P99 |
Requests, errors, or duration |
Time ranges
RUM tools that accept a time range use start and stop. Unless a tool specifies otherwise, the default range is the previous day through the current time. The start time must be earlier than the stop time, and the stop time cannot be in the future.
Time values can use ISO-8601 timestamps, relative values such as -15m, -1h, -1d, -1w1d, and now, or POSIX timestamps in seconds, milliseconds, or microseconds. Relative values are resolved against the paired endpoint or the current time. Invalid or contradictory ranges are rejected before the backend query runs.
Use RUM tools
The RUM tools support a read-only workflow from application discovery to session and span investigation. Follow these steps:
-
Use
rum_app_listto find applications for the requested time range. -
If filtering or grouping is needed, use
rum_tags_v5to discover available tags, thenrum_selected_tag_valuesto find values for a selected tag. -
Use
rum_node_metrics_aggregated_query1to query relevant metrics and identify error fingerprints or cohorts. Useerror_detailsto inspect discovered fingerprints. -
Use
rum_session_searchto find matching sessions. Pass a returned session ID tosession_summary. Usebatch_sessionif more detail is needed. -
Use
span_searchto find related span, trace, or session evidence.
Example requests
The following example requests show how you can use the RUM tools to explore applications, metrics, errors, sessions, and spans.
- Find applications: "List the RUM applications that reported data during the last 24 hours."
- Investigate a web metric: "For
<web-application>, show P75 Largest Contentful Paint over the last hour, grouped by browser." - Investigate a mobile metric: "For
<mobile-application>, show P75 cold-start duration during the last day." - Find and inspect errors: "Find the most frequent JavaScript errors for
<web-application>during the last two hours, then retrieve details for the leading error fingerprint." - Find sessions: "Find recent sessions for
<application>that contain errors, ordered by the most recent start time." - Inspect a session: "Summarize session
<session-id>. If the summary is insufficient, retrieve bounded session details using the chunk and batch identifiers returned by the summary." - Search related spans: "Search for spans related to
<application>and<error-or-operation-filter>during the last hour."
RUM tools limitations
The 9 RUM tools share an approximately 8,000-token response budget. Large results can be sampled or truncated even when the backend query succeeds. If a response is truncated, narrow the time range, application scope, filters, grouping, or requested detail.
| Tool | Default limit | Maximum or other limit |
|---|---|---|
rum_selected_tag_values |
20 values | 1,000 values |
rum_node_metrics_aggregated_query1 |
5 results | 1,000 grouped results; up to 50 applications |
rum_session_search |
40 sessions | 1,000 sessions; supports offset and sorting |
span_search |
5 items | Request limit up to 1,000; response contains at most 20 items |
error_details |
500 fingerprints | |
batch_session |
50 chunks; 200 values per chunk list; 30 spans in the response |
Timeseries requests are limited to 100 points. Increase resolution_millis, reduce the time range, or omit the timeseries to stay within this limit. A bounded response does not mean the backend contained only the returned results.
The legacy BatchSession API requires each sessionChunkSummaries.batchIds list to be copied into both chunks.batch_ids and chunks.chunk_start_micros. Do not use sessionChunkSummaries.chunkStartMicros. Manually supplied mismatched values are not validated or corrected.
Errors and empty results
An empty successful response means no matching data was found for the authorized organization, application, filters, and time range. It is different from an error.
Invalid inputs are rejected before a backend request. Entitlement or authorization failures are returned as access failures. Backend HTTP failures can include the HTTP status code. GraphQL errors or missing GraphQL data return a generic error; raw backend response bodies are not shown. If a response is truncated, narrow the query as described in RUM tools limitations.
Troubleshoot RUM tools
If you encounter an error when calling a RUM tool, use the following table to identify possible causes and corrective actions.
| Issue | Possible cause or action |
|---|---|
| RUM tools are missing | Explicitly select the toolset with X-SPLUNK-O11Y-TOOL-SETS: rum. RUM isn't included in the default toolset. |
| Entitlement or authorization failure | Confirm that the organization has the RUM entitlement and that the caller is authorized. Selecting the toolset does not grant access. |
| No matching data | Check the time range, application, and filters. For span searches, a job failure is different from a successful search with no matches |
| Invalid tag or value | Use rum_tags_v5 to find available tag names and rum_selected_tag_values to find values for a selected tag. |
| Unsupported metric and aggregation combination | Check that the selected metric and aggregation combination is supported for the web or mobile product. |
| Session details can't be retrieved | Find a real session ID with rum_session_search before requesting its summary or details. |
| BatchSession returns an error or unexpected results | Use the batchIds mapping described in the tool reference. Manually supplied mismatched chunk values aren't validated or corrected. |
| Results are truncated | Narrow the time range, application scope, filters, or requested detail. |