You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document create, update, and delete detection rule MCP tools (#37687)
* [NOJIRA][docs] Document create, update, and delete detection rule MCP tools
Add three new write tools to the security MCP toolset docs:
- create_datadog_security_detection_rule
- update_datadog_security_detection_rule
- delete_datadog_security_detection_rules
Updated in both security/mcp_server.md and mcp_server/tools.md.
Also updated the use cases section to reflect write capabilities.
* [docs] Remove datadog_mcp:created/updated tag mentions from detection rule tool docs
* [docs] Add enable/disable examples to update detection rule tool docs
* Fix wording
* Remove em dash.
Creates a new detection rule. Call `get_datadog_security_detection_rules_schema` first to fetch the payload grammar, then supply a complete rule payload. On success, returns the full rule including its server-assigned ID.
1200
+
1201
+
- Create a threshold detection rule that fires when more than 10 failed logins occur from the same IP in 5 minutes.
1202
+
- Author a new log detection rule for CloudTrail that alerts on IAM privilege escalation.
1203
+
- Create a detection rule for `source:nginx` that generates a signal when error rate exceeds 100 per minute.
Updates an existing custom detection rule by replacing it entirely. Call `get_datadog_security_detection_rules` first to fetch the current rule body, modify the fields you need, and submit the full updated object. Cannot update Datadog-shipped default rules.
1209
+
1210
+
- Enable detection rule `abc-123-def`.
1211
+
- Disable the brute force detection rule.
1212
+
- Update the threshold on my brute force detection rule from 10 to 20 failed logins.
1213
+
- Add a new case to detection rule `abc-123-def` that fires at critical severity.
1214
+
- Change the group-by field on this rule from `@usr.ip` to `@network.client.ip`.
Deletes one or more custom detection rules by ID. Only custom (non-default) rules can be deleted. Default rules return 403. Each rule is authorized individually; failures appear in `failed_rules` without aborting the batch.
1220
+
1221
+
- Delete detection rule `abc-123-def`.
1222
+
- Remove these three test detection rules I created earlier.
Copy file name to clipboardExpand all lines: content/en/security/mcp_server.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ You can use the `security` toolset to:
40
40
-**Investigate specific findings**: Retrieve full details for a set of findings to understand scope, affected resources, and remediation context.
41
41
-**Triage security findings**: Create Jira issues, ServiceNow tickets, or Case Management cases for findings. Assign findings to team members, or mute false positives and accepted risks.
42
42
-**Correlate signals and findings**: Cross-reference active security signals with open findings to determine whether an alert is tied to a known posture issue.
43
-
-**Inspect and manage detection rules**: Listand retrieve detection rule definitions to understand what logic is generating signals.
43
+
-**Inspect and manage detection rules**: List, retrieve, create, update, and delete detection rules to understand and manage the logic generating signals.
44
44
-**Manage suppressions**: Create, update, and delete suppressions to silence noisy rules for specific conditions without disabling them entirely.
45
45
-**Remediate vulnerabilities with an AI agent**: Pull library vulnerability findings, including code location and remediation guidance, and pass them to your AI agent to apply patches directly in your codebase.
46
46
@@ -126,6 +126,18 @@ The `security` toolset exposes the following tools to your AI client. Each tool
126
126
: Retrieves security detection rules. Supports two modes: provide `rule_id` to get the full definition of a single rule by ID, or omit `rule_id` to list rules (optionally filtered with `query` and token-limited with `max_tokens`). The two modes are mutually exclusive.
: Creates a new detection rule. Call `get_datadog_security_detection_rules_schema` first to fetch the required payload grammar, then supply a complete rule payload. On success, returns the full rule including its server-assigned ID.
: Updates an existing custom detection rule by replacing it entirely. Use this to enable or disable a rule, change thresholds, add cases, and more. Call `get_datadog_security_detection_rules` first to fetch the current rule body, modify the fields you need to change, and submit the full updated object. Cannot update Datadog-shipped default rules. On success, returns the full updated rule.
: Deletes one or more custom detection rules by ID. Only custom (non-default) rules can be deleted. Each rule is authorized individually; rules that cannot be deleted appear in `failed_rules` without aborting the batch. Returns `deleted_rules` and `failed_rules`.
0 commit comments