---
title: Workflow Automation MCP Tools
description: >-
  Use AI agents to build, manage, run, and debug workflows with the Datadog MCP
  Server's workflows toolset.
breadcrumbs: Docs > Actions > Workflow Automation > Workflow Automation MCP Tools
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Workflow Automation MCP Tools

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ({% placeholder "user-datadog-site-name" /%}).
{% /alert %}

{% /callout %}

## Overview{% #overview %}

The [Datadog MCP Server](https://docs.datadoghq.com/mcp_server/setup.md) lets AI agents build and manage workflows through the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/).

The `workflows` toolset gives AI clients such as Claude Code, Cursor, and OpenAI Codex access to your workflows, Action Catalog, workflow schema, and execution data. Using natural language, you can create and update workflows, validate their specifications, run published workflows, and investigate execution results.

## Use cases{% #use-cases %}

Use the `workflows` toolset to build automations that:

- **Investigate monitor alerts**: When a service error-rate monitor alerts, run Bits Investigation to correlate latency, recent deployments, and downstream service health, then send the findings to the owning team in Slack.
- **Use custom agents**: Create a custom Bits Agent Builder agent for a specialized system, such as payments, data pipelines, or Kubernetes, and invoke it from a workflow whenever an alert requires that domain expertise.
- **Automate incident escalation**: When a critical incident is declared, gather relevant service context, page the appropriate on-call team, create a case, and notify stakeholders.
- **Investigate deployment regressions**: After a deployment, compare current service behavior with recent changes and, when a likely regression is found, start a Bits Code session to investigate the relevant code and propose a fix.
- **Trigger remediation from an alert**: When a monitor detects a known failure condition, run a remediation action such as restarting a service, invoking an AWS Lambda function, or calling an internal remediation endpoint.
- **Create code fixes**: Investigate an issue, have Bits Code propose a code change, require human review, and implement the change after the proposed fix is approved.
- **Escalate high-severity security findings**: When a critical finding is detected, create a case or ticket, notify the owning team, and page the appropriate responder.

## Quickstart{% #quickstart %}

{% alert level="info" %}
The `workflows` toolset is not enabled by default for external MCP clients.
{% /alert %}

1. [Set up the Datadog MCP Server](https://docs.datadoghq.com/mcp_server/setup.md).

1. When connecting your AI client to the Datadog MCP Server, add `workflows` to the `toolsets` parameter. For example, for the Datadog US1 site:

   ```gdscript3
   https://mcp.datadoghq.com/v1/mcp?toolsets=core,workflows
```

**Note**: If you authenticate using an application key, enable [Actions API access](https://docs.datadoghq.com/account_management/api-app-keys.md#actions-api-access) for that key from [**Organization Settings > Application Keys**](https://app.datadoghq.com/organization-settings/application-keys). Actions API access is disabled for application keys by default and is required to access the Workflow Automation APIs.

1. After connecting, you can make requests, and your AI client calls the appropriate tools on your behalf.

   - "Find workflows owned by my team that are triggered by monitor alerts."
   - "Create a workflow that runs Bits Investigation when this monitor alerts, then posts the findings to Slack."
   - "Debug my last failing workflow run."

## Permissions{% #permissions %}

Workflow Automation MCP tools use the user's existing Datadog permissions. Operations are performed in the Datadog organization used to authenticate the MCP.

| Permission      | Capabilities                                                                                       |
| --------------- | -------------------------------------------------------------------------------------------------- |
| Workflows Read  | Find and retrieve workflows, schemas, and actions, validate specifications, and inspect executions |
| Workflows Write | Create, update, publish, unpublish, and permanently delete workflows                               |
| Workflows Run   | Start workflows and cancel running executions                                                      |

## Available tools{% #available-tools %}

The `workflows` toolset exposes the following tools, grouped by the part of the workflow life cycle they support. This includes finding and inspecting workflows, discovering specifications and actions, creating and managing workflows, validating specifications, running and inspecting executions, and debugging steps. When you make an automation request in natural language, your AI client calls these tools on your behalf. It chains their results together to produce your desired output. See the [Datadog MCP Server tools reference](https://docs.datadoghq.com/mcp_server/tools.md#workflows) for full details on each tool, including permissions and example requests.

### Workflow discovery{% #workflow-discovery %}

- [`list_datadog_workflows`](https://docs.datadoghq.com/mcp_server/tools.md#list_datadog_workflows)
- [`get_datadog_workflow`](https://docs.datadoghq.com/mcp_server/tools.md#get_datadog_workflow)

### Specification and action discovery{% #specification-and-action-discovery %}

- [`get_datadog_workflow_spec_schema`](https://docs.datadoghq.com/mcp_server/tools.md#get_datadog_workflow_spec_schema)
- [`search_datadog_workflow_actions`](https://docs.datadoghq.com/mcp_server/tools.md#search_datadog_workflow_actions)
- [`get_datadog_workflow_action`](https://docs.datadoghq.com/mcp_server/tools.md#get_datadog_workflow_action)

### Workflow creation and management{% #workflow-creation-and-management %}

- [`create_datadog_workflow`](https://docs.datadoghq.com/mcp_server/tools.md#create_datadog_workflow)
- [`update_datadog_workflow`](https://docs.datadoghq.com/mcp_server/tools.md#update_datadog_workflow)
- [`publish_datadog_workflow`](https://docs.datadoghq.com/mcp_server/tools.md#publish_datadog_workflow)
- [`unpublish_datadog_workflow`](https://docs.datadoghq.com/mcp_server/tools.md#unpublish_datadog_workflow)
- [`delete_datadog_workflow`](https://docs.datadoghq.com/mcp_server/tools.md#delete_datadog_workflow)
- [`validate_datadog_workflow`](https://docs.datadoghq.com/mcp_server/tools.md#validate_datadog_workflow)

### Workflow execution{% #workflow-execution %}

- [`execute_datadog_workflow`](https://docs.datadoghq.com/mcp_server/tools.md#execute_datadog_workflow)
- [`get_datadog_workflow_instance`](https://docs.datadoghq.com/mcp_server/tools.md#get_datadog_workflow_instance)
- [`list_datadog_workflow_instances`](https://docs.datadoghq.com/mcp_server/tools.md#list_datadog_workflow_instances)
- [`cancel_datadog_workflow_instance`](https://docs.datadoghq.com/mcp_server/tools.md#cancel_datadog_workflow_instance)
- [`get_datadog_workflow_step_data`](https://docs.datadoghq.com/mcp_server/tools.md#get_datadog_workflow_step_data)

## Further reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Set Up the Datadog MCP Server](https://docs.datadoghq.com/mcp_server/setup.md)
- [Datadog MCP Server Overview](https://docs.datadoghq.com/mcp_server.md)
- [Datadog MCP Server Tools](https://docs.datadoghq.com/mcp_server/tools.md)
- [Workflow Automation](https://docs.datadoghq.com/actions/workflows.md)
