03/23/2026 | Press release | Distributed by Public on 03/23/2026 13:57
As AI agents take on more operational tasks, the tools they use to interact with platforms matter. MCP (Model Context Protocol) is emerging as the standard for structured agent-tool interaction, but it adds an abstraction layer that not every workflow needs. Sometimes you just need to run a command, get a result, and act.
dtctl (short for "Dynatrace control") is the open-source CLI for the Dynatrace platform; it's kubectl-inspired, terminal-native, and designed for both AI agents and humans. Platform engineers, SREs, and developers use it to manage workflows, dashboards, queries, and settings from the command line.
With dtctl, AI agents use the same command line interface and commands that your platform engineers, SREs, and developers use to autonomously manage workflows, dashboards, queries, and settings.
Dynatrace offers three access patterns for AI agents and automation, all secured through the same role-based access controls. Regardless of which path you choose, an agent can access only the data and operations permitted by its authentication scopes. The right choice depends on your use case; in practice, most teams use more than one approach.
CLIs have been the primary interface for automation since the early days of Unix, and for good reason. Output is structured, syntax is predictable, and there's no protocol overhead. MCP mirrors how humans interact with tools and includes discovery, negotiation, and structured handshakes. This is valuable when you need it; however, every schema negotiation round-trip adds tokens and latency to the agent's context window. CLI skips that entirely and cuts straight to execution.
Figure 1. (video) Examples of dtctl capabilitiesWhether you're a platform engineer or an AI agent, dtctl gives you the same powerful Dynatrace interface. Like kubectl or git, dtctl follows a simple verb-noun syntax: Just state what it is you want to do, then state what you want to act on. What makes dtctl stand out is that it's designed to support human engineers and AI agents equally.
For all technical details and the full command reference, visit the dtctl repository on GitHub.
What makes AI agents truly useful is their ability to close the loop: They can discover data, make changes, verify results, and fix what's broken all without handing control back to a human operator.
Here's what such a scenario looks like using dtctl. In this example, a Dynatrace workflow queries the number of Kubernetes pods and sends an email report. The goal is to enhance the query so that it lists every pod with its respective node tolerations, making it a cross-entity query that explores the data model, identifies the correct relationships, and iterates until the output is correct.
Using GitHub Copilot in VS Code, the agent works through the full cycle autonomously:
The human operator defines only the intent, and the agent handles the rest. Watch this full video walkthrough to see it in action.
One concrete example of what dtctl enables is dashboard creation and management directly from the terminal. Because Dynatrace dashboards are structured data, they can be version-controlled, templated, and automated just like any other code artifact.
To illustrate this, the OpenClaw Gateway Monitoring dashboard shown below was created end-to-end in just a few minutes. A developer used GitHub Copilot in VS Code to create an AI observability dashboard similar to others, tailored specifically for monitoring OpenClaw. The agent then pulled existing Dynatrace AI observability dashboards as templates, adapted the layouts and queries to OpenClaw's monitoring needs, and deployed the results using dtctl; all this was managed by the developer without leaving their IDE.
Figure 2. A custom AI Observability dashboard, created using dtctl.For day-to-day management, the workflow remains the same, whether executed by an agent or a human: just pull a dashboard, adjust queries or filters, preview the changes, and save the dashbaord. Coding agents can be instructed to update queries across multiple dashboards with a single prompt. And it takes just a single command to promote dashboards from dev to production, or to roll them back instantly if something breaks.
You can take dtctl even further: wire dashboard definitions into your CI/CD pipeline so that, as a service evolves, its dashboards evolve automatically.
dtctl is fully open source and available at dynatrace-oss/dtctl on GitHub, with documentation, skills, and examples to get you started.
Our dtctl Quick Start Guide walks you through the complete setup in under five minutes:
From there, install the agent skill to teach GitHub Copilot, Claude Code, or Cursor how to operate your Dynatrace environment.
The project is in active development. If you hit a bug or have a use case to share, open a GitHub issue or start a discussion, and help us shape the roadmap.