Skip to main content
Glama
Instana MCP Server

Instana MCP Server

Official
by instana

Manage Instana Synthetic Resources

manage_synthetics

Manage Instana synthetic monitoring resources: retrieve metric and tag catalogs, query aggregated metrics, look up test settings and playback results, and configure smart alerts.

Instructions

Unified Instana synthetic resource manager for catalog, metrics, settings, test playback operations, and smart alert configurations.

Resource Types: - "catalog": Get available metrics and tags for synthetic monitoring - "metrics": Retrieve aggregated synthetic monitoring metrics - "settings": Look up synthetic test configuration (id, label, description) - "test_playback": Retrieve synthetic test playback results - "alert": Manage Synthetic Smart Alert Configurations (CRUD + enable/disable/restore)

CRITICAL WORKFLOW: BEFORE any data query, call catalog first to get valid metric and tag names. Never guess. Pagination: for payload "pagination" objects (metrics, test_playback) always set {"page": 1, "pageSize": 20} unless user asks for more. For alert find_active use flat params page / page_size instead.

METRIC FIELD FORMAT — within test_playback, two different formats are used:
- "metrics" key with {metric, aggregation} objects — used by: get_synthetic_result, get_test_summary_list
- "syntheticMetrics" key with plain name strings — used by: get_synthetic_result_list, get_synthetic_result_analytic
Using the wrong key will cause a validation error.

CATALOG (resource_type="catalog"): operations: get_synthetic_catalog_metrics, get_synthetic_tag_catalog params: {use_case, view}

get_synthetic_catalog_metrics - Get synthetic metrics catalog with necessary metadata for query
    planning (metricId, label, description, formatter, aggregations, beaconTypes).
    Use params.view="full" to retrieve raw SDK metadata (rarely needed).
get_synthetic_tag_catalog - Get valid tag names for the given use_case.
    Valid use_case: "GROUPING", "FILTERING", "SMART_ALERTS"

METRICS (resource_type="metrics"): operations: get_metrics_result params: {payload}

get_metrics_result - Retrieve one or more aggregated metrics for synthetic monitoring beacons.
    NOTE: always returns ONE scalar per group — NOT a time-series array. For day-by-day trend
    data use get_test_summary_list with granularity=86400 instead.
    payload: Complete request body as a dict or JSON string with the following fields:
        - metrics (required): List of metric/aggregation objects
              e.g. [{"metric": "synthetic.metricsResponseTime", "aggregation": "SUM"}]
        - timeFrame (optional): {"to": <unix_ms>, "windowSize": <milliseconds>}
        - pagination (optional): {"page": 1, "pageSize": 3}
        - groups (optional): List of grouping objects. Each object MUST include all three fields:
              - groupbyTag (required): tag name from get_synthetic_tag_catalog (use_case="GROUPING")
              - groupbyTagEntity (required): "NOT_APPLICABLE"
              - direction (required): "ASC" or "DESC"
              NOTE: get_metrics_result grouping responses do NOT return location/tag labels — only
              metric values. To get failures broken down by named location, use get_test_summary_list
              instead — each result item includes locationStatusList with per-location totalTestRuns,
              successRuns, and successRate.
        - tagFilterExpression (optional): Tag filter expression object.
              CRITICAL: ALL tag filters MUST include "entity": "NOT_APPLICABLE" for synthetic tags.
        - disableDefaultGroups (optional): boolean
        - includeAggregatedTestIds (optional): boolean

SETTINGS (resource_type="settings"): operations: get_synthetic_test, get_synthetic_tests, get_locations, get_location_by_id, get_all_datacenters params: {test_id, test_name, application_id, location_id, location_type, status, credential_name, sort, offset, limit, filter}

get_synthetic_test - Retrieve a single synthetic test's full record.
    Supply either test_id (direct lookup) or test_name (name resolution).
    - test_id: The synthetic test ID (e.g. "CVkDqtbdHMR4pqms7K5N")
    - test_name: The synthetic test label (case-insensitive match)

get_synthetic_tests - List synthetic tests, optionally filtered and paginated.
    params: {application_id, location_id, credential_name, sort, offset, limit, filter_param, page, page_size} — all optional.
    Without page/page_size/offset/limit all tests are returned. With page/page_size the response
    carries pagination metadata
    ({page, page_size, total_items, total_pages, has_more, has_previous, next_operation, previous_operation}).
    page/page_size cannot be combined with offset/limit. To change page, call
    resource_type="settings" with operation=<next_operation or previous_operation> (e.g. "page_2")
    and the same filters. The same applies to resource_type="alert" find_active.

get_synthetic_test / get_synthetic_tests results include a markdown "link" for each test.
    ALWAYS show each test name using its 'link' field verbatim (markdown, already URL-encoded).
    NEVER shorten, rebuild or drop the URL - truncated URLs do not open in the Instana UI.

get_locations - List all locations with full metadata (id, label, displayLabel, locationType,
    status, geoPoint, customProperties.datacenterFlag, totalTests).
    locationType="Managed" = datacenter (IBM/AWS/Azure hosted). locationType="Private" = self-hosted PoP.
    To resolve a datacenter name to a locationId: call get_all_datacenters, match user input
    against displayLabel, label, or customProperties.datacenterFlag, use the id in TAG_FILTERs.
    params: {location_type, status, sort, offset, limit, filter} — all optional.

get_location_by_id - Single location by location_id (direct) or location_name (resolves label/displayLabel,
    case-insensitive). Returns available_location_names on miss.

get_all_datacenters - Convenience operation that returns ONLY Managed (datacenter) locations.
    Equivalent to get_locations with location_type="Managed" but also returns total_online count.
    Use this for fleet health scoring (total_online = denominator for health %).
    - status: Optional — "Online" to restrict to active datacenters only
    Returns: items, count, total_online, filters_applied

TEST_PLAYBACK (resource_type="test_playback"): operations: get_synthetic_result, get_synthetic_result_analytic, get_synthetic_result_list, get_location_summary_list, get_test_summary_list, get_synthetic_result_metadata, get_synthetic_result_detail_data All operations use payload param except metadata/detail which use flat params. ALL TagFilterExpression filters require "entity": "NOT_APPLICABLE".

get_synthetic_result - Aggregated metrics. Uses "metrics" key.
    payload: {metrics, timeFrame, pagination, order}

get_synthetic_result_analytic - Per-test reduction. Uses "syntheticMetrics" key.
    analyticFunction="LAST_VALUE" returns the most recent run per test.
    payload: {syntheticMetrics, analyticFunction, timeFrame, pagination, order, TagFilterExpression}

get_synthetic_result_list - One row per run, no aggregation. Uses "syntheticMetrics" key.
    For metricsStatus filter use "numberValue": 1 (pass) / 0 (fail) — NOT plain "value".
    payload: {syntheticMetrics, timeFrame, pagination, order, TagFilterExpression}

get_location_summary_list - PoP metadata only (id, label, status, linkedTests). No success rates.
    Use get_test_summary_list for health data. payload: {timeFrame, pagination}

get_test_summary_list - Health, errors, and per-location pass rates in one call. Use for all health/failure/error questions.
    Each item has locationStatusList: [{locationId, successRate, totalTestRuns, successRuns, locationDisplayLabel, locationType}].
    Uses "metrics" key. payload: {metrics: [{"metric": "success_rate", "aggregation": "MEAN", "granularity": 600}], timeFrame, pagination, TagFilterExpression}

get_synthetic_result_metadata - Discover available detail file types. params (flat): {testid, testresultid, start_time}

get_synthetic_result_detail_data - Download a detail file. Call metadata first to discover types.
    params (flat): {testid, testresultid, detail_type ("HAR"|"IMAGES"|"LOGS"|"SUBTRANSACTIONS"|"VIDEOS"), name, start_time}

ALERT (resource_type="alert"): operations: find_active, find, find_versions, create, update, delete, enable, disable, restore params: {id, synthetic_test_id, alert_ids, valid_on, created, payload}

NOTE: create/update/delete/enable/disable/restore change live alerting.
Confirm with the user before calling them.

find_active - List all active Smart Alert Configurations
    params: {synthetic_test_id (optional), alert_ids (optional; list of IDs or a comma-separated string), page (optional, default 1), page_size (optional, default 50; "pageSize" is accepted as an alias)}
    Returns: Paginated configurations with count, total, page, page_size, total_pages, has_next, has_previous fields.
    Filter by synthetic_test_id to scope to a specific test.

find - Get a specific Smart Alert Configuration by ID (may return deleted configs)
    params: {id (required), valid_on (optional Unix timestamp ms)}

find_versions - Get all versions of a Smart Alert Configuration
    params: {id (required)}

create - Create a new Smart Alert Configuration
    params: {payload (required)} — see SyntheticAlertConfig payload fields below

update - Update an existing Smart Alert Configuration (requires ALL fields)
    CRITICAL: Fetch the current config via find first, merge your changes, then submit the full payload (find response can be passed directly).
    params: {id (required), payload (required, same as create)}

delete - Delete a Smart Alert Configuration
    params: {id (required)}

enable - Enable a Smart Alert Configuration
    params: {id (required)}

disable - Disable a Smart Alert Configuration
    params: {id (required)}

restore - Restore a deleted Smart Alert Configuration to a prior version
    params: {id (required), created (required — Unix timestamp from find_versions)}

SyntheticAlertConfig payload fields:
    - name (required): str, alert title template (max 256 chars)
    - description (required): str, alert message template (max 65536 chars)
    - syntheticTestIds (required): List[str], IDs of synthetic tests to monitor
    - alertChannelIds (required): List[str], can be []
    - customPayloadFields (required): List[CustomPayloadField], can be [].
          Each entry: {"key": str (non-empty), "type": "staticString"|"dynamic"|"metricField",
          ...type-specific fields}
    - rule (required): {"alertType": "failure", "metricName": <metricId from
          get_synthetic_catalog_metrics>, "aggregation": optional, one of
          "SUM", "MEAN", "MAX", "MIN", "P25", "P50", "P75", "P90", "P95",
          "P98", "P99", "P99_9", "P99_99", "DISTINCT_COUNT", "SUM_POSITIVE",
          "PER_SECOND", "INCREASE"}
    - timeThreshold (required): {"type": "violationsInSequence",
          "violationsCount": optional int 1-12}
    - tagFilterExpression (required key): TagFilterExpressionElement object. null is
          rejected by the API (HTTP 422 "must not be null"); for no filter send
          {"type": "EXPRESSION", "logicalOperator": "AND", "elements": []}.
          Two subtypes (discriminated by "type"):
          - TAG_FILTER: {"type": "TAG_FILTER", "name": str, "entity": "NOT_APPLICABLE"|
            "SOURCE"|"DESTINATION" (use "NOT_APPLICABLE" for synthetic tags), "operator":
            one of "EQUALS","CONTAINS","NOT_EQUAL","NOT_CONTAIN","IS_EMPTY","NOT_EMPTY",
            "LESS_THAN","LESS_OR_EQUAL_THAN","GREATER_THAN","GREATER_OR_EQUAL_THAN",
            "NOT_BLANK","IS_BLANK","STARTS_WITH","ENDS_WITH","NOT_STARTS_WITH",
            "NOT_ENDS_WITH","REGEX_MATCH", "stringValue"/"numberValue"/"booleanValue"/
            "floatValue": value to match, "key": optional tag key}
            For alert configs, ALSO set "value" to the same value as the typed field
            (e.g. "stringValue": "us", "value": "us"). The API rejects a TAG_FILTER
            without it (HTTP 422 "Key value fields should be used in Tag Filters").
            This applies to alert payloads only; test_playback filters use just the typed field.
          - EXPRESSION: {"type": "EXPRESSION", "logicalOperator": "AND"|"OR",
            "elements": [list of nested TAG_FILTER or EXPRESSION objects]}
    - severity (optional): 5 (Warning) or 10 (Critical)
    - affectedLocationsCount (optional): int >= 1
    - evaluationType (optional): "PER_LOCATION" or "PER_SYNTHETIC_TEST"
    - gracePeriod (optional): int, ms the alert stays open after conditions clear
    - includeOnDemand (optional): bool

Args: resource_type: "catalog", "metrics", "settings", "test_playback", or "alert" operation: Specific operation for the resource type params: Operation-specific parameters (optional)

Returns: Dictionary with results from the appropriate tool

Examples: # catalog resource_type="catalog", operation="get_synthetic_catalog_metrics" resource_type="catalog", operation="get_synthetic_tag_catalog", params={"use_case": "FILTERING"} # metrics resource_type="metrics", operation="get_metrics_result", params={"payload": {"metrics": [{"metric": "synthetic.metricsResponseTime", "aggregation": "SUM"}], "timeFrame": {"to": 0, "windowSize": 3600000}}} # settings resource_type="settings", operation="get_synthetic_test", params={"test_name": "Login Flow"} resource_type="settings", operation="get_synthetic_tests", params={"limit": 20, "sort": "+label"} resource_type="settings", operation="get_all_datacenters", params={"status": "Online"} resource_type="settings", operation="get_location_by_id", params={"location_name": "ap-south-1(Mumbai)"} # test_playback resource_type="test_playback", operation="get_synthetic_result_analytic", params={"payload": {"syntheticMetrics": ["synthetic.metricsResponseTime", "synthetic.metricsStatus"], "analyticFunction": "LAST_VALUE", "timeFrame": {"to": 0, "windowSize": 144000000}}} resource_type="test_playback", operation="get_synthetic_result_list", params={"payload": {"syntheticMetrics": ["synthetic.metricsStatus", "synthetic.errors"], "timeFrame": {"to": 0, "windowSize": 3600000}, "TagFilterExpression": {"type": "TAG_FILTER", "name": "synthetic.locationId", "operator": "EQUALS", "entity": "NOT_APPLICABLE", "stringValue": "<location_id>"}}} resource_type="test_playback", operation="get_test_summary_list", params={"payload": {"metrics": [{"metric": "success_rate", "aggregation": "MEAN", "granularity": 600}], "timeFrame": {"to": 0, "windowSize": 1800000}}} resource_type="test_playback", operation="get_synthetic_result_metadata", params={"testid": "abc123", "testresultid": "res456"} resource_type="test_playback", operation="get_synthetic_result_detail_data", params={"testid": "abc123", "testresultid": "res456", "detail_type": "HAR"} # alert resource_type="alert", operation="find_active" resource_type="alert", operation="find_active", params={"synthetic_test_id": "CVkDqtbdHMR4pqms7K5N"} resource_type="alert", operation="find_active", params={"page": 1, "page_size": 20} resource_type="alert", operation="find", params={"id": "alert-123"} resource_type="alert", operation="find_versions", params={"id": "alert-123"} resource_type="alert", operation="create", params={"payload": {"name": "Login test failing", "description": "Fails in 2+ locations", "syntheticTestIds": ["CVkDqtbdHMR4pqms7K5N"], "alertChannelIds": [], "customPayloadFields": [], "rule": {"alertType": "failure", "metricName": "synthetic.metricsStatus", "aggregation": "SUM"}, "timeThreshold": {"type": "violationsInSequence", "violationsCount": 2}, "tagFilterExpression": {"type": "EXPRESSION", "logicalOperator": "AND", "elements": []}, "severity": 10, "affectedLocationsCount": 2, "evaluationType": "PER_LOCATION"}} resource_type="alert", operation="update", params={"id": "alert-123", "payload": <full config returned by find, with changes merged>} resource_type="alert", operation="delete", params={"id": "alert-123"} resource_type="alert", operation="enable", params={"id": "alert-123"} resource_type="alert", operation="disable", params={"id": "alert-123"} resource_type="alert", operation="restore", params={"id": "alert-123", "created": 1710658800000}

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": {
      "resource_type": "<resource_type>",
      "operation": "<operation>"
    },
    "name": "manage_synthetics"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNo
operationYes
resource_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well past the readOnlyHint=false/destructiveHint=false annotations by disclosing that alert mutations change live alerting, that get_metrics_result returns one scalar per group rather than a time series, that find may return deleted configs, and that two field-key formats exist for metrics. It also documents concrete API failure modes (HTTP 422 on null tagFilterExpression, on missing "value" in alert TAG_FILTERs, on wrong metrics key) that no annotation or schema conveys. The only tension is that a delete operation exists while destructiveHint=false, but the description flags the risk explicitly rather than contradicting it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Given ~20 operations this length is largely earned, and it is well front-loaded with a CRITICAL WORKFLOW block before any per-resource detail. There is some duplication, notably the "entity: NOT_APPLICABLE" requirement and the metrics-vs-syntheticMetrics key rule, which are each restated in two or three places; trimming those would improve scanability without losing content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Complete for a dispatcher of this complexity: every resource_type and operation has params, a return-shape note where it matters, and a runnable example. With an output schema present it does not need to describe return values, yet the pagination metadata and locationStatusList shape are still called out where they affect downstream reasoning.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and a free-form "params" object, the description carries the entire burden and does so: per-operation param lists, required vs optional fields, defaults for pagination, discriminator rules for the two TagFilterExpression subtypes, and the full SyntheticAlertConfig payload contract. It adds meaning far beyond the three-parameter schema, including the trap that the same logical input is spelled differently between metrics and test_playback.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ("Unified Instana synthetic resource manager") and immediately enumerates the five resource families (catalog, metrics, settings, test_playback, alert) with the operations each holds. An agent can map an intent to a resource_type/operation pair without opening the schema, and nothing overlaps with the sibling manage_* tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing rules: call catalog before any data query, use get_test_summary_list rather than get_metrics_result for day-by-day trends, use get_test_summary_list rather than get_location_summary_list for health data, and page via next_operation/previous_operation. It also names exclusions (page/page_size cannot combine with offset/limit) and requires user confirmation before create/update/delete/enable/disable/restore.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.