Skip to main content
Glama
Dynatrace Managed MCP Server

Dynatrace Managed MCP Server

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_FILENoLog file path, used when LOG_OUTPUT includes 'file'dynatrace-managed-mcp.log
LOG_LEVELNoLog verbosity: debug, info, warn or errorinfo
LOG_OUTPUTNoLog destination: file, stderr, stderr-all, file+stderr, disabled. Use stderr-all for stdio transport; never stdout/console, which is reserved for the MCP protocol.file+stderr
DT_CONFIG_FILENoAlternative to DT_ENVIRONMENT_CONFIGS: path to a JSON or YAML config file (supports ${VAR} interpolation). Takes priority over DT_ENVIRONMENT_CONFIGS when both are set. Rarely usable in hosted deployments.
DT_ENVIRONMENT_CONFIGSYesJSON array of Dynatrace Managed environments. Each entry requires apiEndpointUrl, environmentId, alias and apiToken; dynatraceUrl, httpProxyUrl and httpsProxyUrl are optional. Example: [{"apiEndpointUrl":"https://abc123.dynatrace-managed.com:9999/","environmentId":"01234567-89ab-cdef-abcd-ef0123456789","alias":"production","apiToken":"dt0c01...."}]. The API token needs scopes: auditLogs.read, entities.read, events.read, logs.read, metrics.read, networkZones.read, problems.read, securityProblems.read, slo.read
DT_MCP_DISABLE_TELEMETRYNoSet to "true" to disable Dynatrace usage telemetryfalse
DT_MCP_TELEMETRY_DEVICE_IDNoDevice identifier for telemetry (auto-generated by default)
DT_MCP_RATE_LIMIT_MAX_CALLSNoMaximum tool calls allowed per rate-limit window20
DT_MCP_RATE_LIMIT_WINDOW_MSNoRate-limit window size in milliseconds20000
DT_MCP_TELEMETRY_ENDPOINT_URLNoOpenKit endpoint URL for telemetry (advanced)
DT_MCP_TELEMETRY_APPLICATION_IDNoOpenKit application ID for telemetry (advanced)

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This MCP server connects to Dynatrace Managed (self-hosted) environments for observability. This can include metrics, logs and traces, and detection of problems and security vulnerabilities relating to these.

Some users may configure two MCPs at the same time: this MCP to connect to their Dynatrace Managed instances, and a second MCP to connect to their SaaS environment. Be careful of which MCP to use. If it is unclear, ask the user which they want to use. Ask the user to confirm the difference between their two environments.

Key Context:

  • This MCP server accesses self-hosted Dynatrace Managed clusters (not the SaaS version of Dynatrace)

  • This MCP server can be used to interact with multiple Dynatrace Managed environments

  • Minimum supported cluster version: 1.328.0

  • Two different ways that Dynatrace Managed may be being used:

    1. Dynatrace Managed may be the primary observability system, containing all live data.

    2. Or alternatively the customer may have migrated to Dynatrace SaaS, leaving historical observability data in Dynatrace Managed from before the migration, in which case this MCP Server would only be used to access historical data.

Core Capabilities:

  • Problem Analysis: Investigate problems with root cause identification

  • Security Assessment: Comprehensive vulnerability scanning and risk assessment

  • Log Investigation: Search logs using either simple text search or advanced query syntax with time-based filtering

  • Event Tracking: Monitor system events, deployments, and configuration changes

  • Entity Exploration: Discover and analyze monitored entities, including relationship mapping

  • Metrics Analysis: Query observability metrics via the Dynatrace Metrics V2 API

  • SLO Management: Service Level Objective monitoring, error budget analysis, and SLO evaluation tracking

Best Practices:

  • Must start by calling the tool get_environments_info. It will return a list of the available environments, including details of connection errors and configuration errors.

    • CRITICAL: must report issues with environment configurations and connections to the user before any other requests.

  • On every subsequent request, an "environment_alias" must be passed.

    • If the user wants information of all available environments, "environment_alias" MUST be "ALL_ENVIRONMENTS"

  • Use specific time ranges (1-2 hours) rather than large historical queries for better performance

  • Leverage entity selectors to filter data at the source - they are fundamental to getting good results

  • Use problem IDs (UUID format) from list_problems, not display IDs (P-XXXXX)

  • When users specify counts (e.g., "first 25 errors", "50 metrics", "100 errors"), always use the "limit" parameter in tools rather than guessing with searchText

  • Avoid searchText guessing - only use searchText when user explicitly mentions keywords to search for

  • discover_entities ALWAYS requires entitySelector - never call this tool without providing an entitySelector with exactly ONE entity type like type("SERVICE") unless using an EntityId. Multiple entity types are NOT supported.

  • Next Steps are important All requests will come back with a footer called 'Next Steps'. Take into consideration what it says.

Time Range Parameters:

  • Relative Times: now-1h, now-24h, now-7d, now-30d (h=hours, d=days, m=minutes, s=seconds)

  • ISO Format: 2024-01-01T10:00:00Z or 2024-01-01T10:00:00

  • Unix Timestamps: 1640995200000 (milliseconds since epoch)

  • Common Patterns:

    • "last hour" → from: "now-1h", to: "now"

    • "past 24 hours" → from: "now-24h", to: "now"

    • "last week" → from: "now-7d", to: "now"

    • "yesterday" → from: "now-24h", to: "now-0h"

    • "last 6 hours" → from: "now-6h", to: "now"

    • "past 30 minutes" → from: "now-30m", to: "now"

Entity Selector Guidelines

  • CRITICAL CONSTRAINT: You can select only ONE entity type per query. Multiple entity types are NOT supported in a single query.

  • Key Rule: Dynatrace Managed requires type() specification unless using entityId() with full IDs

  • For multiple specific entity ids: Use entityId("ID1","ID2","ID3") with comma-separated IDs (all entities must be same type); must never combine multiple entityId selectors with OR

  • For name-based filtering: Use type("SERVICE"),entityName("exact-name") or type("SERVICE"),entityName.contains("partial")

  • To set several criteria, separate them with a comma. For example, type("HOST"),healthState("HEALTHY"). Only results matching all criteria are included in the response.

  • Example Valid Entity Selectors:

    • type("SERVICE"),entityName.contains("bookstore")

    • entityId("SERVICE-123","SERVICE-456","SERVICE-789")

    • entityId("SERVICE-1234567890ABCDEF")

    • type("AWS_LAMBDA_FUNCTION"),tag("AWS_REGION:us-west-2")

    • type("SERVICE"),tag("environment:production"),entityName.contains("api")

    • type("HOST"),mzName("Production")

  • Example INVALID Entity Selectors (NEVER USE THESE):

    • type(SERVICE),type(PROCESS_GROUP) - Invalid because supports only one type per query

    • entityName("my-service") - Invalid because type must be defined if an explicit entityId is not specified

    • entityId("ID1") or entityId("ID2") - OR operator not supported for entityId criteria, instead use a single criteria with entityId("ID1","ID2")

Log Search Guidelines:

  • Simple query: specify the text to search for, such as "error". This search is case-insensitive.

  • More complex queries: you can specify that the text should be part of the content of the log message, with: content="error" This criteria can be combined with more other search criteria, such as: content="error" AND dt.entity.host="HOST-94A1B472D04D89D9"

Common Workflows:

For problem or incident investigation:

  1. list_problems

  2. get_problem_details

For security Assessment:

  1. list_security_problems

  2. get_security_problem_details

For SLO Analysis:

  1. list_slos

  2. get_slo_details

For entity-based Analysis:

  1. list_entity_types

  2. discover_entities (ALWAYS with entitySelector)

  3. get_entity_details (using use exact entityId)

  4. list_problems or list_events, using the entityId in the entitySelector.

Always be cautious to avoid overloading the self-hosted Dynatrace Managed clusters. Never run queries that could return very large amounts of data, or that could be very expensive to compute.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
dynatrace_managed_get_environments_infoA

Get information about all connected Dynatrace Managed clusters and verify the connections and authentication services.

dynatrace_managed_list_available_metricsA

List available metrics in the Managed cluster, optionally filtered by entity. Results include aggregation types, dimension definitions, and technical metadata for advanced metric analysis.

dynatrace_managed_query_metrics_dataA

Query metric data for a specific time range and metric selector. Must limit the amount of data being retrieved: must use a specific entitySelector, such as using specific entityIds; must use a narrow timerange (with from and to); must use a resolution in line with the timerange, for example if getting data covering several days then the resolution should be hours rather than minutes.

dynatrace_managed_get_metric_detailsC

Get detailed information about a specific metric.

dynatrace_managed_query_logsA

Search logs using simple text queries. Results include event types, expanded metadata fields (up to 8 fields), and enhanced error detection. Managed clusters support basic text search but not structured syntax like "content:" or "loglevel:".

dynatrace_managed_list_eventsB

List events from the Managed cluster within a specified timeframe. Results include event properties, management zones, severity/impact levels, and detailed metadata for comprehensive analysis.

dynatrace_managed_get_event_detailsB

Get detailed information about a specific event.

dynatrace_managed_list_entity_typesA

List all available entity types in the Managed cluster to understand what types of entities can be monitored.

dynatrace_managed_get_entity_type_detailsB

Get details of an entity type.

dynatrace_managed_discover_entitiesA

Discover entities in the Managed cluster using EntitySelector syntax. REQUIRED: Must specify entitySelector with exactly ONE entity type only. Results include entity properties, tags, management zones, and relationship counts for comprehensive topology analysis.

dynatrace_managed_get_entity_detailsB

Get detailed information about a specific entity.

dynatrace_managed_get_entity_relationshipsA

Get relationships that a specific entity has "to" and "from" other entities.

dynatrace_managed_list_problemsB

List problems from the Managed cluster with optional filtering.

dynatrace_managed_get_problem_detailsA

Get detailed information about a specific problem including evidence details for root cause analysis, affected entities, entity tags, and management zones. Use the problemId (UUID format) from list_problems output, NOT the displayId.

dynatrace_managed_list_security_problemsA

List security problems and vulnerabilities from the Managed cluster. Results include package names, technology details, vulnerable components, and comprehensive risk assessment data.

dynatrace_managed_get_security_problem_detailsA

Get detailed information about a specific security problem including CVE details, affected entities, vulnerable components, code locations, and comprehensive technical analysis.

dynatrace_managed_list_slosA

List Service Level Objectives (SLOs) from the Managed cluster. Results include timeframe details, management zones, error budget burn rates, and comprehensive SLO configuration data. IMPORTANT: When evaluate=true, the query must be limited to 25 or fewer results using the limit parameter.

dynatrace_managed_get_slo_detailsA

Get detailed information about a specific SLO.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 18 tools

Disambiguation5/5

Each tool targets a distinct resource-action pair: list/get pairs for problems, events, SLOs, security problems, entities, and metrics are clearly separated, while discovery, relationship, and query tools have unique purposes. There is no meaningful overlap that would cause an agent to select the wrong tool.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern with the same dynatrace_managed_ prefix. Verbs are limited to list, get, query, and discover, making the API surface predictable and easy to navigate.

Tool Count3/5

At 18 tools, the server is at the heavier end of the expected range. The count is justified by covering multiple Dynatrace domains, but the many list/get pairs make the set feel slightly larger than strictly necessary.

Completeness4/5

The toolset provides good read-only coverage across major Dynatrace Managed areas: entities, metrics, logs, problems, events, security problems, and SLOs. Minor gaps exist, such as no log detail retrieval or problem/event mutation, but these are largely outside the apparent monitoring-focused scope.

Maintenance

ActivityMaintained
ResponsivenessLimited data