IT & Security

Datadog MCP

Investigate Datadog telemetry, incidents, dashboards, and service health.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Update llmobs experiment

    Update the mutable properties of an existing experiment. Provide only the fields you want to change; omitted fields are left untouched. At least one updatable field must be provided. Use **status** to track lifecycle: "running" when it starts, then "completed", "failed", or "interrupted" when it finishes. When setting status to "failed", pass **error** with a short reason. Returns the experiment ID and the list of fields that were updated.

  • Update rum operation

    Update a web-UI-configured RUM operation in place: the same object edited by the RUM Operations UI's operation editor. Every field is optional except the identifier — only the fields you pass are changed; the rest keep their current value. This tool does NOT affect SDK-instrumented operations — those are defined in application code via startFeatureOperation(...) and have no backend object; this tool cannot update them. **For SDK-instrumented operations, load the datadog/rum skill (load_datadog_skill) for the SDK instrumentation guidance** — this tool only edits web-UI-configured operations. Use this tool only when the ask is to change how an operation is configured from the RUM Operations UI's perspective, not "help me change my app's code." Identify the operation with operation_id (preferred) or name — at least one is required. When identifying by name, the match is case-insensitive and whitespace-trimmed, exactly like delete_rum_operation; use search_rum_operations first if unsure. This tool cannot rename an operation — name is only used to find it. Each of start/success/failure is a query+event_type pair: set both to replace that step, or leave both unset to keep the step as-is. Setting a query without its event_type (or vice versa) is rejected. abandonment is a tri-state boolean, not a query — omit to leave it as-is, set true to add or refresh it (derived from the effective start_query), set false to remove it. Limitations: each step is a single query only — composite steps (multiple queries combined with AND/OR at one step) and the "update" step type are UI-only features this tool does not expose. If the operation has an existing step of either kind, the update is rejected entirely (even for changes unrelated to that step) rather than silently dropping or corrupting it; edit that operation in the RUM Operations UI instead. **Always confirm the exact change (which fields, new values) with the user before calling. Never update an operation speculatively.** Re-invoke with confirm: true once confirmed.

  • Update rum retention filter

    Update an existing RUM retention filter's attributes in place. Retention filters control which RUM events are indexed and retained. **This changes data-retention configuration and directly affects billing.** Lowering a sample_rate or disabling a filter reduces the data your org retains; raising it increases indexed volume and cost. **Always confirm the exact change with the user before calling. Never modify a filter speculatively.** application_id and filter_id are both required. Every attribute field is optional; only the fields you pass are changed. event_type: one of session, view, action, error, resource, long_task, vital, operation. sample_rate: 0.1 to 100 (percent of matching events retained). This tool does not reorder filters; to change the evaluation order use reorder_rum_retention_filters. Find filter IDs with search_rum_retention_filters. Updating a missing filter_id returns a not-found error. To create a filter use append_new_rum_retention_filter; to remove one use delete_rum_retention_filter.

  • Update-saved-filter

    Update a saved filter's name, description, and/or targeting rules. Only provided fields change. Editing targeting rules propagates to every feature flag that references the filter.

  • Upsert datadog security aap custom rule

    Create or update an AAP (App & API Protection) WAF custom rule — a user-authored in-app WAF rule that matches request traffic and monitors or blocks it. Use for "block requests that…", "write a WAF rule", "virtual-patch this endpoint", "flag a business event". A blocking rule can drop live production traffic, so only call it when the user clearly intends to create or change a rule. Omit id to create (server assigns one); pass an existing rule's id to update. Update replaces the whole rule — fields you omit are re-sent from the current rule so nothing is silently cleared. status (default monitoring): disabled = off; monitoring = flags matches only; blocking = blocks on match (pair with action to shape the block). A business_logic rule cannot block. Blocking is NOT allowed when creating a rule: new rules must be monitoring or disabled. To make a rule block, first create it as monitoring, confirm what it matches, then update it (pass its id) to blocking — only do this when the user explicitly asks to block and approves it. category (required on create): attack_attempt, business_logic, or security_response. api_security is not yet supported. type tags the rule: attack_attempt → an attack class (sql_injection, xss, lfi, …); security_response → block_ip or block_user; business_logic → a free event name (e.g. users.login.success). A rule needs at least one condition OR a path_glob. Each condition ANDs together; a condition matches when any of its inputs satisfies the operator. scope limits the rule to services/envs (omit = all). Call get_datadog_security_aap_custom_rules first for an id and a snapshot before updating. To temporarily stop a rule without losing it, update it with status="disabled" — it can be re-enabled later. To permanently remove a rule, use delete_datadog_security_aap_custom_rule instead. NOT Cloud SIEM detection rules (signals over logs). NOT the passlist (WAF exceptions) or denylist (blocked IPs/users). Keywords: AAP, ASM, WAF, custom rule, in-app WAF rule, blocking rule, virtual patch, block requests, monitor requests, business logic rule, disable rule, pause rule, mute rule.

  • Upsert datadog security aap denylist

    Add/refresh AAP (App & API Protection) denylist entry — block IP/user/user-agent via auto security response. Writes ASM_DATA + Remote Config; seconds-to-minutes propagation. Upsert by (entity_type, value): re-posting overwrites prior expiration + response set. NOT passlist / WAF exception / SIEM suppression. Expiration (pick ONE; mutually exclusive): - omit both fields = permanent block. - duration = relative window, server adds to now. PREFER THIS for "block for N min/hours/days" — agents don't know current wall-clock time. Format: Go duration ("15m", "1h", "24h") or "Nd" / "Nw" (e.g. "7d", "1w"). Must be positive. - expiration = absolute RFC3339 future timestamp (e.g. "2026-06-01T12:00:00Z"). Use only when caller has explicit absolute target. Past = rejected; use unblock_datadog_security_aap_denylist. security_response_ids (optional): subset of response IDs from get_datadog_security_aap_denylist. Omit = every applicable response for entity_type (UI "block in all applications"). Every write tagged blocking_source.view_name="Datadog MCP" for audit. Keywords: AAP, ASM, block, deny, denylist, blocklist, blocking, security response, attacker block.

  • Upsert datadog security trace passlist

    Create or update an AAP (App & API Protection) passlist/allowlist entry — also known as a WAF exclusion filter — that exempts traces from WAF analysis/blocking. AAP traces only; unrelated to Cloud SIEM signal suppression. Use this tool when a user asks to exclude/exempt WAF traces, allowlist an IP/service/path, or add a WAF exception. To remove an entry, use delete_datadog_security_trace_passlist. Actions: - "create": needs "description" + "enabled". - "update": partial patch keyed by "exclusion_filter_id". Omitted fields are preserved (the tool re-sends them from the current entry, so nothing is silently cleared). Call get_datadog_security_trace_passlist first for the right exclusion_filter_id and a snapshot of overwritable fields. No shaping fields (ip_list, path_glob, parameters, rules_target, scope) ⇒ matches ALL AAP traffic. The frontend editor shows a live preview query for the traces that would be filtered; without filters that query is unbounded. Always include at least one shaping field unless the user explicitly wants a global exemption. Category (controlled by "on_match"): - "monitor" → Monitored: traces emitted, blocking suppressed. - omitted on create → Unmonitored: no traces emitted. - On update, omitting "on_match" preserves it. To move Monitored → Unmonitored, pass "on_match":"unmonitored" (tool-only sentinel that clears the field). Don't pass "on_match" on update unless the user explicitly wants a category change. Shaping fields (create + update; omit on update to keep current): - ip_list: CIDR/IP strings. - path_glob: URL path glob (e.g. "/api/v1/health"). - parameters: query/body parameter names (dot notation for nested). - rules_target: [{rule_id?, tags?: {category?, type?}}] — scope to WAF rules. - scope: [{env?, service?}] — scope to services/envs. After create/update: call search_datadog_spans with a query mirroring the entry's filters (service, env, path, IPs) to estimate affected traces, and report the count to the user as a blast-radius check. Keywords: AAP, ASM, passlist, allowlist, exclusion filter, WAF exception, exclude WAF traces, exempt traces, monitored, unmonitored.

  • Upsert data observability monitor annotations

    Create, update, or extend Data Quality monitor annotations. Monitor IDs are stable request identifiers, but when a monitor name has already been resolved, use the name as the primary user-facing label and put the ID in parentheses. Never mention group_hash when it is "0"; mention a non-default group hash only when needed to distinguish multiple groups. Present annotation ranges using RFC3339 UTC timestamps, not raw Unix timestamps; retain Unix values only for tool calls. Do not ask the user for a time range merely because they omitted one. First call inspect_data_observability_monitor_annotations for the selected monitor and entity and infer the range from latest_out_of_bounds_interval. When that interval exists, proactively recommend it as the default candidate and ask whether to apply it. For recurring anomalies, propose only that latest interval unless the user explicitly asks to annotate historical occurrences or says the model is not learning a recurring normal pattern. Never combine intervals across valid or missing points. Only propose their first-to-last envelope when the user wants an ignore annotation to forget the whole history. Ask the user for a range only when inspection finds no candidate or leaves multiple materially different choices. If monitor selection is ambiguous, resolve the monitor first, then inspect it before asking about time. Choose the annotation type by its effect on future alerts: - new_baseline (“Until this happens again”): accept the current state temporarily, but alert on a comparable future change. Prefer it for a sustained level shift or a one-off episode whose recurrence should alert. Do not use it for points within bounds. - expected_occasionally (“Until there’s a bigger anomaly”): remember this event persistently so a similar jump, drop, flatline duration, freshness delay, or percentage value is accepted and only a larger event alerts. Prefer it for valid recurring behavior that users do not want to be alerted about. Do not use it for points within bounds. - false_negative: mark specific in-bounds behavior as anomalous because it should have alerted. Do not use it on an already out-of-bounds point. - ignore: remove invalid or untrustworthy measurements, a bad backfill, or history that is no longer representative of expected future behavior from model history. Do not use it merely to suppress a valid alert. When intent is unclear, ask one outcome-focused question: “Should this same behavior alert next time?” Yes implies new_baseline; no, unless it is larger, implies expected_occasionally. Recurrence is evidence for expected_occasionally, and a sustained step is evidence for new_baseline, but neither overrides the user's judgment that the behavior is valid. Applying no annotation is valid. Normal annotations affect future model behavior and should target points that were outside their contemporaneous bounds; false_negative targets points that were inside them. When an annotation's from and to identify one observation, the tool automatically normalizes the stored boundaries so that observation remains the only included point. Treat this as an implementation detail: present only the final RFC3339 annotation time range. Use action "create" for new annotations, "update" to change existing annotations, and "extend" to change an existing annotation's end time. Update and extend require annotation id. Create requires type and from. During a dry-run preview, an omitted to for create or extend resolves to the current server-side UTC time. Times in a dry run accept relative values such as "now-7d" and "now", RFC3339 timestamps, or Unix seconds encoded as strings. Always call with dry_run true before asking the user for final confirmation. A preview returns the resolved range, compact monitor summaries, proposed annotations, and actionable conflicts only when conflicts exist. Ask for confirmation using only the preview's proposed RFC3339 annotation time range; do not discuss internal boundary normalization. Then call again with dry_run false using the absolute from and to timestamps from proposed_annotations so the applied range exactly matches what the user approved. Applying a create requires both absolute timestamps. Applying an extend requires its absolute to timestamp. For an update, omit unchanged time fields and use the preview's absolute timestamp for each changed time field.

  • Upsert llmobs annotations

    Write label values onto interactions queued in an annotation queue — the graded judgement itself. Read the queue's labels with **get_llmobs_annotation_label_schema** first: values are keyed by `label_schema_id`, and each label constrains what a valid value is (a score's range, a categorical's allowed strings). Passing `label_name` instead resolves the id for you at the cost of an extra lookup. Upsert semantics: an item without `annotation_id` updates your own existing annotation on that interaction, or creates one when there is none. Returns `annotations` (the stored result) and `errors`. **Partial success is normal** — read `errors` rather than assuming every item landed. These are recorded as your judgement, attributed to the calling user. State the basis for each value rather than guessing at labels you cannot evaluate, and use `reasoning` where the label allows it.

  • Upsert reference table rows

    Insert new rows or update existing rows in a reference table. If a row with the same primary key already exists its values are overwritten; if it does not exist it is created. Composite primary keys are not supported. Each row must include all required schema fields including the primary key field. Use list_reference_tables to discover table IDs and schemas first.

  • Upsert rum metric

    Create or update a RUM custom metric. If the metric does not exist it is created; if it already exists its mutable fields (filter, group_by, include_percentiles) are updated. IMMUTABLE after creation: event_type, aggregation, path. To change these, call delete_rum_metric first then re-create. metric_id naming: rum.<event_type>.<description> (e.g. rum.error.checkout_errors). Must start with a letter, alphanumerics/underscores/periods only. Must not start with "rum.measure" (OOTB reserved) or "rum.investigate" (reserved prefix). uniqueness_when: required for event_type=session or view. "match" (default): count on the first event matching the filter. "end": count when the session/view ends — use for duration or completion metrics (e.g. final LCP). Not allowed for other event types. **metric_id, event_type, aggregation, and path are immutable after creation.** To change these, delete the metric and re-create it. **Always confirm the exact change with the user before calling. Never create or update a metric speculatively.** aggregation=distribution requires path. include_percentiles only valid for distribution. group_by_path: RUM attributes to group by (e.g. ["@geo.country","@service"]). High-cardinality attributes (per-event IDs, raw URLs, user identifiers) warn but proceed with confirm: true — each unique value is a separate time series. Prefer bucketed forms like @view.url_path_group, and filter aggressively since even bucketed paths can be large. group_by_tag is optional: tag names are derived from the path when omitted. Examples: Count checkout errors by service: metric_id="rum.error.checkout_errors", event_type="error", aggregation="count", filter="@error.resource.url:*checkout*", group_by_path=["@service"] P95 LCP by country (use "end" to capture the final LCP value at view close): metric_id="rum.view.lcp_by_country", event_type="view", aggregation="distribution", path="@view.largest_contentful_paint", include_percentiles=true, group_by_path=["@geo.country"], uniqueness_when="end" LIMITATIONS: - To query metric values (not definition), use get_datadog_metric or ddsql_run_query. - To list existing metrics: search_rum_metrics with type=custom. - To delete: delete_rum_metric.

PreviousPage 3 / 3