Skip to main content
Glama
Instana MCP Server

Instana MCP Server

Official
by instana

Manage Instana Application Resources

manage_applications

Manage Instana application resources: query service metrics and traces, inspect spans, configure alerts and application settings, and access tag or metric catalogs.

Instructions

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}}}

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "resource_type": "<resource_type>",
      "operation": "<operation>"
    },
    "name": "manage_applications"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNo
operationYes
resource_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.9/5.0
Behavior1/5

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

The description advertises delete operations for alert_config, global_alert_config, and settings (plus update/restore/disable), while annotations declare destructiveHint=false. That is a direct conflict about whether destructive actions are reachable. Elsewhere the description does supply real behavioral context (page-1-only find_active, pagination envelope with next_operation, mandatory entity field, 'never pass to: 0', mandatory verbatim 'link' rendering), but the annotation conflict is a safety-relevant mismatch.

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

Conciseness3/5

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

Headers and the front-loaded purpose/routing make it navigable, but the block is very long and repetitive: the time_frame guidance ('never pass to: 0', windowSize default) appears twice near-verbatim, and the ALERT_CONFIG example list is exhaustive rather than illustrative. For a 7-resource-type dispatcher some length is justified, but trimming duplication would improve it.

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

Completeness4/5

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

An output schema exists, so return-value documentation is not required, and the description still covers operation sets, param shapes, pagination behavior, and catalog validation. Given the breadth (metrics, alerts, settings, catalog, resources, analyze), the main omissions are the consequences of delete/update operations and any permission requirements — which matter precisely because those operations are exposed.

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

Parameters5/5

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

Schema coverage is 0% and the schema only lists resource_type/operation/params, so the description must carry the full burden — and it does. It documents per-operation param sets, the time_frame object shape and optionality of 'to', the mandatory entity field with SOURCE/DESTINATION/NOT_APPLICABLE semantics, allowed aggregations and operators, groupbyTag/groupbyTagEntity constraints for trace groups, and worked examples for every resource type.

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

Purpose5/5

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

The opening line states a specific verb and resource ('Unified Instana application resource manager for metrics, alerts, configurations, and catalog') and the SCOPE block enumerates the covered domains. It goes further by naming the sibling tools it is not (manage_events, manage_infrastructure) and giving explicit routing rules for LLM/GenAI traffic, so an agent can place it in the toolset without opening the schema.

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

Usage Guidelines5/5

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

Guidance is unusually explicit: 'route by what's asked, not by the agent's name', with concrete when-to-use-here vs when-to-use-manage_infrastructure rules for trace-level vs entity metrics, plus a hybrid recipe for mixed queries. The CRITICAL WORKFLOW block mandates a catalog-first ordering before metrics/analyze calls, and the RESOURCES section explicitly excludes LLM/GenAI agents. Nothing is left to inference.

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