Skip to main content
Glama
Instana MCP Server

Instana MCP Server

Official
by instana

⬆️ FastMCP Upgraded to 4.1.0: Starting with this release 1.0.4, the server is built on FastMCP 4.1.0 (previously 3.4.7). If you install from source or manage your own environment, re-sync your dependencies (for example, uv sync) to pick up the new version.

🔒 SSL Enabled by Default: Starting with this release 1.0.3, SSL certificate verification is enabled by default for all outgoing Instana API calls. You can customize this behaviour (disable, supply a custom CA bundle, etc.) via CLI flag, environment variable, or config.yaml. See SSL Certificate Verification for full details.

Table of Contents

MCP Server for IBM Instana

Related MCP server: vcf-ops-mcp


The Instana MCP server enables seamless interaction with the Instana observability platform, allowing you to access real-time observability data directly within your development workflow.

It serves as a bridge between clients (such as AI agents or custom tools) and the Instana REST APIs, converting user queries into Instana API requests and formatting the responses into structured, easily consumable formats.

The server supports both Streamable HTTP and Stdio transport modes for maximum compatibility with different MCP clients. For more details, refer to the MCP Transport Modes specification.

Architecture Overview

graph LR
    subgraph "Application Host Process"
        MH[MCP Host]
        MSI[Instana MCP Server]
        MST[ProductA MCP Server]
        MSC[ProductB MCP Server]

        MH <--> MSI
        MH <--> MSC
        MH <--> MST
    end

    subgraph "Remote Service"
        II[Instana Instance]
        TI[ProductA Instance]
        CI[ProductB Instance]

        MSI <--> II
        MST <--> TI
        MSC <--> CI
    end

    subgraph "LLM"
        L[LLM]
        MH <--> L
    end

Workflow

Consider a simple example: You're using an MCP Host (such as Claude Desktop, VS Code, or another client) connected to the Instana MCP Server. When you request information about Instana alerts, the following process occurs:

  1. The MCP client retrieves the list of available tools from the Instana MCP server

  2. Your query is sent to the LLM along with tool descriptions

  3. The LLM analyzes the available tools and selects the appropriate one(s) for retrieving Instana alerts

  4. The client executes the chosen tool(s) through the Instana MCP server

  5. Results (latest alerts) are returned to the LLM

  6. The LLM formulates a natural language response

  7. The response is displayed to you

sequenceDiagram
    participant User
    participant ChatBot as MCP Host
    participant MCPClient as MCP Client
    participant MCPServer as Instana MCP Server
    participant LLM
    participant Instana as Instana Instance

    ChatBot->>MCPClient: Load available tools from MCP Server
    MCPClient->>MCPServer: Request available tool list
    MCPServer->>MCPClient: Return list of available tools
    User->>ChatBot: Ask "Show me the latest alerts from Instana for application robot-shop"
    ChatBot->>MCPClient: Forward query
    MCPClient->>LLM: Send query and tool description
    LLM->>MCPClient: Select appropriate tool(s) for Instana alert query
    MCPClient->>MCPServer: Execute selected tool(s)
    MCPServer->>Instana: Retrieve alerts for application robot-shop
    MCPServer->>MCPClient: Send alerts of Instana result
    MCPClient->>LLM: Forward alerts of Instana
    LLM->>ChatBot: Generate natural language response for Instana alerts
    ChatBot->>User: Show Instana alert response

Prerequisites

  • python - version 3.10 or higher

  • pip - version 21.3 or higher (only required for pypi based installation)

  • uv - version 0.11.6 or higher (only required for development installation)

Installing Instana MCP server

The easiest way to use mcp-instana is to install it directly from PyPI:

pip install mcp-instana

After installation, you can run the server using the mcp-instana command directly.

Option 2: Development Installation

For development or local customization, you can clone and set up the project locally.

Installing uv

This project uses uv, a fast Python package installer and resolver. To install uv, you have several options:

Using pip:

pip install uv

Using Homebrew (macOS):

brew install uv

For more installation options and detailed instructions, visit the uv documentation.

Setting Up the Environment

After installing uv, set up the project environment by running:

uv sync

Authentication

The server authenticates to Instana with an Instana API token. How you supply the token depends on the transport mode.

Transport mode

How credentials are provided

Streamable HTTP

HTTP headers sent with every request

Stdio

Environment variables (INSTANA_BASE_URL, INSTANA_API_TOKEN) or the --base-url / --api-token CLI flags

Streamable HTTP Mode

In Streamable HTTP mode, pass the Instana credentials as HTTP headers on every request. This approach enhances security and flexibility by:

  • Avoiding credential storage in server-side environment variables

  • Enabling the use of different credentials (and different Instana instances) for different clients or requests

  • Supporting shared environments where environment variable modification is restricted

Required Headers:

Header

Description

instana-base-url

URL of your Instana instance. Must start with https:// (or http:// for local development and testing only).

instana-api-token

Your Instana API token

Example:

--header "instana-base-url: https://your-instance.instana.io"
--header "instana-api-token: your-api-token"

See the MCP client guides for how to set these headers in your client's configuration.

Authentication Flow:

  1. The client sends instana-base-url and instana-api-token headers with each request.

  2. The server validates that both headers are present and that the base URL is well formed.

  3. The server calls the Instana API on behalf of the client using the supplied token.

  4. Requests with missing or invalid credentials fail with an authentication error and no call is made to Instana.

Stdio Mode

In Stdio mode there are no HTTP requests to carry headers, so credentials are read when the server starts. Set them as environment variables:

export INSTANA_BASE_URL="https://your-instana-instance.instana.io"
export INSTANA_API_TOKEN="your_instana_api_token"

Alternatively, pass --base-url and --api-token on the command line. CLI flags take precedence over the environment variables. The server will not start in Stdio mode if either value is missing.

Security Recommendations

  • Use HTTPS for instana-base-url in any non-local environment. See SSL Certificate Verification for certificate options.

  • Do not commit API tokens to source control or share client configuration files that contain them.

  • Prefer environment variables or env blocks in your MCP client configuration over CLI flags in Stdio mode, because command-line arguments can be visible in process listings.

  • Create a dedicated API token for the MCP server, granting only the permissions it needs. Ensure the token has the permissions required to invoke the MCP tools you enable. Check here for more information.

Starting the Local MCP Server

Before configuring any MCP client (Claude Desktop, GitHub Copilot, or custom MCP clients), you need to start the local MCP server. The server supports two transport modes: Streamable HTTP and Stdio.

Server Command Options

Using the CLI (PyPI Installation)

If you installed mcp-instana from PyPI, use the mcp-instana command:

mcp-instana [OPTIONS]

Using Development Installation

For local development, use the uv run command:

uv run src/core/server.py [OPTIONS]

Available Options:

  • --transport <mode>: Transport mode (choices: streamable-http, stdio)

  • --debug: Enable debug mode with additional logging

  • --log-level <level>: Set the logging level (choices: DEBUG, INFO, WARNING, ERROR, CRITICAL)

  • --tools <categories>: Comma-separated list of tool categories to enable (e.g., infra,app,events,website). Enabling a category will also enable its related prompts. For example: --tools infra enables the infra tools and all infra-related prompts.

  • --list-tools: List all available tool categories and exit

  • --port <port>: MCP server port (default: 8080, can be overridden with PORT env var)

  • --admin-port <port>: Admin server port for health checks (default: 8601, can be overridden with ADMIN_PORT env var)

  • --verify-ssl [BOOL]: Enable or disable SSL certificate verification for outgoing Instana API calls (default: true). Pass false/0/no to disable. Equivalent to setting INSTANA_SSL_VERIFY=false.

  • --stream-read-buffer-size <SIZE>: Bytes per I/O read call used by streaming parsers (default: 65536 / 64k). Accepts a plain byte count or a human-friendly suffix: 64k, 64kb, 64m, 64mb, 64g, 64gb. Can also be set via the STREAM_READ_BUFFER_SIZE environment variable.

  • --help: Show help message and exit

Starting in Streamable HTTP Mode

Streamable HTTP mode provides a REST API interface and is recommended for most use cases.

Using CLI (PyPI Installation)

# Start with all tools enabled (default)
mcp-instana --transport streamable-http

# Start with debug logging
mcp-instana --transport streamable-http --debug

# Start with a specific log level
mcp-instana --transport streamable-http --log-level WARNING

# Start with specific tool categories only
mcp-instana --transport streamable-http --tools infra,events

# Combine options (specific log level, custom tools)
mcp-instana --transport streamable-http --log-level DEBUG --tools app,events

Using Development Installation

# Start with all tools enabled (default)
uv run src/core/server.py --transport streamable-http

# Start with debug logging
uv run src/core/server.py --transport streamable-http --debug

# Start with a specific log level
uv run src/core/server.py --transport streamable-http --log-level WARNING

# Start with specific tool and prompts categories only
uv run src/core/server.py --transport streamable-http --tools infra,events

# Start with custom port
uv run src/core/server.py --transport streamable-http --port 9000

# Combine options (specific log level, custom tools and prompts)
uv run src/core/server.py --transport streamable-http --log-level DEBUG --tools app,events

Key Features of Streamable HTTP Mode:

  • Uses HTTP headers for authentication (no environment variables needed)

  • Supports different credentials per request

  • Better suited for shared environments

  • MCP server default port: 8080

  • MCP endpoint: http://0.0.0.0:8080/mcp/

Starting in Stdio Mode

Stdio mode uses standard input/output for communication and requires environment variables for authentication.

Using CLI (PyPI Installation)

# Set environment variables first
export INSTANA_BASE_URL="https://your-instana-instance.instana.io"
export INSTANA_API_TOKEN="your_instana_api_token"

# Start the server (stdio is the default if no transport specified)
mcp-instana

# Or explicitly specify stdio mode
mcp-instana --transport stdio

Using Development Installation

# Set environment variables first
export INSTANA_BASE_URL="https://your-instana-instance.instana.io"
export INSTANA_API_TOKEN="your_instana_api_token"

# Start the server (stdio is the default if no transport specified)
uv run src/core/server.py

# Or explicitly specify stdio mode
uv run src/core/server.py --transport stdio

Key Features of Stdio Mode:

  • Uses environment variables for authentication (can be set via export or .env file)

  • Direct communication via stdin/stdout

  • Required for certain MCP client configurations

Tool Categories

You can optimize server performance by enabling only the tools and prompts categories you need:

Using CLI (PyPI Installation)

# List all available categories
mcp-instana --list-tools

# Enable specific categories
mcp-instana --transport streamable-http --tools infra,app
mcp-instana --transport streamable-http --tools events

Using Development Installation

# List all available categories
uv run src/core/server.py --list-tools

# Enable specific categories
uv run src/core/server.py --transport streamable-http --tools infra,app
uv run src/core/server.py --transport streamable-http --tools events

SSL Certificate Verification

SSL certificate verification for outgoing Instana API calls is enabled by default. This applies to both Streamable HTTP and Stdio transport modes.

To disable SSL certificate verification (e.g. for environments with self-signed or internal certificates), use the --verify-ssl CLI option, the INSTANA_SSL_VERIFY environment variable, or the sslVerify key in config.yaml.

Using the CLI option

# Disable SSL verification
uv run src/core/server.py --verify-ssl false

# Explicitly enable (default behaviour, no flag needed)
uv run src/core/server.py --verify-ssl true

Using the environment variable

export INSTANA_SSL_VERIFY=false
uv run src/core/server.py

SSL verification is disabled when INSTANA_SSL_VERIFY is set to 0, false, or no (case-insensitive). Any other value, or when the variable is unset, keeps verification enabled.

Using config.yaml (SaaS / Kubernetes deployments)

# SSL verification for outbound API calls (default: true)
sslVerify: false

The sslVerify key is read by start.sh at startup and exported as INSTANA_SSL_VERIFY.

Using a custom CA bundle

When SSL verification is enabled, the system CA bundle is used by default. To use a custom CA certificate bundle, set INSTANA_CA_BUNDLE:

export INSTANA_SSL_VERIFY=true
export INSTANA_CA_BUNDLE=/path/to/ca-bundle.crt
uv run src/core/server.py

INSTANA_CA_BUNDLE is only used when SSL certificate verification is enabled.

The server logs the effective SSL verification state at startup, so you can immediately confirm whether your environment variable, CLI flag, or config file setting was picked up.

API Call Timeout

Every outgoing Instana API call is subject to a hard wall-clock timeout. If the Instana server does not respond within the deadline the call is cancelled and an error is returned immediately — no indefinitely hanging requests.

The default timeout is 180 seconds. Override it with the INSTANA_API_TIMEOUT environment variable:

export INSTANA_API_TIMEOUT=60   # 60-second deadline
uv run src/core/server.py

INSTANA_API_TIMEOUT must be a positive integer (seconds). Non-integer or non-positive values are ignored and the 180-second default is used instead.

Catalog Response Caching

The server caches catalog API responses (metrics, tags, and plugins) in-process to eliminate redundant round-trips. Catalog data is stable within a tenant — it only changes when new integrations are deployed — so responses are safe to reuse across the lifetime of a single server process.

Default TTL: 30 minutes. Each unique combination of tenant URL, method, and parameters gets its own independent cache slot. Error responses are never cached, so a transient network failure cannot poison the store.

For more details, check here

Verifying Server Status

Once started, you can verify the server is running:

For Streamable HTTP mode:

# Check MCP server
curl http://0.0.0.0:8080/mcp/

# Or with custom port
curl http://0.0.0.0:9000/mcp/

For Stdio mode: The server will start and wait for stdin input from MCP clients.

Common Startup Issues

SSL / Certificate Issues: See the SSL Certificate Verification section above for configuration options. If you encounter SSL errors with verification enabled and are using macOS, ensure your Python environment has access to system certificates:

# macOS - Install certificates for Python
/Applications/Python\ 3.13/Install\ Certificates.command

Port Already in Use: If port 8080 is already in use, specify a different port:

uv run src/core/server.py --transport streamable-http --port 9000

Missing Dependencies: Ensure all dependencies are installed:

uv sync

Setup and Usage

Supported MCP Clients

Client

Transports

Bob IDE

streamable http, stdio

Bob CLI

streamable http, stdio

Claude Desktop

streamable http, stdio

Cursor IDE

streamable http, stdio

Kiro IDE

streamable http, stdio

Kiro CLI

streamable http, stdio

Github Copilot

streamable http, stdio

Copilot CLI

streamable http, stdio

Mistral AI

streamable http

Gemini Cli

streamable http, stdio

Connecting to Multiple Instana MCP Servers

You can configure your MCP client to connect to multiple instances. Below is a sample configuration:

{
  "mcpServers": {
    "Instana MCP Server1": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://0.0.0.0:8080/mcp/",
        "--allow-http",
        "--header",
        "instana-base-url: ENV1_INSTANA_URL",
        "--header",
        "instana-api-token: ENV1_INSTANA_API_TOKEN"
      ]
    },
    "Instana MCP Server2": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://0.0.0.0:8080/mcp/",
        "--allow-http",
        "--header",
        "instana-base-url: ENV2_INSTANA_URL",
        "--header",
        "instana-api-token: ENV2_INSTANA_API_TOKEN"
      ]
    }
  }
}

To target a specific server, ensure that:

  • The server is configured with the appropriate environment name in the MCP configuration (e.g. Instana MCP Server1)

  • The prompt explicitly mentions the server/environment name.

The request will then be routed to the corresponding configured server. If no server/environment is explicitly mentioned in the prompt, MCP uses the first server defined in the configuration as the default server.

Note: If the requested server is down or unreachable, MCP behaves as expected and forwards the API failure. The user will receive the corresponding error returned by the API, indicating that the server is unavailable. MCP relies on the underlying API availability and does not perform automatic failover.

Available Tools

Tool

Category

Description

manage_applications

Application & Infrastructure

Unified tool for managing application metrics, alert configs, settings, and catalog

manage_websites

Website Monitoring

Unified smart router for website analyze, catalog, configuration, and advanced config operations

manage_custom_dashboards

Custom Dashboards

Unified tool for managing custom dashboard CRUD operations

manage_infrastructure

Infrastructure

Unified smart router for infrastructure analyze, catalog (get_plugin_schema), smart alert configurations and snapshot resource operations

manage_automation

Automation

Unified smart router for automation: browse action catalog and view execution history

manage_events

Events

Unified smart router for events monitoring: get event by ID, get events by IDs, Kubernetes events, agent monitoring events and all events

manage_slo

SLO Management

Unified smart router for SLO configurations, reports, alerts, and correction windows with intelligent timezone handling

manage_releases

Release Management

Unified smart router for release tracking: list releases with pagination and name filtering, get release details, create/update/delete releases with timezone support

manage_maintenance_windows

Maintenance Windows

Unified smart router for maintenance window lifecycle management: create, modify, close, and list maintenance windows with template support and ServiceNow integration

manage_mobile_apps

Mobile App Monitoring

Unified smart router for mobile app monitoring: analyze beacons, performance metrics, session replay, configuration, and alert management

manage_synthetics

Synthetic Monitoring

Unified smart router for synthetic monitoring: catalog, metrics, settings (read-only), and test playback results

manage_alert_channels

Alert Channels

Unified smart router for alert channels: inspect and list outbound notification integrations (Webhooks, Slack, Teams, Email, PagerDuty, etc.) with automatic secret masking

For detailed tool documentation, capabilities, and technical reference, see Tools & Examples

Tool Filtering

By default, the MCP server exposes all available tools. To reduce the number of tools presented to your MCP client, lower resource usage, and limit API exposure, you can select which tool categories are loaded or visible.

Available categories: app, infra, events, website, mobile_app, slo, synthetic, releases, maintenance_windows, automation, custom_dashboards, alert_channels

Method

Applies to

How it works

--tools <categories>

CLI (stdio and streamable HTTP)

Allowlist: load only the listed categories

--omit-tools <categories>

CLI (stdio and streamable HTTP)

Denylist: load everything except the listed categories

select-tools / omit-tools HTTP headers

Streamable HTTP only

Per-client filtering of the tools/list response, with no server restart and no effect on other clients

Both options accept comma-separated category names and can be combined: the allowlist is applied first, then the denylist removes from it.

# Load only application and infrastructure tools
mcp-instana --tools app,infra --transport streamable-http

# Load everything except SLO and maintenance window tools
mcp-instana --omit-tools slo,maintenance_windows --transport streamable-http

# List all categories and their tools
mcp-instana --list-tools

For the full list of options, including stdio mcp.json configuration, per-client HTTP header examples, and usage with a development installation, see Tool Filtering & Customizations.

Docker Deployment

The MCP Instana server can be deployed using Docker for production environments. The Docker setup is optimized for security, performance, and minimal resource usage.

Building the Docker Image

Prerequisites

  • Docker installed and running

  • Access to the project source code

Build and Run

# Ensure you are in the mcp-instana directory of your repo
# Build the optimized production image
docker build -t mcp-instana:latest .

The above command would build the image using the instructions in the Dockerfile. The default port is 8080 and transport mode is streamable-http

# Run the container (credentials are supplied via HTTP headers at request time)
docker run -p 8080:8080 mcp-instana

If you want to use a custom port on your host (ex: 9000)

# Run with a custom host port
docker run -p 9000:8080 mcp-instana

Connecting to mcp-instana container in streamable mode

Assuming your started your container using the command: docker run -p 8080:8080 mcp-instana

Your MCP Client would connect to the Host port (8080). By default, the container runs in streamable mode.

Here is a sample configuration for your MCP client:

{
  "mcpServers": {
    "Instana MCP Server": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8080/mcp",
        "--allow-http",
        "--header",
        "instana-base-url: https://your-instana-instance.instana.io",
        "--header",
            "instana-api-token: your_instana_api_token"
      ]
    }
  }
}

Connecting to mcp-instana in stdio mode

In stdio mode, you can have your MCP Client to start and connect to the container. Here you are explicitly specifying to run in stdio by providing a value for the --transport flag.

Below is a sample configuration:

{
  "mcpServers": {
    "Instana MCP Server": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "INSTANA_API_TOKEN=your_instana_api_token",
        "-e", "INSTANA_BASE_URL=https://your-instana-instance.instana.io",
        "mcp-instana",
        "--transport", "stdio"
      ]
    }
  }
}

For more details, check the Docker deployment guide here

For comprehensive Docker documentation including multi-architecture builds, .dockerignore, security best practices, and production deployment examples, see DOCKER.md.

General Issues

  • GitHub Copilot

    • If you encounter issues with GitHub Copilot, try starting/stopping/restarting the server in the mcp.json file and keep only one server running at a time.

  • Certificate Issues

    • If you encounter certificate issues, such as [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate:

      • Check that you can reach the Instana API endpoint using curl or wget with SSL verification.

        • If that works, your Python environment may not be able to verify the certificate and might not have access to the same certificates as your shell or system. Ensure your Python environment uses system certificates (macOS). You can do this by installing certificates to Python: /Applications/Python\ 3.13/Install\ Certificates.command

      • If you cannot reach the endpoint with SSL verification, try without it. If that works, check your system's CA certificates and ensure they are up-to-date.

Available Tools

12 tools
manage_alert_channelsManage Instana Alert ChannelsA
Read-only

Unified Instana alert channels manager for inspecting outbound notification integrations (Webhooks, Slack, Teams, Email, PagerDuty, Opsgenie, ServiceNow, etc.).

Operations: get_overview, get

GET_OVERVIEW - List summary of all alert channels with filtering and pagination params: {ids, kind, name_filter, page, page_size} ids: List (or comma-separated string) of specific channel IDs to retrieve (optional) kind: Filter by integration type (e.g. 'WEB_HOOK', 'EMAIL', 'SLACK', 'PAGER_DUTY', 'OPS_GENIE', 'SERVICE_NOW_WEBHOOK') (optional) name_filter: Case-insensitive substring match on channel name (optional) page: 1-based page number (default: 1) page_size: Number of channels per page (default: 20, max: 100). Results are sorted by name, then id. Returns: Paginated items containing id, kind, name, properties, and rbacTags (team associations). Credentials and secrets are masked; URLs are reduced to scheme://host/***.

GET - Get detailed configuration for a specific alert channel by ID or name params: {id, name} id: Channel ID (e.g. 'chan-123') name: Channel name (e.g. 'Production Alerts Webhook') - resolved to ID automatically Returns: Complete channel configuration with all sensitive secrets and tokens securely masked.

Examples: # List all channels operation="get_overview"

# Filter channels by type
operation="get_overview", params={"kind": "WEB_HOOK"}

# Search channels by name
operation="get_overview", params={"name_filter": "Slack"}

# Paginate overview
operation="get_overview", params={"page": 1, "page_size": 10}

# Get channel details by ID
operation="get", params={"id": "chan-abc123"}

# Get channel details by name
operation="get", params={"name": "SRE Team Webhook"}

Inputs: operation (required), params. Returns: object

manage_applicationsManage Instana Application ResourcesA

Unified Instana application resource manager for metrics, alerts, configurations, and catalog.

SCOPE: HTTP/gRPC/DB call traces, trace and span details, application service metrics, alert configs, and application perspectives.

LLM/GenAI agents: route by what's asked, not by the agent's name.

  • Trace-level data (latency, errors, spans, prompt/output content, "most recently failed" calls) → analyze here. Prompt/output content is in span attributes. Not manage_events.

  • Entity metrics (token usage, cost, throughput, "list GenAI apps") → manage_infrastructure (oTelLLM).

  • Both (e.g. ".run.workflow traces with P95 latency and tokens"): get traces here, then token metrics from manage_infrastructure, joined on agent/service name.

Resource Types: - "metrics": Query application metrics, services, and endpoints - "alert_config": Manage application-specific alert configurations - "global_alert_config": Manage global application alert configurations - "settings": Manage application configurations - "catalog": Access application tag and metric catalog information - "resources": Query application resources, services, endpoints (HTTP/gRPC services only — NOT LLM agents) - "analyze": Analyze application traces and calls — individual traces, span details, trace groups

CRITICAL WORKFLOW - ALWAYS FOLLOW THIS ORDER BEFORE METRICS/ANALYZE QUERIES: 1. FIRST: Call get_metric_catalog to get valid metrics - resource_type="catalog", operation="get_metric_catalog" - Returns: Available metrics with metricId, aggregations, and data sources

2. SECOND: Call get_tag_catalog to get valid tag names
   - resource_type="catalog", operation="get_tag_catalog"
   - params: {"use_case": "GROUPING", "data_source": "CALLS"}

3. THIRD: Use ONLY the tag names and metrics returned from catalog operations
   - Metric names must match those from get_metric_catalog
   - Tag names must match those from get_tag_catalog
   - NEVER guess or invent tag names or metric names

4. FOURTH: Call metrics operations with validated tag names and metrics
   - Example invalid: "calls.error.count" (not in catalog)
   - Example valid: "calls" with aggregation "SUM"

METRICS (resource_type="metrics"): operation: get_grouped_calls_metrics params: {time_frame, metrics, tag_filter_expression, group, order, pagination, include_internal, include_synthetic}

Aggregations: SUM, MEAN, MAX, MIN, P25, P50, P75, P90, P95, P98, P99, DISTINCT_COUNT, SUM_POSITIVE
Operators: EQUALS, NOT_EQUAL, CONTAINS, NOT_CONTAIN, STARTS_WITH, ENDS_WITH, GREATER_THAN, GREATER_OR_EQUAL_THAN, LESS_THAN, LESS_OR_EQUAL_THAN, NOT_EMPTY, IS_EMPTY

time_frame: {"to": <timestamp_or_datetime>, "windowSize": <milliseconds>}
    - to: Unix timestamp (ms) OR datetime string (e.g., "19 March 2026, 2:47 PM|IST")
    - windowSize: Duration in milliseconds (default: 3600000 = 1 hour)
    - CRITICAL: Never pass "to": 0. Zero is Unix epoch (1970-01-01) and returns no data.
      Omit "to" entirely when the user means "now", as "to" is OPTIONAL — the API defaults to the current time.

tag_filter_expression: CRITICAL - Entity field is REQUIRED for ALL tag filters

ENTITY FIELD VALUES:

"SOURCE" or "DESTINATION" → Tag identifies an infrastructure/service component
  (what/where: hosts, services, containers, databases, endpoints)
  (catalog hint: canApplyToSource/canApplyToDestination = true)

"NOT_APPLICABLE" → Tag describes call behavior or metadata
  (how/what happened: call metrics, trace properties, geo data, business context)
  (catalog hint: canApplyToSource/canApplyToDestination = false)

Never omit entity field or set to null - it is MANDATORY.

Examples:
  * Entity component: {"type": "TAG_FILTER", "name": "service.name", "entity": "DESTINATION", ...}
  * Call metadata: {"type": "TAG_FILTER", "name": "call.latency", "entity": "NOT_APPLICABLE", ...}
  * Geographic: {"type": "TAG_FILTER", "name": "geo.country", "entity": "NOT_APPLICABLE", ...}

ALERT_CONFIG (resource_type="alert_config"): operations: find_active, find_versions, find, create, update, delete, enable, disable, restore, update_baseline params: {application_id OR application_name, id, alert_ids, valid_on, created, payload, page, page_size}

GLOBAL_ALERT_CONFIG (resource_type="global_alert_config"): operations: find_active, find_versions, find, create, update, delete, enable, disable, restore params: {application_id OR application_name, id, alert_ids, valid_on, created, payload, page, page_size}

PAGINATION (alert_config / global_alert_config find_active, settings get_all): alert_config / global_alert_config find_active return page 1 (10 items) by default. settings get_all returns every item unless page/page_size is given. Paged responses carry a pagination envelope ({page, page_size, total_items, total_pages, has_more, has_previous, next_operation, previous_operation}). To change page, call the same resource_type with operation=<next_operation or previous_operation> (e.g. "page_2") and the same params. Do not track page numbers yourself.

SETTINGS (resource_type="settings"): operations: get_all, get, create, update, delete params: {resource_subtype, id, application_name, service_name, service_id, payload, request_body, page, page_size} get_all is paged only when page/page_size is given (see PAGINATION). resource_subtypes: "application" get_all / get (resource_subtype="application") results include a markdown "link" per application. ALWAYS show each application name using its 'link' field verbatim (markdown) so it opens in the Instana UI. NEVER shorten, rebuild or drop the URL.

Creating application (resource_subtype="application", operation="create"):
REQUIRED: label | OPTIONAL: scope, boundaryScope, accessRules, tagFilterExpression
Minimal: params={"resource_subtype": "application", "payload": {"label": "My App"}}

RESOURCES (resource_type="resources"): ❌ NOT FOR LLM/GenAI agents — use manage_infrastructure with plugin="oTelLLM" for those. This covers HTTP/gRPC/database application services and endpoints only. operations: get_applications, get_services, get_application_services, get_application_endpoints params: {application_id, service_id, endpoint_id, name_filter, types, technologies, application_boundary_scope, include_snapshot_ids} get_applications - Get application perspectives (not LLM/GenAI entities) params: {name_filter, application_boundary_scope} Returns: Paginated list of applications with their configurations and metadata get_services - Get all services for application monitoring (HTTP/gRPC services only — NOT AI agents or GenAI apps) params: {name_filter, include_snapshot_ids} Returns: Paginated list of services across all applications get_application_services - Get services for a specific application perspective params: {application_id, service_id, name_filter, application_boundary_scope, include_snapshot_ids} Returns: Paginated services filtered by application context. Each service includes a markdown "link"; ALWAYS show service names using the 'link' field verbatim (markdown). get_application_endpoints - Get endpoints for an application service params: {application_id, service_id, endpoint_id, name_filter, types, technologies, application_boundary_scope} Returns: Paginated endpoints with type and technology metadata

CATALOG (resource_type="catalog"): operations: get_tag_catalog, get_metric_catalog params: {use_case, data_source, var_from}

get_metric_catalog - Get application metrics catalog with metadata (metricId, label, aggregations, beaconTypes)
get_tag_catalog - Get valid tag names for use_case and data_source
    Valid use_case: "GROUPING", "FILTERING", "SERVICE_MAPPING", "SMART_ALERTS"
    Valid data_source: "CALLS", "TRACES"

ANALYZE (resource_type="analyze"): Use for individual distributed traces, span-level details, and trace group aggregations (P95 latency, error rate, call counts by endpoint or service). NOT for aggregated oTelLLM entity metrics (token counts, cost) — use manage_infrastructure for those. operations: get_all_traces, get_trace_details, get_trace_groups

time_frame: {"to": <timestamp_or_datetime>, "windowSize": <milliseconds>}
    - to: Unix timestamp in milliseconds OR datetime string (e.g., "19 March 2026, 2:47 PM|IST")
    - If timezone not specified in datetime string, defaults to UTC
    - windowSize: Duration in milliseconds (default: 3600000 = 1 hour)
    - CRITICAL: Never pass "to": 0. Zero is Unix epoch (1970-01-01) and returns no data.
      Omit "to" entirely when the user means "now", as "to" is OPTIONAL — the API defaults to the current time.

get_all_traces - params: {payload}
    payload: {timeFrame, includeInternal, includeSynthetic, tagFilterExpression, pagination, order}
    timeFrame.to: Unix timestamp (ms) OR datetime string with timezone

get_trace_details - params: {id, retrievalSize, offset, ingestionTime}
    Returns: items, itemCount, canLoadMore, cursor for pagination

get_trace_groups - params: {payload}
    payload: {group, metrics, timeFrame, tagFilterExpression, pagination, order, includeInternal, includeSynthetic}
    NOTE: 'group' and 'metrics' are mandatory payload fields.
    The 'group' object must include 'groupbyTag' and 'groupbyTagEntity'.
    Supported groupbyTag values are 'trace.endpoint.name' and 'trace.service.name'.
    Allowed groupbyTagEntity values are 'NOT_APPLICABLE', 'DESTINATION', and 'SOURCE'.

    CRITICAL: The "calls" metric is NOT supported for trace operations. Use "traces" or other trace-specific metrics.
    Use get_metric_catalog first to look up valid metric names and aggregations as described in the critical workflow.

Args: resource_type: "metrics", "alert_config", "global_alert_config", "settings", "catalog", "resources", or "analyze" operation: Specific operation for the resource type params: Operation-specific parameters (optional) ctx: MCP context (internal)

Returns: Dictionary with results from the appropriate tool

Examples: # CATALOG operations resource_type="catalog", operation="get_metric_catalog" resource_type="catalog", operation="get_tag_catalog", params={"use_case": "GROUPING", "data_source": "CALLS", "var_from": 1710658800000}

# METRICS operations
resource_type="metrics", operation="get_grouped_calls_metrics", params={"metrics": [{"metric": "calls", "aggregation": "SUM"}, {"metric": "latency", "aggregation": "MEAN"}], "tag_filter_expression": {"type": "TAG_FILTER", "name": "application.name", "operator": "EQUALS", "entity": "DESTINATION", "value": "All Services"}, "group": {"groupbyTag": "service.name", "groupbyTagEntity": "DESTINATION"}, "time_frame": {"to": 1710658800000, "windowSize": 3600000}, "order": {"by": "calls", "direction": "DESC"}, "pagination": {"page": 1, "pageSize": 50}, "include_internal": False, "include_synthetic": False}

# ALERT_CONFIG operations
resource_type="alert_config", operation="find_active", params={"application_name": "All Services", "alert_ids": ["alert-1", "alert-2"]}
resource_type="alert_config", operation="find_versions", params={"application_id": "app-123", "id": "alert-456"}
resource_type="alert_config", operation="find", params={"application_id": "app-123", "id": "alert-456", "valid_on": 1710658800000}
resource_type="alert_config", operation="create", params={"application_id": "app-123", "payload": {"name": "High Error Rate", "severity": 5}}
resource_type="alert_config", operation="update", params={"application_id": "app-123", "id": "alert-456", "payload": {"name": "Updated Alert"}}
resource_type="alert_config", operation="delete", params={"application_id": "app-123", "id": "alert-456"}
resource_type="alert_config", operation="enable", params={"application_id": "app-123", "id": "alert-456"}
resource_type="alert_config", operation="disable", params={"application_id": "app-123", "id": "alert-456"}
resource_type="alert_config", operation="restore", params={"application_id": "app-123", "id": "alert-456", "created": 1710658800000}
resource_type="alert_config", operation="update_baseline", params={"application_id": "app-123", "id": "alert-456"}

# GLOBAL_ALERT_CONFIG operations
resource_type="global_alert_config", operation="find_active", params={"application_name": "All Services"}
resource_type="global_alert_config", operation="find_versions", params={"application_id": "app-123", "id": "alert-789"}
resource_type="global_alert_config", operation="find", params={"application_id": "app-123", "id": "alert-789", "valid_on": 1710658800000}
resource_type="global_alert_config", operation="create", params={"application_id": "app-123", "payload": {"name": "Global Alert"}}
resource_type="global_alert_config", operation="update", params={"application_id": "app-123", "id": "alert-789", "payload": {"name": "Updated Global Alert"}}
resource_type="global_alert_config", operation="delete", params={"application_id": "app-123", "id": "alert-789"}
resource_type="global_alert_config", operation="enable", params={"application_id": "app-123", "id": "alert-789"}
resource_type="global_alert_config", operation="disable", params={"application_id": "app-123", "id": "alert-789"}
resource_type="global_alert_config", operation="restore", params={"application_id": "app-123", "id": "alert-789", "created": 1710658800000}

# SETTINGS operations
resource_type="settings", operation="get_all", params={"resource_subtype": "application"}
resource_type="settings", operation="get", params={"resource_subtype": "application", "application_name": "My App"}
resource_type="settings", operation="create", params={"resource_subtype": "application", "payload": {"label": "My App", "scope": "INCLUDE_ALL_DOWNSTREAM", "boundaryScope": "ALL"}}
resource_type="settings", operation="update", params={"resource_subtype": "application", "id": "config-123", "payload": {"label": "Updated App"}}
resource_type="settings", operation="delete", params={"resource_subtype": "application", "id": "config-123"}

# RESOURCES operations
resource_type="resources", operation="get_applications", params={"name_filter": "My App"}
resource_type="resources", operation="get_services", params={"name_filter": "My Service", "include_snapshot_ids": True}
resource_type="resources", operation="get_application_services", params={"application_id": "app-123", "service_id": "svc-456", "name_filter": "API"}
resource_type="resources", operation="get_application_endpoints", params={"application_id": "app-123", "service_id": "svc-456", "endpoint_id": "ep-789", "name_filter": "/api/users", "types": ["HTTP"], "technologies": ["Java"]}

# ANALYZE operations
resource_type="analyze", operation="get_all_traces", params={"payload": {"timeFrame": {"windowSize": 3600000}, "includeInternal": True, "includeSynthetic": False, "pagination": {"retrievalSize": 200}}}
resource_type="analyze", operation="get_trace_details", params={"id": "trace-123", "retrievalSize": 100, "offset": 0, "ingestionTime": 1725519793}
resource_type="analyze", operation="get_trace_groups", params={"payload": {"group": {"groupbyTag": "trace.service.name", "groupbyTagEntity": "DESTINATION"},  "includeInternal": True, "includeSynthetic": False, "metrics": [{"metric": "traces", "aggregation": "SUM"}], "timeFrame": {"to": 1710658800000, "windowSize": 3600000}}}

Inputs: operation (required), resource_type (required), params. Returns: object

manage_automationManage Instana Automation ActionsA
Read-only

Unified Instana automation action manager for catalog and execution history.

Resource Types:

  • "catalog": Browse and search automation actions

  • "history": View action execution history

CATALOG (resource_type="catalog"): operations: get_actions, get_action_details, get_action_matches, get_action_matches_by_id_and_time_window, get_action_types, get_action_tags

List all actions:
operation="get_actions"

Get action details:
operation="get_action_details", params={"action_id": "action-uuid"}

Search for matching actions:
operation="get_action_matches"
params:
    - payload (required): dict with "name" and/or "description" fields
    - target_snapshot_id (optional): snapshot ID to filter results
Example: params={"payload": {"name": "CPU spends significant time waiting for input/output", "description": "Checks whether the system spends significant time waiting for input/output."}, "target_snapshot_id": "snapshot-id"}

Get action matches by ID and time window:
operation="get_action_matches_by_id_and_time_window"
params:
    - application_id (optional): application ID (either this or snapshot_id required)
    - snapshot_id (optional): snapshot ID (either this or application_id required)
    - to (optional): timestamp - milliseconds OR datetime string (e.g., "19 March 2026, 2:47 PM|IST")
        If timezone not specified, defaults to UTC
    - window_size (optional): time window in milliseconds
Example: params={"application_id": "app-123", "snapshot_id": "snap-456", "to": "19 March 2026, 2:47 PM|IST", "window_size": 3600000}

Get action types:
operation="get_action_types"

Get action tags:
operation="get_action_tags"

HISTORY (resource_type="history") operations: list, get_details

List action instances:
operation="list"
params (all optional):
    - window_size: time window in milliseconds
    - to: timestamp - milliseconds OR datetime string (e.g., "19 March 2026, 2:47 PM|IST")
        If timezone not specified, defaults to UTC
    - page: page number
    - page_size: items per page
    - target_snapshot_id: filter by snapshot ID
    - event_id: filter by event ID
    - event_specification_id: filter by event specification ID
    - search: search text
    - types: list of action types
    - action_statuses: list of statuses (e.g., ["SUCCESS", "FAILED"])
    - order_by: column name for sorting
    - order_direction: "ASC" or "DESC"
Example: params={"window_size": 3600000, "to": 1234567890000, "page": 1, "page_size": 50, "target_snapshot_id": "snapshot-id", "event_id": "event-id", "event_specification_id": "spec-id", "search": "search text", "types": ["type1", "type2"], "action_statuses": ["SUCCESS", "FAILED"], "order_by": "column_name", "order_direction": "ASC"}

Get action instance details:
operation="get_details"
params:
    - action_instance_id (required): instance UUID
    - window_size (optional): time window in milliseconds (default: 10 minutes)
    - to (optional): timestamp - milliseconds OR datetime string (e.g., "19 March 2026, 2:47 PM|IST")
        If timezone not specified, defaults to UTC
Example: params={"action_instance_id": "instance-uuid", "window_size": 600000, "to": "19 March 2026, 2:47 PM|IST"}

Args: resource_type: "catalog" or "history" operation: Specific operation for the resource type params: Operation-specific parameters (optional) ctx: MCP context (internal)

Returns: Dictionary with results from the appropriate tool

Examples: resource_type="catalog", operation="get_actions" resource_type="catalog", operation="get_action_matches", params={"payload": {"name": "CPU", "description": "monitoring"}} resource_type="catalog", operation="get_action_matches_by_id_and_time_window", params={"application_id": "app-123", "to": "19 March 2026, 2:47 PM|IST", "window_size": 3600000} resource_type="history", operation="list", params={"window_size": 3600000, "to": 1234567890000, "page_size": 20} resource_type="history", operation="get_details", params={"action_instance_id": "instance-uuid", "to": "19 March 2026, 2:47 PM|IST"}

Inputs: operation (required), resource_type (required), params. Returns: object

manage_custom_dashboardsManage Instana Custom DashboardsA

Unified Instana custom dashboard manager for CRUD operations.

Operations: get_all, get, create, update, delete, get_shareable_users, get_shareable_api_tokens

Parameters (params dict):

  • dashboard_id: Dashboard ID (for get, update, delete only)

  • custom_dashboard: Dashboard config (for create, update) - see model below

  • query: Search filter (for get_all)

  • page_size: Items per page (for get_all, optional)

  • page: Page number, 1-indexed (for get_all, optional)

  • with_total_hits: Include total count (for get_all, optional; defaults to True when page/page_size is given)

Pagination: get_all with page/page_size returns pagination metadata ({page, page_size, total_items, total_pages, has_more, has_previous, next_operation, previous_operation}). To change page, call operation=<next_operation or previous_operation> (e.g. "page_2") with the same params.

Note: get_shareable_users and get_shareable_api_tokens return ALL users/tokens globally, not for a specific dashboard

CustomDashboard Model:

  • title: string (min 1 char) - REQUIRED

  • accessRules: array[1-64] of {accessType: "READ"|"READ_WRITE", relationType: "USER"|"API_TOKEN"|"ROLE"|"TEAM"|"GLOBAL", relatedId: string|null} - defaults to global READ_WRITE if omitted

  • widgets: array[0-128] of {id: string(max 64), type: string(min 1), config: object} - defaults to [] if omitted

Widget Fields (all optional except id, type, config): title (string), x (int 0-11), y (int >=0), width (int 1-12), height (int >=1)

Examples: get_all: operation="get_all", params={"page_size": 20, "query": "prod"} get: operation="get", params={"dashboard_id": "abc123"} create: operation="create", params={"custom_dashboard": {"title": "My Dashboard", "accessRules": [{"accessType": "READ_WRITE", "relationType": "GLOBAL"}], "widgets": []}} create with widget: operation="create", params={"custom_dashboard": {"title": "Metrics", "accessRules": [{"accessType": "READ_WRITE", "relationType": "GLOBAL"}], "widgets": [{"id": "w1", "type": "chart", "config": {"metric": "latency"}, "x": 0, "y": 0, "width": 6, "height": 4}]}} update: operation="update", params={"dashboard_id": "abc123", "custom_dashboard": {"title": "Updated", "accessRules": [{"accessType": "READ_WRITE", "relationType": "GLOBAL"}], "widgets": []}} delete: operation="delete", params={"dashboard_id": "abc123"}

Inputs: operation (required), params. Returns: object

manage_eventsManage Instana Events ResourcesA

Unified Instana events resource manager for events monitoring operations.

Operations: - "get_events": Get all events - "get_event": Get a specific event by ID - "get_kubernetes_info_events": Get Kubernetes info events with detailed analysis - "get_agent_monitoring_events": Get agent monitoring events with detailed analysis - "get_events_by_ids": Get multiple events by their IDs

Parameters (params dict):

  • MANDATORY: If NONE of from_time, to_time, or time_range are provided, defaults to the last 10 minutes

  • For "get_event" and "get_events_by_ids", pass flat params:

    • event_id: Event ID (required for get_event)

    • event_ids: List of event IDs or comma-separated string (required for get_events_by_ids)

  • For "get_kubernetes_info_events" and "get_agent_monitoring_events", pass flat params:

    • from_time: Start timestamp - milliseconds OR datetime string (e.g., "19 March 2026, 2:47 PM|IST" or "19 March 2026, 2:47 PM") If timezone not specified in datetime string, defaults to UTC

    • to_time: End timestamp - milliseconds OR datetime string (e.g., "19 March 2026, 2:47 PM|IST" or "19 March 2026, 2:47 PM") If timezone not specified in datetime string, defaults to UTC

    • time_range: Natural language time range (e.g., "last 10 minutes", "last 2 days"). DEFAULT when omitted: "last 10 minutes"

    • query: Optional query string for agent monitoring events

    • max_events: Maximum number of events to process for analysis (optional, default 50) NOTE: This is a post-processing limit, not an API parameter

  • For "get_events", pass a nested filters object:

    • filters: Dictionary containing event filters.

      • from_time: Start timestamp - milliseconds OR datetime string

      • to_time: End timestamp - milliseconds OR datetime string

      • time_range: Natural language time range (e.g., "last 10 minutes", "last 2 days"). DEFAULT when omitted: "last 10 minutes"

      • query: Optional query string

      • max_events: Maximum number of events to process for analysis (optional, default 50)

      • filter_event_updates: Boolean flag to filter results to only show events with state changes within timeframe (optional, default True)

      • exclude_triggered_before: Boolean flag to exclude events triggered before the timeframe (optional, default True) NOTE: This is a boolean flag, not a timestamp

      • event_type_filters: List of event type filters (optional, e.g., ["INCIDENT", "ISSUE", "CHANGE"]). NOTE: Allowed values: INCIDENT, ISSUE, CHANGE. Invalid values will result in an error.

      • entity_type: Affected entity type to filter by (optional)

        • Allowed values (case-insensitive): "INFRASTRUCTURE", "SERVICE", "APPLICATION", "ENDPOINT"

        • For infrastructure incidents (hosts, docker, kubernetes, etc.): Use "INFRASTRUCTURE"

        • For application incidents: Use "APPLICATION"

        • For service incidents: Use "SERVICE"

        • For endpoint incidents: Use "ENDPOINT"

      • entity_name: Affected entity name (category/type) to filter by (optional, supports partial matches)

        • Examples: "Kubernetes Pod", "Kubernetes Deployment", "Process", "IBM MQ Subscription", "IBM MQ Queue Usage", "Service", "Application", "Endpoint"

        • This represents the human-readable category/type of the entity, not the specific instance name

      • entity_label: Specific entity instance identifier to filter by (optional, supports partial matches)

        • Examples: "qotd-load/qotd-load-7fd7f4c4b8-46z7c", "recommendation-agent", "POST /pay/{id}", "All Services"

        • This is the actual name/identifier of the specific entity instance

      • state: Event state to filter by (e.g., "open", "closed", "manually closed") (optional)

      • problem: Problem description to filter events by (e.g., "CPU usage high", "High error rate", "online") (optional)

      • severity: Event severity to filter by (exact match only). (optional) NOTE: Allowed values (strict): -1 → change (informational events), 5 → warning, 10 → critical.

      • event_specification_id: Filter events by event specification ID (optional)

      • rca: Boolean flag to filter events by root cause analysis availability (optional)

        • Set to true to return only events where probableCause.found is true (events with RCA)

        • Set to false to return only events where probableCause.found is false or missing (events without RCA)

        • If not provided, returns all events regardless of RCA status

Args: operation: Operation to perform params: Operation-specific parameters (optional) ctx: MCP context (internal)

Returns: Dictionary with results from the appropriate tool

Examples: operation="get_event", params={"event_id": "1a2b3c4d5e6f"} operation="get_kubernetes_info_events", params={"time_range": "last 2 hours", "max_events": 50} operation="get_agent_monitoring_events", params={"query": "Monitoring issue", "from_time": "19 March 2026, 2:47 PM|IST", "to_time": "20 March 2026, 2:47 PM|IST", "max_events": 100} operation="get_events", params={"filters": {"event_type_filters": ["INCIDENT"]}} # no time_range → defaults to last 10 minutes operation="get_events", params={"filters": {"event_type_filters": ["INCIDENT"], "entity_type": "service", "entity_name": "payment-service", "entity_label": "payment-service-v2", "state": "open", "problem": "High error rate", "severity": 10, "max_events": 50, "filter_event_updates": True, "exclude_triggered_before": False}} operation="get_events_by_ids", params={"event_ids": ["1a2b3c4d5e6f", "7g8h9i0j1k2l"]}

Inputs: operation (required), params. Returns: object

manage_infrastructureManage Instana Infrastructure ResourcesA

Unified Instana infrastructure resource manager for comprehensive infrastructure monitoring.

Also the home for aggregated LLM/GenAI entity metrics (token usage, cost, throughput, GenAI app listings). Percentile latency (P95/P99) and trace/span data → manage_applications. Use plugin="oTelLLM" for catalog/resources and type="oTelLLM" in analyze payloads. Agent names vary. A filter on the label tag can match the entity but return NO metric values (empty metrics); that is not zero usage. Match by label in the results of an unfiltered query, or filter by a metric tag such as metric.tag.service_name (oTelLLM).

Resource Types: - "analyze": Query infrastructure entity data with grouping or filtering - "catalog": Get available plugins, metrics, and tags for infrastructure monitoring - "resources": Get snapshot details and monitoring state - "alert_config": Manage Instana Infrastructure Smart Alert configurations (CRUD)

RECOMMENDED WORKFLOW FOR ANALYZE: 1. FIRST: Call get_plugins to discover available entity types - Returns list of plugins with their IDs - these IDs are required for subsequent calls - Example: [{"id": "plugin_name1", ...}, {"id": "plugin_name2", ...}]

2. SECOND: Call get_plugin_schema with a VALID plugin ID from step 1
   - Combines get_metrics + get_tag_catalog into ONE efficient call
   - IMPORTANT: Plugin ID must be from get_plugins - invalid IDs return HTTP 400
   - Returns: {"metrics": ["memory.usage", ...], "tags": ["tag.name", ...]}
   - tagFilterExpression is REQUIRED by the Instana API — omitting it causes HTTP 422. Always provide one; use an empty EXPRESSION to match all entities

3. THIRD: Use the discovered entity types, metrics, and tags in analyze operations
   - Build queries with proper type, metrics, and tagFilterExpression
   - The router auto-normalizes tagFilterExpression format to prevent HTTP 422 errors

ANALYZE (resource_type="analyze"): operations: get_entities, get_entity_groups params: {payload}

IMPORTANT AUTO-ROUTING: The router automatically detects the correct endpoint based on payload:
- If payload contains "groupBy" → automatically routes to get_entity_groups endpoint
- If payload does NOT contain "groupBy" → automatically routes to get_entities endpoint
You can specify either operation, but the router will auto-correct based on payload content.

Aggregations: MAX, MEAN, MIN, SUM
Operators: EQUALS, NOT_EQUAL, CONTAINS, NOT_CONTAIN, STARTS_WITH, ENDS_WITH, GREATER_THAN, GREATER_OR_EQUAL_THAN, LESS_THAN, LESS_OR_EQUAL_THAN

payload (required): Complete request payload as dictionary
    - type (required): Entity type from get_plugins
    - metrics (required): Array of metric objects
        - metric (required): Metric name from get_metrics
        - granularity (required): Time granularity in milliseconds (e.g., 3600000 for 1 hour)
        - aggregation (required): Aggregation type (MAX, MEAN, MIN, SUM)
    - timeFrame (required): Time range for query
        - windowSize (required): Duration in milliseconds (e.g., 3600000 for 1 hour)
        - to (optional): End timestamp in milliseconds (default: now)
    - tagFilterExpression (REQUIRED): Filter expression for entities — API returns HTTP 422 if omitted. Use {"type": "EXPRESSION", "logicalOperator": "AND", "elements": []} to match all entities
        - type: "TAG_FILTER" for single filter, "EXPRESSION" for multiple
        - entity: "NOT_APPLICABLE" (required for TAG_FILTER)
        - name: Tag name from get_tag_catalog
        - operator: Filter operator (EQUALS, CONTAINS, etc.)
        - value: Filter value
        - logicalOperator: "AND" or "OR" (for EXPRESSION type)
        - elements: Array of TAG_FILTER objects (for EXPRESSION type)
    - pagination: Pagination settings
        - retrievalSize: Number of items to retrieve (default: 200 for entities, 20 for groups)
    - groupBy (optional, for get_entity_groups only): Array of tag names from get_tag_catalog
    - order (optional, for get_entity_groups only): Ordering settings
        - by: Field to order by (e.g., "label")
        - direction: "ASC" or "DESC"

get_entities - Get individual infrastructure entities with metrics
get_entity_groups - Get grouped infrastructure entities with aggregated metrics (requires groupBy parameter)

CATALOG (resource_type="catalog"): operations: get_plugins, get_plugin_schema, get_metrics, get_tag_catalog params: {plugin, filter}

get_plugins - Get all available entity types (plugins) in your Instana installation
    Returns: List of plugin IDs that can be used as entity types
    This is the FIRST step - discover what entity types are available in your environment

get_plugin_schema - Get complete schema (metrics + tags) for a plugin in ONE call (RECOMMENDED)
    - plugin (required): Plugin ID from get_plugins (e.g., "host", "jvmRuntimePlatform", "oTelLLM")
    - filter (optional): "builtin" or "custom" to filter metric types
    Returns: Dictionary with both metrics and tags for the plugin
    {
        "plugin": "host",
        "metrics": ["cpu.used", "memory.used", ...],
        "tags": {"host.name": {...}, "host.type": {...}, ...},
        "summary": {"total_metrics": 50, "total_tags": 25}
    }
    This COMBINES get_metrics and get_tag_catalog into a single call

get_metrics - Get infrastructure metrics catalog for a specific plugin
    - plugin (required): Plugin ID from get_plugins (e.g., "host", "jvmRuntimePlatform", "oTelLLM")
    - filter (optional): "builtin" or "custom" to filter metric types
    Returns: List of metric names available for the plugin
    Use returned metric names exactly in analyze operations

get_tag_catalog - Get valid tag names for a specific plugin
    - plugin (required): Plugin ID from get_plugins (e.g., "host", "kubernetesPod", "oTelLLM")
    Returns: Available tag names for filtering and grouping
    Use returned tag names exactly in analyze operations

RESOURCES (resource_type="resources"): operations: get_snapshot, get_snapshots params: {snapshot_id, to_time, window_size, query, from_time, size, plugin, offline, detailed}

get_snapshot - Get detailed information for a specific snapshot ID
    - snapshot_id (required): The snapshot ID to retrieve details for
    - to_time (optional): End timestamp in milliseconds
    - window_size (optional): Window size in milliseconds
    Returns: Complete snapshot details including configuration, metrics, and state
    Use this when you have a specific snapshot ID and need its full details

get_snapshots - Search and discover multiple snapshots matching criteria
    - query (optional): Search query string to filter snapshots
    - from_time (optional): Start timestamp in milliseconds (default: 1 hour ago)
    - to_time (optional): End timestamp in milliseconds (default: now)
    - size (optional): Maximum number of results to return (default: 100)
    - plugin (optional): Entity type to filter by (e.g., "host", "jvmRuntimePlatform", "oTelLLM")
    - offline (optional): Include offline snapshots (default: false)
    - detailed (optional): Return full raw data vs summarized (default: false)
    Returns: List of snapshots matching the search criteria
    Use this to discover entities, search infrastructure, or find components

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

find_active - List all active Infra Smart Alert configurations
    RECOMMENDED: Omit both alert_ids and page/page_size for a plain listing. Client-side
    pagination (default page_size=50) is always applied to the full API response to prevent
    LLM context overflow — the first page of 50 results is returned automatically.

    - alert_ids (optional): Restrict results to this explicit set of config IDs. Use when
          you already know which alerts to inspect. Omit to return all active configurations.
          NOTE: pagination params are still applied on top of the filtered set.
    - page (optional): 1-based page number for paging through the active list (default: 1).
          Only needed when the total exceeds page_size and you want a later page.
    - page_size (optional): Results per page (default: 50, max: 1000). The default of 50
          exists specifically to avoid overwhelming the LLM context with large alert lists.
          Increase only when you need more results in a single response.
    Returns: {configs, count, total, page, page_size, total_pages, has_next, has_previous}

find - Get a specific configuration by ID
    - id (required): The configuration ID
    - valid_on (optional): Unix timestamp (ms) to retrieve the version active at that time
    Returns: Full configuration object

find_versions - Get all historical versions of a configuration
    - id (required): The configuration ID
    Returns: List of all versions sorted by creation date (descending)

create - Create a new Infra Smart Alert configuration
    - payload (required): Configuration object
        REQUIRED fields:
          name (string, max 256): Alert name
          description (string): Alert description
          granularity (int): Evaluation window in ms — one of: 60000, 300000, 600000, 900000, 1200000, 1800000
          groupBy (list): Tag names to group by (can be empty [])
          tagFilterExpression (dict): Entity filter — e.g. {"type": "EXPRESSION", "logicalOperator": "AND", "elements": []}
          timeThreshold (dict): Time condition — e.g. {"type": "violationsInSequence", "timeWindow": 600000}
        OPTIONAL fields:
          severity (int): 5 (Warning) or 10 (Critical)
          evaluationType (string): "PER_ENTITY" or "CUSTOM"
          rule (dict): Single alert rule — shape:
              alertType (string): "genericRule"
              metricName (string): Metric name from get_metrics (e.g. "cpu.used")
              entityType (string): Plugin ID from get_plugins (e.g. "host")
              aggregation (string): "MEAN", "MAX", "MIN", or "SUM"
              crossSeriesAggregation (string): Same values as aggregation
              NOTE: metricGroupBy is auto-defaulted to [] — you may omit it
          rules (list): Multiple rules (up to 5) — each entry shape:
              thresholdOperator (string): e.g. ">="
              rule (dict): Same shape as the top-level rule dict above
              thresholds (dict): e.g. {"WARNING": {"type": "staticThreshold", "value": 0.8}}
              NOTE: rule.metricGroupBy is auto-defaulted to [] in every entry
          threshold (dict): Threshold for single-rule configs — e.g. {"type": "staticThreshold", "operator": ">=", "value": 0.8}
          triggering (bool): Whether to also trigger an Incident
          alertChannelIds (list): Alert channel IDs (defaults to [])
          customPayloadFields (list): Extra notification fields (defaults to [])
          gracePeriod (int): Duration (ms) alert stays open after conditions clear

update - Update an existing configuration
    - id (required): The configuration ID
    - payload (required): Full updated configuration object (same fields as create)

delete - PERMANENTLY delete a configuration (irreversible)
    - id (required): The configuration ID
    WARNING: This operation cannot be undone. The configuration is removed immediately.
    PREFER "disable" over "delete" when you only want to stop the alert temporarily.
    RECOVERY: if deleted by mistake, use "restore" with a version timestamp from "find_versions".

enable - Enable a configuration
    - id (required): The configuration ID

disable - Disable a configuration
    - id (required): The configuration ID

restore - Restore a deleted configuration
    - id (required): The configuration ID
    - created (required): Unix timestamp (ms) of the version to restore (from find_versions)

Args: resource_type: "analyze", "catalog", "resources", or "alert_config" operation: Specific operation for the resource type params: Operation-specific parameters (optional)

Returns: Dictionary with results from the appropriate tool

Examples: resource_type="catalog", operation="get_plugins" resource_type="catalog", operation="get_metrics", params={"plugin": "host"} resource_type="catalog", operation="get_plugin_schema", params={"plugin": "host"} resource_type="catalog", operation="get_metrics", params={"plugin": "jvmRuntimePlatform", "filter": "builtin"} resource_type="catalog", operation="get_tag_catalog", params={"plugin": "host"} resource_type="analyze", operation="get_entities", params={"payload": {"type": "host", "metrics": [{"metric": "cpu.used", "granularity": 3600000, "aggregation": "MEAN"}], "timeFrame": {"windowSize": 3600000}}} resource_type="analyze", operation="get_entities", params={"payload": {"type": "jvmRuntimePlatform", "metrics": [{"metric": "memory.used", "granularity": 3600000, "aggregation": "MAX"}, {"metric": "threads.blocked", "granularity": 3600000, "aggregation": "MEAN"}], "timeFrame": {"to": 1743923995000, "windowSize": 3600000}, "tagFilterExpression": {"type": "TAG_FILTER", "entity": "NOT_APPLICABLE", "name": "host.name", "operator": "EQUALS", "value": "server1"}, "pagination": {"retrievalSize": 200}}} resource_type="analyze", operation="get_entity_groups", params={"payload": {"type": "host", "groupBy": ["host.name"], "metrics": [{"metric": "cpu.used", "granularity": 3600000, "aggregation": "MEAN"}], "timeFrame": {"windowSize": 3600000}, "tagFilterExpression": {"type": "TAG_FILTER", "entity": "NOT_APPLICABLE", "name": "host.name", "operator": "CONTAINS", "value": "prod"}, "pagination": {"retrievalSize": 20}}} resource_type="resources", operation="get_snapshot", params={"snapshot_id": "abc123xyz"} resource_type="resources", operation="get_snapshots", params={"plugin": "host", "size": 50} resource_type="resources", operation="get_snapshots", params={"query": "high cpu", "from_time": 1617994800000, "to_time": 1618081200000, "detailed": true} resource_type="alert_config", operation="find_active" resource_type="alert_config", operation="find_active", params={"alert_ids": ["H5PW_lINTV6yGN8ad5jG49", "pkPW_lINTV6yGN8ad8jG49"]} resource_type="alert_config", operation="find_active", params={"page": 2, "page_size": 25} resource_type="alert_config", operation="find", params={"id": "H5PW_lINTV6yGN8ad5jG49"} resource_type="alert_config", operation="find_versions", params={"id": "H5PW_lINTV6yGN8ad5jG49"} resource_type="alert_config", operation="create", params={"payload": {"name": "High CPU Alert", "description": "CPU exceeded threshold", "granularity": 600000, "groupBy": [], "tagFilterExpression": {"type": "EXPRESSION", "logicalOperator": "AND", "elements": []}, "timeThreshold": {"type": "violationsInSequence", "timeWindow": 600000}, "severity": 10, "rule": {"alertType": "genericRule", "metricName": "cpu.used", "entityType": "host", "aggregation": "MEAN", "crossSeriesAggregation": "MEAN"}, "threshold": {"type": "staticThreshold", "operator": ">=", "value": 0.9}}} resource_type="alert_config", operation="update", params={"id": "H5PW_lINTV6yGN8ad5jG49", "payload": {"name": "Updated Alert", "description": "Updated", "granularity": 600000, "groupBy": [], "tagFilterExpression": {"type": "EXPRESSION", "logicalOperator": "AND", "elements": []}, "timeThreshold": {"type": "violationsInSequence", "timeWindow": 600000}}} resource_type="alert_config", operation="delete", params={"id": "H5PW_lINTV6yGN8ad5jG49"} resource_type="alert_config", operation="enable", params={"id": "H5PW_lINTV6yGN8ad5jG49"} resource_type="alert_config", operation="disable", params={"id": "H5PW_lINTV6yGN8ad5jG49"} resource_type="alert_config", operation="restore", params={"id": "H5PW_lINTV6yGN8ad5jG49", "created": 1710658800000}

# GENAI / LLM examples —
# "For recommendation-agent, shipping-agent, and payment-agent — total tokens and max response duration in last 24h"
resource_type="analyze", operation="get_entity_groups", params={"payload": {"type": "oTelLLM", "groupBy": ["metric.tag.service_name"], "metrics": [{"metric": "metrics.gauges.llm.usage.total_tokens", "granularity": 3600000, "aggregation": "SUM"}, {"metric": "metrics.gauges.llm.response.duration", "granularity": 3600000, "aggregation": "MAX"}], "timeFrame": {"windowSize": 86400000}, "tagFilterExpression": {"type": "EXPRESSION", "logicalOperator": "OR", "elements": [{"type": "TAG_FILTER", "entity": "NOT_APPLICABLE", "name": "metric.tag.service_name", "operator": "EQUALS", "value": "payment-agent"}, {"type": "TAG_FILTER", "entity": "NOT_APPLICABLE", "name": "metric.tag.service_name", "operator": "EQUALS", "value": "recommendation-agent"}, {"type": "TAG_FILTER", "entity": "NOT_APPLICABLE", "name": "metric.tag.service_name", "operator": "EQUALS", "value": "shipping-agent"}]}, "pagination": {"retrievalSize": 20}}}

Inputs: operation (required), resource_type (required), params. Returns: object

manage_maintenance_windowsManage Instana Maintenance WindowsA

Unified Instana maintenance window manager for lifecycle management.

Resource Types: - "window": Create, modify, close, and list maintenance windows - "templates": Retrieve available maintenance window templates

WINDOW (resource_type="window"): operations: create, modify, close, list_active, list_scheduled, list_all, list_expired, bulk_create, validate

create - Create a new maintenance window
    Required: imap_code OR application_id, start_time
    Optional: end_time, duration_minutes, duration_hours, duration_days, reason, template, change_request_id, affected_services, notification_channels, use_tag_filter_expression, tag_name, rrule, until_date

modify - Modify an existing maintenance window
    Required: window_id
    Optional: end_time, duration_minutes, reason, rrule, until_date

close - Close and document a maintenance window
    Required: window_id
    Optional: completion_notes

list_active - List all currently active maintenance windows
    Optional: imap_code, application_id

list_scheduled - List all upcoming scheduled maintenance windows
    Optional: imap_code, application_id

list_all - List all maintenance windows (active, scheduled, and expired)
    Optional: imap_code, application_id

list_expired - List all expired/completed maintenance windows
    Optional: imap_code, application_id

bulk_create - Create maintenance windows for multiple applications at once
    Required: application_ids OR imap_codes, start_time
    Optional: duration_minutes, duration_hours, duration_days, reason, template, change_request_id, use_tag_filter_expression, tag_name

validate - Validate maintenance window parameters without creating
    Required: imap_code OR application_id, start_time
    Optional: duration_minutes, template

TEMPLATES (resource_type="templates"): operations: get

get - Retrieve all available maintenance window templates
    No parameters required

Args: resource_type: "window" or "templates" (default: "window") operation: Operation to perform (default: "list_scheduled") application_id: Single application ID (legacy support) application_ids: Comma-separated or JSON array of application IDs imap_code: Single IMAP code (e.g., "EAL-012512") imap_codes: Comma-separated or JSON array of IMAP codes window_id: Maintenance window ID (for modify/close) start_time: Start time (Unix timestamp ms or ISO string) end_time: End time (Unix timestamp ms or ISO string) duration_minutes: Duration in minutes (e.g., "120") duration_hours: Duration in hours (e.g., "2") duration_days: Duration in days (e.g., "1") reason: Reason/description for the maintenance window template: Template name ("deployment", "database_migration", "infrastructure_upgrade", "emergency", "routine") change_request_id: ServiceNow change request ID affected_services: Comma-separated or JSON array of service names notification_channels: Comma-separated or JSON array of channels completion_notes: Notes when closing a window use_tag_filter_expression: "true" or "false" tag_name: Tag name for filter expression rrule: Recurrence rule (RFC 5545) until_date: End date for recurring windows (ISO string) ctx: MCP context (internal)

Returns: Dictionary with results from the appropriate tool

Examples: # WINDOW operations - create (covers: imap_code, duration_minutes, duration_hours, template, recurring) resource_type="window", operation="create", imap_code="EAL-012471", start_time="1748786400000", duration_minutes="120", reason="Scheduled deployment" resource_type="window", operation="create", imap_code="EAL-012471", start_time="1748786400000", duration_hours="2", template="deployment", change_request_id="CHG0012345" resource_type="window", operation="create", imap_code="ORZ-000012", start_time="1748786400000", duration_minutes="30", rrule="FREQ=DAILY;INTERVAL=1", until_date="2026-06-17T23:59:59Z"

# WINDOW operations - modify (covers: duration_minutes, end_time, reason)
resource_type="window", operation="modify", window_id="mw-789", duration_minutes="60"
resource_type="window", operation="modify", window_id="mw-789", end_time="1748790000000", reason="Extended maintenance"
resource_type="window", operation="modify", window_id="mw-789", duration_hours="3", rrule="FREQ=DAILY;INTERVAL=2"

# WINDOW operations - close (covers: with/without notes)
resource_type="window", operation="close", window_id="mw-789"
resource_type="window", operation="close", window_id="mw-789", completion_notes="Completed successfully"
resource_type="window", operation="close", window_id="mw-789", completion_notes="Completed with issues - rollback performed"

# WINDOW operations - list_active
resource_type="window", operation="list_active"
resource_type="window", operation="list_active", imap_code="EAL-012471"
resource_type="window", operation="list_active", application_id="app-123"

# WINDOW operations - list_scheduled
resource_type="window", operation="list_scheduled"
resource_type="window", operation="list_scheduled", imap_code="EAL-012471"
resource_type="window", operation="list_scheduled", application_id="app-123"

# WINDOW operations - list_all
resource_type="window", operation="list_all"
resource_type="window", operation="list_all", imap_code="EAL-012471"
resource_type="window", operation="list_all", application_id="app-123"

# WINDOW operations - list_expired
resource_type="window", operation="list_expired"
resource_type="window", operation="list_expired", imap_code="EAL-012471"
resource_type="window", operation="list_expired", application_id="app-123"

# WINDOW operations - bulk_create
resource_type="window", operation="bulk_create", imap_codes="EAL-012471,ORZ-000012", start_time="1748786400000", duration_hours="2", reason="Coordinated deployment"
resource_type="window", operation="bulk_create", application_ids="app-123,app-456", start_time="1748786400000", duration_minutes="120", reason="Multi-app maintenance"
resource_type="window", operation="bulk_create", imap_codes="EAL-012471,ORZ-000012", start_time="1748786400000", template="deployment", change_request_id="CHG0012345"

# WINDOW operations - validate
resource_type="window", operation="validate", imap_code="EAL-012471", start_time="1748786400000", duration_minutes="120"
resource_type="window", operation="validate", application_id="app-123", start_time="1748786400000", duration_hours="2"
resource_type="window", operation="validate", imap_code="EAL-012471", start_time="1748786400000", template="deployment"

# TEMPLATES operations (covers: get templates)
resource_type="templates", operation="get"

Inputs: ctx, params, operation, resource_type. Returns: object

manage_mobile_appsManage Instana Mobile App ResourcesA
Read-only

Unified Instana mobile app resource manager for beacon monitoring, catalog, configuration, and alert operations.

Resource Types: - "analyze": Query mobile app beacon data with grouping or filtering - "catalog": Get available metrics and tags for mobile app monitoring - "configuration": Get mobile app configurations - "advanced_config": Retrieve advanced configurations (geo-location, IP masking, geo rules, source map upload config, get_mobile_app_source_map_upload_config_by_id) - READ ONLY - "alert": Get available alert configurations for mobile app monitoring - "session": Query mobile app session data (session beacons) and session replay data (action beacons)

WORKFLOW DECISION: ├─ Are you using resource_type="analyze"? └─ YES → Adhere to ANALYZE WORKFLOW at all times when making decisions └─ NO → Ignore ANALYZE WORKFLOW entirely and adhere to resource description

ANALYZE WORKFLOW: 1. FIRST: Call get_mobile_app_metric_catalog to get valid metrics - resource_type="catalog", operation="get_mobile_app_metric_catalog" - Returns: Available metrics with metricId, aggregations, and beacon types

2. SECOND: Call get_mobile_app_tag_catalog to get valid tag names
   - resource_type="catalog", operation="get_mobile_app_tag_catalog"
   - params: {"beacon_type": "SESSION_START", "use_case": "FILTERING"}

3. THIRD: Use ONLY the tag names and metrics returned from catalog operations
   - Tag names MUST start with "mobileBeacon." (e.g., "mobileBeacon.mobileApp.name")
   - Metric names must match those from get_mobile_app_metric_catalog
   - NEVER guess or invent tag names or metric names

4. FOURTH: Call analyze operations with validated tag names and metrics
   - ALWAYS include "entity": "NOT_APPLICABLE" in EVERY TAG_FILTER

Default beacon_type: "SESSION_START" | Default use_case for get_all_mobile_app_beacons: "FILTERING"

ANALYZE (resource_type="analyze"): operations: - get_all_mobile_app_beacons params: {time_frame, beacon_type, pagination, tag_filter_expression (optional), filter_fields (optional)}

    - get_mobile_app_beacon_groups
        params: {time_frame, beacon_type, fill_time_series, pagination, tag_filter_expression (optional), metrics (optional), group (optional), order (optional)}

Aggregations: SUM, MEAN, MAX, MIN, P25, P50, P75, P90, P95, P98, P99, P99_9, P99_99, DISTINCT_COUNT, SUM_POSITIVE, PER_SECOND, INCREASE
Operators: EQUALS, NOT_EQUAL, CONTAINS, NOT_CONTAIN, STARTS_WITH, ENDS_WITH, NOT_STARTS_WITH, NOT_ENDS_WITH, GREATER_THAN, GREATER_OR_EQUAL_THAN, LESS_THAN, LESS_OR_EQUAL_THAN, NOT_EMPTY, IS_EMPTY, NOT_BLANK, IS_BLANK, REGEX_MATCH

time_frame: {"to": <timestamp_or_datetime>, "windowSize": <milliseconds>}
    - to: Unix timestamp in milliseconds OR datetime string (e.g., "19 March 2026, 2:47 PM|IST")
    - If timezone not specified in datetime string, defaults to UTC
    - windowSize: Duration in milliseconds (default: 3600000 = 1 hour)

tag_filter_expression: CRITICAL - Entity field is REQUIRED for ALL tag filters
    - ALWAYS set "entity": "NOT_APPLICABLE" for ALL mobile app beacon tags
    - This applies to ALL tags: mobileBeacon.mobileApp.*, mobileBeacon.view.*, mobileBeacon.device.*, mobileBeacon.geo.*, etc.
    - The entity field is MANDATORY - never omit it or set it to null
    - Tag names MUST start with "mobileBeacon." - get valid names from get_mobile_app_tag_catalog first

    Examples:
      * {"type": "TAG_FILTER", "name": "mobileBeacon.mobileApp.name", "operator": "EQUALS", "entity": "NOT_APPLICABLE", "value": "Robot Shop"}
      * {"type": "TAG_FILTER", "name": "mobileBeacon.view.name", "operator": "EQUALS", "entity": "NOT_APPLICABLE", "value": "Products"}
      * {"type": "TAG_FILTER", "name": "mobileBeacon.device.model", "operator": "EQUALS", "entity": "NOT_APPLICABLE", "value": "iPhone 12"}

filter_fields (optional, default: True):
    - Controls which fields are included in each returned beacon.
    - True / None / omitted — essential fields only
    -  False — all fields returned by the REST endpoint (unfiltered, larger payload)

get_all_mobile_app_beacons - Use for individual beacon data (e.g., "list all session start beacons")
get_mobile_app_beacon_groups - Use for grouped/aggregated beacon metrics (e.g., "beacon count per mobile app")

CATALOG (resource_type="catalog"): operations: get_mobile_app_metric_catalog, get_mobile_app_tag_catalog params: {beacon_type, use_case}

get_mobile_app_metric_catalog - Get mobile app 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_mobile_app_tag_catalog - MUST CALL THIS FIRST before using any tag names
    Returns: List of valid tag names that start with "mobileBeacon."
    Valid beacon_type: "SESSION_START", "VIEW_CHANGE", "HTTP_REQUEST", "CUSTOM", "CRASH", "PERF", "DROP_BEACON"
    Valid use_case: "GROUPING", "FILTERING", "SERVICE_MAPPING", "SMART_ALERTS", etc.

    Example call:
    resource_type="catalog", operation="get_mobile_app_tag_catalog",
    params={"beacon_type": "SESSION_START", "use_case": "FILTERING"}

CONFIGURATION (resource_type="configuration"): operations: get_all, get params: {mobile_app_id, mobile_app_name}

get_all - List all mobile apps
get - Get mobile app by ID or name (supports name resolution)

NOTE: Create, Update, Delete operations are not available.
        Use the Instana UI for mobile app configuration modifications.

ADVANCED_CONFIG (resource_type="advanced_config"): operations: get_geo_config, get_ip_masking, get_geo_rules, get_source_map_upload_config, get_mobile_app_source_map_upload_config_by_id params: {mobile_app_id, mobile_app_name, config_id (for get_mobile_app_source_map_upload_configuration_by_id)}

NOTE: These are READ-ONLY operations for retrieving advanced configurations.
        Use the Instana UI for modifications.
        Source map operations are not currently available due to authentication limitations.

get_geo_config - Get geo-location configuration
    Returns: geoDetailRemoval setting and geoMappingRules array
get_ip_masking - Get IP masking configuration
    Returns: ipMasking setting (DEFAULT ,STRICT ,REMOVE_ALL_DETAILS)
get_geo_rules - Get custom geo mapping rules
    Returns: Array of geo mapping rules with CIDR ranges and location data
get_source_map_upload_config - Get source map upload configuration details
    Returns: Source map upload configuration settings
get_mobile_app_source_map_upload_config_by_id - Get specific source map upload configuration by ID
    Returns: Source map upload configuration settings for the specified ID

ALERT (resource_type="alert"): operations: find_active_mobile_app_alert_configs, find_mobile_app_alert_config params: {mobile_app_id, alert_ids, id, valid_on}

find_active_mobile_app_alert_configs - Get all alert configurations for a mobile app
    - mobile_app_id: Mobile app ID to get alert configs for (required)
    - alert_ids: Optional list of specific alert IDs to filter (optional)

find_mobile_app_alert_config - Get a specific alert configuration by ID
    - id: Specific alert config ID to retrieve (required)
    - valid_on: Unix timestamp to retrieve config valid at that time (optional, defaults to latest active version)

SESSION (resource_type="session"): operations: get_session_beacons, get_session_replay_action_beacons

get_session_beacons - Get all beacons for a session by session id and timestamp
    Required parameters:
        - session_id: Session ID to retrieve beacons for
        - timestamp: The timestamp of the target session (Unix ms). For beacons to accurately be found, this value must be in the range: [first beacon timestamp - 6 hours, last beacon timestamp + 6 hours]

    Response:
        - beacons: List of beacons returned for this session (All beacons of types "SESSION_START", "VIEW_CHANGE", "HTTP_REQUEST", "CUSTOM", "CRASH", "PERF", and "DROP_BEACON" associated with the session)

get_session_replay_action_beacons - Get paginated session replay action beacons by mobile app id and session id
    Required parameters:
        - mobile_app_id: Mobile app ID that owns the session
        - session_id: Session ID to retrieve action beacons for

    Optional pagination parameters:
        - cursor: Zero-based offset of the first beacon to return
            * Use cursor=0 for the first page
            * Do NOT treat cursor as a timestamp
            * Use cursor=0 for the first page. If the response has hasMore=true, call again with cursor=nextCursor until hasMore=false.
        - page_size: Maximum number of beacons to return in one request
            * Use a small value like 1 for debugging
            * Use a larger value like 100 for normal retrieval
            * Maximum value of 1000

    Response fields:
        - beacons: List of action beacons returned for this page
        - nextCursor: Offset to use in the next request
        - hasMore: Whether more beacons remain after this page

    PAGINATION RULES - FOLLOW EXACTLY:
        1. Start with cursor=0.
        2. Read the returned beacons.
        3. If hasMore=true, call again with cursor=nextCursor.
        4. Repeat until hasMore=false.
        5. Combine all returned beacons in order.

    PAGINATION EXAMPLE:
        First request:
            params={"mobile_app_id": "app-123", "session_id": "session-456", "cursor": 0, "page_size": 100}

        Example response:
            {"beacons": [...], "nextCursor": 100, "hasMore": true}

        Second request:
            params={"mobile_app_id": "app-123", "session_id": "session-456", "cursor": 100, "page_size": 100}

        Final response example:
            {"beacons": [...], "nextCursor": null, "hasMore": false}

Args: resource_type: "analyze", "catalog", "configuration", "advanced_config", "alert", or "session" operation: Specific operation for the resource type params: Operation-specific parameters (optional)

Returns: Dictionary with results from the appropriate tool

    Examples:
        resource_type="catalog", operation="get_mobile_app_tag_catalog", params={"beacon_type": "SESSION_START", "use_case": "GROUPING"}
        resource_type="analyze", operation="get_mobile_app_beacon_groups", params={"metrics": [{"metric": "beaconCount", "aggregation": "SUM"}], "group": {"groupByTag": "mobileBeacon.view.name", "groupbyTagEntity": "NOT_APPLICABLE"}, "time_frame": {"to": "19 March 2026, 2:47 PM|IST", "windowSize": 3600000}, "beacon_type": "SESSION_START"}
        resource_type="analyze", operation="get_all_mobile_app_beacons", params={"time_frame": {"to": 1234567890000, "windowSize": 3600000}, "beacon_type": "SESSION_START", "pagination": {"retrievalSize": 50}, "filter_fields": True}
        resource_type="catalog", operation="get_mobile_app_metric_catalog"
        resource_type="configuration", operation="get_all"
        resource_type="configuration", operation="get", params={"mobile_app_name": "robot-shop"}
        resource_type="advanced_config", operation="get_geo_config", params={"mobile_app_name": "robot-shop"}
        resource_type="session", operation="get_session_replay_action_beacons", params={"mobile_app_id": "i1IsNS7FQAegEljBTkNBMQ", "session_id": "1d616527-2635-407f-89fc-de7136b66fb4", "cursor": 10, "page_size": 100}
        resource_type="session", operation="get_session_beacons", params={"session_id": "1d616527-2635-407f-89fc-de7136b66fb4", "timestamp": 1785786779333}
        

Inputs: operation (required), resource_type (required), params. Returns: object

manage_releasesManage Instana ReleasesA

Unified releases manager for tracking deployments and analyzing release impact.

Operations: get_all_releases, get_release, create_release, update_release, delete_release

GET_ALL_RELEASES - List releases in time range with pagination and filtering params: from_time, to_time, name_filter, page_number, page_size Without page_number/page_size all matching releases are returned. With either one the response is paged and carries a pagination envelope ({page, page_size, total_items, total_pages, has_more, has_previous, next_operation, previous_operation}). To change page, call operation=<next_operation or previous_operation> (e.g. "page_2") with the same params; the page number is inside the operation string. Time params support: milliseconds (1742369820000) OR "datetime|timezone" ("19 March 2026, 2:47 PM|IST") name_filter: Filter releases by name (case-insensitive substring match) page_number: Page number (1-based, optional; "page" is accepted as an alias) page_size: Results per page (optional, default: 50 when paging)

GET_RELEASE - Get release by ID params: release_id (required) Returns: id, name, start, applications, services, scopes Use release.start with manage_applications/manage_events to analyze post-release performance/incidents

CREATE_RELEASE - Create new release params: name (required), start (required), applications, services name: Release identifier (e.g., "frontend/release-2000") start: Deployment timestamp - milliseconds OR "datetime|timezone" applications: [{"name": "app_name"}] services: [{"name": "service_name", "scopedTo": {...}}]

UPDATE_RELEASE - Update existing release params: release_id (required), name (required), start (required), applications, services Same format as create_release

DELETE_RELEASE - Delete release params: release_id (required)

Examples: # List all operation="get_all_releases"

# List with time range
operation="get_all_releases", params={"from_time": "19 March 2026, 2:00 PM|IST", "to_time": "19 March 2026, 5:00 PM|IST"}

# List with name filter
operation="get_all_releases", params={"name_filter": "frontend"}

# List with pagination
operation="get_all_releases", params={"page_number": 1, "page_size": 50}

# List with all filters
operation="get_all_releases", params={"from_time": "19 March 2026, 2:00 PM|IST", "to_time": "19 March 2026, 5:00 PM|IST", "name_filter": "release", "page_number": 1, "page_size": 20}

# Get by ID
operation="get_release", params={"release_id": "l1wgr3DsQkGLf8u18JiGsg"}

# Create
operation="create_release", params={"name": "frontend/release-2000", "start": "19 March 2026, 2:47 PM|IST", "applications": [{"name": "My App"}]}

# Update
operation="update_release", params={"release_id": "l1wgr3DsQkGLf8u18JiGsg", "name": "frontend/release-2001", "start": 1742349976000}

# Delete
operation="delete_release", params={"release_id": "l1wgr3DsQkGLf8u18JiGsg"}

Inputs: operation (required), params. Returns: object

manage_sloManage Instana SLO ResourcesA

Unified SLO manager for configurations, reports, alerts, and corrections.

CONFIGURATION (resource_type="configuration") - Operations: get_all, get_by_id, create, update, delete, get_tags get_all: List/filter configs - params: page_size (default: 10), page, order_by, order_direction, query, tag, entity_type, infra_entity_types, kubernetes_cluster_uuid, blueprint, slo_ids, slo_status, entity_ids, grouped, refresh, rbac_tags page_size: Number of items per page (default: 10) query: Filter by name or matching names (e.g., query="my-slo" to find SLOs with "my-slo" in name) get_by_id: Get config by ID - params: id (required), refresh create: Create config - params: payload (required) with name, entity, indicator, target (0.0-0.9999), timeWindow, tags entity: {type: "application", applicationId: "...", boundaryScope: "ALL"/"INBOUND"/"DEFAULT"} (boundaryScope REQUIRED) indicator: {type: "timeBased"/"eventBased", blueprint: "latency"/"availability", threshold: 100, aggregation: "P90"/"P95"} timeWindow: {type: "rolling"/"fixed", duration: 1, durationUnit: "week"/"day"/"hour"/"minute"} update: Update config (requires ALL fields) - params: id (required), payload (required, same as create) CRITICAL: MUST use ID (not name). Fetch via get_by_id first, merge changes, then update with complete payload delete: Delete config - params: id (required) get_tags: List tags - params: query, tag, entity_type

REPORT (resource_type="report") - Operations: get get: Generate SLO report - params: slo_id (required), var_from, to, exclude_correction_id, include_correction_id Returns: SLI value, SLO target, error budget (remaining/spent/total), burn rate, time range, charts Time params: var_from/to can be provided as: - Unix timestamp in milliseconds (e.g., 1741604400000) - Human-readable datetime string (e.g., "10 March 2026, 2:00 PM") - Datetime with timezone (e.g., "10 March 2026, 2:00 PM|IST") - If no timezone specified, UTC is assumed Supported datetime formats: "10 March 2026, 2:00 PM", "2026-03-10 14:00:00", "March 10, 2026 2 PM", etc.

ALERT (resource_type="alert") - Operations: find_active, find, find_versions, create, update, delete, disable, enable, restore find_active: Find active alerts - params: slo_id, alert_ids find: Get alert by ID - params: id (required), valid_on find_versions: Get alert versions - params: id (required) create: Create alert - params: payload (required) with name, description, sloIds, rule, severity, alertChannelIds, timeThreshold, customPayloadFields REQUIRED FIELDS: name, description, sloIds (list), rule, severity (5 or 10 ONLY), alertChannelIds (list), timeThreshold, customPayloadFields (list, can be empty) rule: {alertType: "ERROR_BUDGET", metric: "BURN_RATE"/"BURNED_PERCENTAGE"/"BURN_RATE_V2"} OR {alertType: "SERVICE_LEVELS_OBJECTIVE"} timeThreshold: {expiry: 604800000, timeWindow: 604800000} (values in milliseconds - NOT type/value format) customPayloadFields: [{type: "staticString", key: "foo", value: "bar"}] (use proper discriminated union types) threshold (optional): {type: "staticThreshold", operator: ">=", value: 20.0} (required for some alert types) burnRateTimeWindows (REQUIRED for BURN_RATE metric): {longTimeWindow: {duration: 1, durationType: "hour"}, shortTimeWindow: {duration: 5, durationType: "minute"}} update: Update alert (requires ALL fields) - params: id (required), payload (required, same as create) CRITICAL: MUST use ID (not name). Fetch via find first, merge changes, then update with complete payload delete: Delete alert - params: id (required) disable: Disable alert - params: id (required) enable: Enable alert - params: id (required) restore: Restore alert to version - params: id (required), created (required - timestamp from version)

CORRECTION (resource_type="correction") - Operations: get_all, get_by_id, create, update, delete get_all: List correction windows - params: page_size (default: 10), page, order_by, order_direction, query, tag, id, slo_id, refresh page_size: Number of items per page (default: 10) query: Filter by name or matching names (e.g., query="maintenance" to find corrections with "maintenance" in name) get_by_id: Get correction by ID - params: id (required) create: Create correction window - params: payload (required) with name, scheduling, sloIds, description, tags, active REQUIRED FIELDS: name, sloIds (list of SLO config IDs, e.g. ["slo-abc123"]), scheduling (with duration, durationUnit, startTime optional, recurrent optional, recurrentRule optional) scheduling: {duration: 1, durationUnit: "hour"/"day"/"week"/"month", startTime: <timestamp_or_datetime>, recurrent: true/false, recurrentRule: "..."} durationUnit: Must be one of: millisecond, second, minute, hour, day, week, month startTime: Can be provided as: - Unix timestamp in milliseconds (e.g., 1741604400000) - Human-readable datetime string (e.g., "10 March 2026, 2:00 PM") - Datetime with timezone (e.g., "10 March 2026, 2:00 PM|IST") - If no timezone specified, UTC is assumed - CRITICAL: Always include timezone for correction windows to ensure accurate time context update: Update correction window - params: id (required), payload (required, same as create) CRITICAL: MUST use ID (not name). Always update by ID only delete: Delete correction window - params: id (required)

Examples: # Config: List all resource_type="configuration", operation="get_all"

# Config: Get by ID
resource_type="configuration", operation="get_by_id", params={"id": "slo-123"}

# Config: Create
resource_type="configuration", operation="create", params={"payload": {"name": "API SLO", "entity": {"type": "application", "applicationId": "app-123", "boundaryScope": "ALL"}, "indicator": {"type": "timeBased", "blueprint": "latency", "threshold": 100, "aggregation": "P90"}, "target": 0.95, "timeWindow": {"type": "rolling", "duration": 1, "durationUnit": "week"}, "tags": ["api"]}}

# Report: Get with datetime
resource_type="report", operation="get", params={"slo_id": "slo-123", "var_from": "10 March 2026, 2:00 PM|IST", "to": "17 March 2026, 2:00 PM|IST"}

# Alert: Find active
resource_type="alert", operation="find_active", params={"slo_id": "slo-123"}

# Alert: Create (all required fields)
resource_type="alert", operation="create", params={"payload": {"name": "Burn Rate Alert", "description": "High burn rate", "sloIds": ["slo-123"], "rule": {"alertType": "ERROR_BUDGET", "metric": "BURN_RATE"}, "severity": 10, "alertChannelIds": ["ch-123"], "timeThreshold": {"expiry": 604800000, "timeWindow": 604800000}, "customPayloadFields": [{"type": "staticString", "key": "env", "value": "prod"}], "threshold": {"type": "staticThreshold", "operator": ">=", "value": 2.0}, "burnRateTimeWindows": {"longTimeWindow": {"duration": 1, "durationType": "hour"}, "shortTimeWindow": {"duration": 5, "durationType": "minute"}}}}

# Correction: List all
resource_type="correction", operation="get_all"

# Correction: Create with datetime
resource_type="correction", operation="create", params={"payload": {"name": "Maintenance", "scheduling": {"duration": 2, "durationUnit": "hour", "startTime": "12 March 2026, 1:47 AM|IST"}, "sloIds": ["slo-123"], "description": "Planned maintenance", "tags": ["maint"], "active": True}}

# Elicitation: Missing timezone
# Input: resource_type="report", operation="get", params={"slo_id": "abc", "var_from": "10 March 2026, 2:00 PM"}
# Response: {"elicitation_needed": True, "message": "I need timezone...", "missing_parameters": ["timezone"]}

# Elicitation: Missing alert fields
# Input: resource_type="alert", operation="create", params={"payload": {"name": "Alert"}}
# Response: {"elicitation_needed": True, "message": "I need...", "missing_parameters": [...]}

Inputs: operation (required), resource_type (required), params. Returns: object

manage_syntheticsManage Instana Synthetic ResourcesA

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}

Inputs: operation (required), resource_type (required), params. Returns: object

manage_websitesManage Instana Website ResourcesA
Read-only

Unified Instana website resource manager for beacon monitoring, catalog, configuration and alert operations.

Resource Types: - "analyze": Query website beacon data with grouping or filtering - "catalog": Get available metrics and tags for website monitoring - "configuration": Get website configurations - "advanced_config": Retrieve advanced configurations (geo-location, IP masking, geo rules) - READ ONLY - "alert": Get website alert configurations

CRITICAL WORKFLOW: BEFORE calling analyze operations, you MUST call get_tag_catalog to get valid tag names. Default beacon_type: "PAGELOAD" | Default use_case: get_beacon_groups="GROUPING", get_beacons="FILTERING"

ANALYZE (resource_type="analyze"): operations: get_beacon_groups, get_beacons params: {metrics, group, tag_filter_expression, time_frame, beacon_type, fill_time_series, order, pagination}

Aggregations: SUM, MEAN, MAX, MIN, P25, P50, P75, P90, P95, P98, P99, P99_9, P99_99, DISTINCT_COUNT, SUM_POSITIVE, PER_SECOND, INCREASE
Operators: EQUALS, NOT_EQUAL, CONTAINS, NOT_CONTAIN, STARTS_WITH, ENDS_WITH, NOT_STARTS_WITH, NOT_ENDS_WITH, GREATER_THAN, GREATER_OR_EQUAL_THAN, LESS_THAN, LESS_OR_EQUAL_THAN, NOT_EMPTY, IS_EMPTY, NOT_BLANK, IS_BLANK, REGEX_MATCH

tag_filter_expression: CRITICAL - Entity field REQUIRED for ALL tag filters. ALWAYS set "entity": "NOT_APPLICABLE" for website beacon tags.
time_frame: {"to": <timestamp_or_datetime>, "windowSize": <milliseconds>} - Default: 3600000 (1 hour)
    to: Unix timestamp (ms) OR datetime string (e.g., "19 March 2026, 2:47 PM|IST")

Examples:
    metrics: [{"metric": "beaconCount", "aggregation": "SUM"}, {"metric": "onLoadTime", "aggregation": "P95"}]
    tag_filter_expression: {"type": "TAG_FILTER", "name": "beacon.page.name", "operator": "CONTAINS", "entity": "NOT_APPLICABLE", "value": "checkout"}

get_beacon_groups - Use for grouped/aggregated data (e.g., "beacon count per page")
get_beacons - Use for individual beacon data (e.g., "list all page load beacons")

CATALOG (resource_type="catalog"): operations: get_metrics, get_tag_catalog params: {beacon_type, use_case}

get_metrics - Get website metrics catalog with necessary metadata for query planning (metricId, label, description, formatter, aggregations, beaconTypes). Use returned metricId values exactly; they are authoritative over examples. Use params.view="full" to retrieve raw SDK metadata (rarely needed).
get_tag_catalog - Get valid tag names for beacon_type and use_case
    Valid beacon_type: "PAGELOAD", "PAGE_CHANGE", "RESOURCELOAD", "CUSTOM", "HTTPREQUEST", "ERROR"
    Valid use_case: "GROUPING", "FILTERING", "SERVICE_MAPPING", "SMART_ALERTS", etc.

CONFIGURATION (resource_type="configuration"): operations: get_all, get params: {website_id, website_name}

get_all - List all websites
get - Get website by ID or name (supports name resolution)

NOTE: Create, Update, Delete operations are not available.
      Use the Instana UI for website configuration modifications.

ADVANCED_CONFIG (resource_type="advanced_config"): operations: get_geo_config, get_ip_masking, get_geo_rules params: {website_id, website_name}

NOTE: These are READ-ONLY operations for retrieving advanced configurations.
      Use the Instana UI for modifications.
      Source map operations are not currently available due to authentication limitations.

get_geo_config - Get geo-location configuration
    Returns: geoDetailRemoval setting and geoMappingRules array
get_ip_masking - Get IP masking configuration
    Returns: ipMasking setting (DEFAULT, ANONYMIZE_IP, etc.)
get_geo_rules - Get custom geo mapping rules
    Returns: Array of geo mapping rules with CIDR ranges and location data

ALERT (resource_type="alert"): operations: find_active_website_alert_configs, find_website_alert_config params: {website_id, alert_ids, id, valid_on}

find_active_website_alert_configs - Get all alert configurations for a website
    - website_id: Website ID to get alert configs for (required)
    - alert_ids: Optional list of specific alert IDs to filter (optional)

find_website_alert_config - Get a specific alert configuration by ID
    - id: Specific alert configuration ID to retrieve (required)
    - valid_on: Unix timestamp (ms) to retrieve the configuration active at that time (optional, default is latest active version)

Args: resource_type: "analyze", "catalog", "configuration", "advanced_config", or "alert" operation: Specific operation for the resource type params: Operation-specific parameters (optional)

Returns: Dictionary with results from the appropriate tool

Examples: resource_type="catalog", operation="get_tag_catalog", params={"beacon_type": "PAGELOAD", "use_case": "GROUPING"} resource_type="analyze", operation="get_beacon_groups", params={"metrics": [{"metric": "beaconCount", "aggregation": "SUM"}], "group": {"groupByTag": "beacon.page.name", "groupbyTagEntity": "NOT_APPLICABLE"}, "time_frame": {"to": "19 March 2026, 2:47 PM|IST", "windowSize": 3600000}, "beacon_type": "PAGELOAD"} resource_type="analyze", operation="get_beacons", params={"time_frame": {"to": 1234567890000, "windowSize": 3600000}, "beacon_type": "PAGELOAD", "pagination": {"retrievalSize": 50}} resource_type="catalog", operation="get_metrics" resource_type="configuration", operation="get_all" resource_type="configuration", operation="get", params={"website_name": "robot-shop"} resource_type="advanced_config", operation="get_geo_config", params={"website_name": "robot-shop"} resource_type="alert", operation="find_active_website_alert_configs", params={"website_id": "website-abc123"} resource_type="alert", operation="find_website_alert_config", params={"id": "alert-123", "valid_on": 1234567890000}

Inputs: operation (required), resource_type (required), params. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 12 tools

    Disambiguation4/5

    Each tool maps to a distinct Instana domain (mobile apps, websites, synthetics, infrastructure, applications, SLO, events, etc.), so boundaries are mostly clear. However, several tools may be confused: manage_applications vs manage_infrastructure both handle LLM/GenAI data, and alert configs appear in multiple domain tools, which the descriptions explicitly need to disambiguate with routing notes.

    Naming Consistency5/5

    All 12 tools follow a single, rigid 'manage_<domain>' convention (manage_mobile_apps, manage_synthetics, manage_websites, manage_infrastructure, etc.). No deviation in casing or verb style; predictable and easy to reason about.

    Tool Count5/5

    12 tools sits squarely in the ideal 3-15 range, and each tool owns a distinct monitoring domain, so none feels redundant or trivial. The per-tool operation sub-surfaces (analyze, catalog, configuration, etc.) are a deliberate design, not bloat at the tool level.

    Completeness4/5

    The surface is broad and lifecycle-rich for most domains: CRUD on SLOs, releases, dashboards, maintenance windows, and alert configs for synthetics/applications/infrastructure. Gaps exist: alert channels are read-only (no create/update), automation has no action execution, and mobile/website configuration is read-only — all noted as UI limitations, so agents can partially work around them.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables seamless interaction with the IBM Instana observability platform, allowing access to real-time observability data directly within development workflows.
      4
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables ChatGPT to receive signed Grafana alert and recovery notifications, manage event subscriptions, and query retained alert history through authenticated MCP tools.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Connects AI agents and MCP clients to Datadog through PipMCP using a single API key, with hosted tool discovery, schemas, and governed execution of approved operations.
      MIT