Splunk Synthetics tools

Splunk MCP Server provides five read-only Synthetics tools for retrieving information about Synthetic Monitoring tests, locations, test runs, and results.

The Synthetics tools are available as a preview and require a Synthetics entitlement. You must explicitly select the synthetics toolset to use them.

These tools return sanitized data and do not expose credentials or other sensitive configuration information. They cannot create, modify, schedule, trigger, or delete tests.

Available Synthetics tools

The following table describes the available Synthetics tools and their input requirements:

Tool name Description Requirements or inputs
get_synthetics_tests Lists and filters Synthetic Monitoring tests. Supports search, test type, location, frequency, status, and pagination. Maximum page size: 100.
get_synthetics_locations Lists available public and private monitoring locations, including the default location. Can be used to identify location IDs required by other tools.
get_synthetics_test_runs Lists runs for a specified Synthetic Monitoring test.

Requires test_id as a string of digits, such as "374". Supports time range, success state, trigger type, location, and pagination filters.

get_synthetics_test_by_id_mcp Returns a sanitized configuration for a specified test.

Requires test_id as an integer and test_type as api, http, browser, or port.

get_synthetics_run_result_mcp Returns a sanitized result for a specified test run.

Requires test_id as an integer, run_coarse_timestamp_ms as an epoch timestamp in milliseconds, and frequency_minutes as the test frequency in minutes. The optional location_id parameter is required when multiple locations have matching runs.

Call the Synthetics tools

The Synthetics tools are available through the Splunk Observability MCP Server JSON-RPC endpoint. To call these tools, authenticate using a Splunk Observability Cloud access token and explicitly select the synthetics toolset.

When sending a request, include the following headers:

  • X-SF-TOKEN: Specifies the Splunk Observability Cloud access token for the target realm.

  • X-SPLUNK-O11Y-TOOL-SETS: synthetics: Selects the Synthetics toolset.

  • Content-Type: application/json: Specifies the request content type.

  • Accept: application/json, text/event-stream: Allows the server to return the response as a server-sent event.

Use the JSON-RPC tools/call method to invoke a Synthetics tool. Specify the tool name in params.name and its input parameters in params.arguments.

For tools that accept input parameters, specify them in the arguments object within params.The get_synthetics_locations tool does not accept input parameters and requires an empty arguments object ({}).

The server returns the tool output in result.content[0].text. The result.structuredContent.result field also contains the output. Depending on the tool, the output might be a string or a JSON object.

The following example uses the get_synthetics_locations tool to retrieve available monitoring locations:

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_synthetics_locations",
    "arguments": {}
  }
}

The get_synthetics_locations tool returns available public and private monitoring locations, including their IDs. Use these IDs when calling other Synthetics tools that require a location.

Use the Synthetics tools

The Synthetics tools provide a read-only workflow for finding Synthetic Monitoring tests, reviewing their configurations, and retrieving test-run results.

You can use the tools in the following sequence:

  1. Use get_synthetics_locations to find available monitoring locations and their IDs, if needed.

  2. Use get_synthetics_tests to list or filter tests and identify the test you want to inspect.

  3. Use get_synthetics_test_by_id_mcp to retrieve the test's sanitized configuration.

  4. Use get_synthetics_test_runs to list runs for the selected test and time range.

  5. Use get_synthetics_run_result_mcp to retrieve the sanitized results of a selected run.

The tools do not trigger new test runs or modify existing tests.

Synthetics tools limitations

The following limitations apply to the Synthetics tools:

  • Preview availability: The Synthetics tools are available as a preview and must be explicitly selected using the synthetics toolset.

  • Supported test types: Test configuration lookup supports API, HTTP, browser, and port tests.

  • Run-result requirements: Retrieving a specific test-run result requires the test ID, coarse run timestamp in milliseconds, and test frequency in minutes.

  • Location identification: A location ID might also be required when runs from multiple locations match the specified criteria.

  • Sanitized responses: Test configurations and results contain only permitted fields. Sensitive information, such as credentials, passwords, private keys, request and response bodies, and JavaScript source, is excluded where applicable.

  • Successful runs only: The get_synthetics_run_result_mcp tool can retrieve results only for successful test runs. Results for failed runs cannot currently be retrieved using this tool.

  • SSL tests: The get_synthetics_tests tool can list SSL tests, but get_synthetics_test_by_id_mcp does not support retrieving their configurations.

  • Pagination: To retrieve additional pages from get_synthetics_tests or get_synthetics_test_runs, call the tool again with an increased page value. The nextPageLink value is informational and cannot be called directly.

  • Browser test results: Retrieving browser test-run results might fail because of response validation errors.

Troubleshoot the Synthetics tools

If you encounter an error when calling a Synthetics tool, use the following table to identify possible causes and corrective actions.

Issue Possible cause or action
HTTP 401 (Unauthorized) The access token is missing or invalid. Verify that the request includes a valid Splunk Observability Cloud access token in the X-SF-TOKEN header.
HTTP 406 (Not Acceptable) The request does not accept both required response formats. Include Accept: application/json, text/event-stream in the request headers.
Tool '<name>' not found The Synthetics toolset might not be selected. Include X-SPLUNK-O11Y-TOOL-SETS: synthetics in the request.
Tool '<name>' not permitted for this request The organization might not have the required Synthetics entitlement. Verify that the organization has the SYNTHETICS capability.
Invalid arguments for tool '<name>' One or more parameters might have an incorrect type, an unsupported value, or an invalid structure. Check the tool's input requirements, including the required test_id format.
Multiple concurrent runs found at locations More than one location has a matching run. Specify the location_id parameter to identify the required location.
Unable to determine fine timestamp for location The run-result tool might not be able to retrieve the selected run. This tool currently supports successful runs only. Verify that the run was successful and that the timestamp and location are correct.