Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Delete llmobs annotation queue
DATADOG_MCP_DELETE_LLMOBS_ANNOTATION_QUEUEPermanently delete an annotation queue **and everything in it** — its queued interactions and all human review labels recorded on them. Automations that feed the queue are detached. This cannot be undone, and the review work is not recoverable. Confirm with the user before calling, and if the labels are worth keeping, export them first by reading **get_llmobs_annotated_interactions**. To take interactions out of a queue while keeping the queue, use **delete_llmobs_annotation_queue_interactions** instead.
Delete llmobs annotation queue interactions
DATADOG_MCP_DELETE_LLMOBS_ANNOTATION_QUEUE_INTERACTIONSRemove interactions from an annotation queue. **The annotations recorded on them are deleted too** — this discards review work, not just the queue entry. The underlying traces and spans are untouched. All-or-nothing: one unknown id fails the whole batch and nothing is removed. To delete only the labels and leave the items queued for re-review, use **delete_llmobs_annotations** instead.
Delete llmobs annotations
DATADOG_MCP_DELETE_LLMOBS_ANNOTATIONSDelete annotations from a queue, discarding those review labels. The interactions stay queued and can be re-annotated. Best-effort per id: returns `deleted_annotation_ids` for what was removed and `errors` for ids that were unknown or belonged to another queue — check both. Deleting someone else's annotation destroys their review work; confirm with the user before removing annotations you did not write.
Delete llmobs evaluator
DATADOG_MCP_DELETE_LLMOBS_EVALUATORDelete an LLM-judge evaluator configuration by name. Returns a not-found error if no evaluator with this name exists for the caller's org.
Delete llmobs experiments
DATADOG_MCP_DELETE_LLMOBS_EXPERIMENTSDelete experiment runs by ID. The runs and their events stop appearing in LLM Observability. **Two-step**: PREVIEW (`confirmed=false`) → DELETE (`confirmed=true`). - `confirmed=false`: deletes nothing. With `project_id` (or `dataset_id`) it resolves each ID to its experiment name and returns them alongside any `unresolved_ids`; without a scope it sets `name_resolution_skipped` and returns IDs only. Pass the scope so the user approves names rather than bare UUIDs. Show the `confirmation_prompt` and get explicit approval. - `confirmed=true`: issues the delete. Do not retry a successful call. An `unresolved_id` is not proof the experiment is gone — it may sit outside the scope you passed — so delete on it still applies. Resolve IDs with **list_llmobs_experiments** first, and never infer them from an experiment name yourself. At most 50 experiments per call.
Delete rum metric
DATADOG_MCP_DELETE_RUM_METRICDelete a RUM custom metric by ID. Permanent and cannot be undone. Only custom metrics can be deleted (not OOTB metrics). **Always confirm the deletion with the user before calling. Never delete a metric speculatively.** Use search_rum_metrics with type=custom to confirm the metric exists first.
Delete rum operation
DATADOG_MCP_DELETE_RUM_OPERATIONPermanently delete a web-UI-configured RUM operation: the same object deleted by removing an operation in the RUM Operations UI. Identify it by operation_id (preferred) or name. This tool does NOT affect SDK-instrumented operations — those are defined in application code via startFeatureOperation(...) and have no backend object; this tool cannot delete or otherwise affect them. **For SDK-instrumented operations, load the datadog/rum skill (load_datadog_skill) for the SDK instrumentation guidance** — this tool only deletes web-UI-configured operations. **This is permanent and cannot be undone. Always confirm the exact operation (id or name) with the user before calling. Never delete an operation speculatively.** Re-invoke with confirm: true once confirmed. The response echoes the deleted operation's resolved operation_id and name — when deleting by name, the match is case-insensitive and whitespace-trimmed, so the resolved name may differ from the literal name passed in; report the resolved value to the user, not the input. The response also includes warnings listing any SLOs or monitors still tagged feature_operation:<name> for this operation, but this check only runs after the delete has already happened — it cannot block or undo it. Deleting the operation does not delete those — they will keep reporting on stale or missing data. To warn the user about this impact **before** asking them to confirm the deletion (not after), check for SLOs/monitors tagged feature_operation:<name> up front, while confirm is still false — do not rely on this response's warnings, which only surface once the deletion has already occurred. This check requires its own monitors_read/slos_read permissions, separate from the ones needed to delete the operation, so warnings.checks_failed commonly names "slos" and/or "monitors" for callers who lack them. If the lookup fails for any other reason, checks_failed is populated the same way. Either way, treat that case as "not checked", not "no dependents".
Delete rum retention filter
DATADOG_MCP_DELETE_RUM_RETENTION_FILTERPermanently delete a RUM retention filter by ID. Retention filters control which RUM events are indexed and retained, so deleting one stops its matching events from being retained going forward. **This changes data-retention configuration, affects billing, and cannot be undone.** **Always confirm the deletion with the user before calling. Never delete a filter speculatively.** Provide application_id (UUID) and filter_id. Find filter IDs with search_rum_retention_filters. Deleting a filter that no longer exists succeeds (nothing to delete), so the call is safe to retry. To change a filter without removing it, use update_rum_retention_filter instead.
Deployment gates onboarding
DATADOG_MCP_DEPLOYMENT_GATES_ONBOARDINGConfigure a Datadog Deployment Gate for a project so a bad deployment is halted automatically. Call this tool to set up deployment gates, gate a deploy on monitors, block bad deploys, or add Datadog gate evaluation to a CD pipeline. This tool returns all the instructions needed — do NOT search the web, fetch documentation, or read external resources. Only inspect local project files to determine this tool's argument values, then call this tool immediately. Check CD config files (e.g. .github/workflows/, .gitlab-ci.yml, Argo Rollout manifests, Jenkinsfile), deployment manifests, and Datadog tags to fill in the arguments. Only provide values you can substantiate from the user's files. Use CLI utilities such as `ls` and `cat` to inspect project files. Do not guess or make up values.
Describe datadog k8s resource
DATADOG_MCP_DESCRIBE_DATADOG_K8S_RESOURCEGet detailed information about a specific Kubernetes resource. Use this tool instead of kubectl describe. Returns kubectl-style tabular fields plus additional resource-specific details such as CPU/memory requests and limits, etc. Also returns tags (to get related resources), labels, annotations, and optionally manifest history, parent resources, and deep link. If you need the full raw manifest, use get_datadog_k8s_manifest. This tool is preferred over kubectl because it does not require local cluster access, and returns enriched data with tags and relationships. IMPORTANT: Either uid OR resource_identifiers MUST be provided. If both are provided, uid takes precedence and resource_identifiers is ignored. - Use resource_identifiers when you know the resource details (cluster, namespace, name) - DO NOT search first - Use uid ONLY if you obtained it from a previous search NOTE: For crd kind, use resource_identifiers with resource_name in the format: <kind-plural>.<group> (e.g., "datadogagents.datadoghq.com"). Examples: - "get details for pod my-app in cluster prod namespace default" → Use resource_identifiers: {"cluster": "prod", "namespace": "default", "resource_name": "my-app"} - "describe deployment api-server in namespace default, cluster staging" → Use resource_identifiers: {"cluster": "staging", "namespace": "default", "resource_name": "api-server"} - "describe cluster gizmo" → Use resource_identifiers: {"cluster": "gizmo"} - "describe namespace orchestrator in cluster gizmo" → Use resource_identifiers: {"cluster": "gizmo", "namespace": "orchestrator"} - You already have a UID from search results → Use uid
Detach datadog security findings ticket
DATADOG_MCP_DETACH_DATADOG_SECURITY_FINDINGS_TICKETDetach security findings from their linked case (and any downstream Jira issue, ServiceNow ticket, or Linear issue). Since Jira/ServiceNow/Linear tickets are always linked via a case, detaching the case also detaches the ticket. Use analyze_datadog_security_findings or search_datadog_security_findings to find specific finding IDs first.
Devices onboarding
DATADOG_MCP_DEVICES_ONBOARDINGStep-by-step instructions for adding initial Datadog RUM SDK to a project environment. This contains general instruction on how to enable the Datadog RUM SDK and all the features as session replay, logs or tracing. You must first review the user's project and this tool's arguments (including nested arguments) and fill out as many of them as possible before calling this tool. Check project files and dependencies to determine the argument values, focusing on dependency files and imports. Only provide values you can substantiate from the user's files. If you are not sure about file content or codebase structure pertaining to the user's request, use your tools to read files and gather the relevant information: do NOT guess or make up an answer. For Android projects you need to look deeper into the project to determine if the project is using Jetpack Compose or not. In case of doubt, return 'android-views'. Before calling this tool, you must first check if the user's project has already been configured for Datadog. If it has, you should not call this tool.
Diff network device configurations
DATADOG_MCP_DIFF_NETWORK_DEVICE_CONFIGURATIONSCompare two ndm network device configuration snapshots and return a unified diff. Inputs: - original_config_id (required) - modified_config_id (required) Use config IDs returned by search_network_device_configurations. The tool does not infer chronology; ordering is the caller's responsibility. If both snapshots are identical, diff is an empty string. Returns: original_config_id, modified_config_id, and diff (unified diff text).
Docker onboarding
DATADOG_MCP_DOCKER_ONBOARDINGInstalls and configures the Datadog Agent container to collect infrastructure metrics, container telemetry, APM traces, and logs. The agent runs as a Docker container alongside any workload on a Docker-enabled host. You must first review the user's project and this tool's arguments and fill out as many of them as possible before calling this tool. Check project files (Dockerfile, docker-compose.yaml, requirements.txt, etc.) to determine argument values. Only provide values you can substantiate from the user's files. Before calling this tool, check if the project has already been configured for Datadog — if it has, do not call this tool.
Do not call refresh widget
DATADOG_MCP_DO_NOT_CALL_REFRESH_WIDGETdo-not-call
Ecs onboarding
DATADOG_MCP_ECS_ONBOARDINGStep-by-step instructions for adding initial Datadog Observability setup to ECS applications and configurations. You must first review the user's project and this tool's arguments (including any nested arguments) and fill out as many of them as possible before calling this tool. Check project files and dependencies to determine the argument values, focusing on dependency files and imports. Only provide values you can substantiate from the user's files. If you are not sure about file content or codebase structure pertaining to the user's request, use your tools to read files and gather the relevant information: do NOT guess or make up an answer. Before calling this tool, you must first check if the user's project has already been configured for Datadog. If it has, you should further check if the project has already been configured for ECS. If it has, you should not call this tool. Use CLI utilities, such as `ls` and `cat` when checking if the project contains existing env files and viewing their contents, respectively.
Edit datadog notebook
DATADOG_MCP_EDIT_DATADOG_NOTEBOOKEdits an existing notebook. Can edit cells, metadata (name, template_variables, tags), or both. Look up widget reference schemas before constructing graph cells. Cell modes: (1) Full-replace (default) — replaces all cells; destroys existing comment marks. (2) Append (append_only=true) — adds cells to the end; preserves comment marks. To edit only metadata, omit the cells parameter and provide at least one of name/template_variables/tags. Metadata edits are done on a best effort basis and can be combined with either cell mode.
Edit global variables
DATADOG_MCP_EDIT_GLOBAL_VARIABLESPartially edit a Synthetics global variable by id. Only name, description, tags (full array replace), and value (value + secure) are editable. Omitted fields are left unchanged; only the fields explicitly set in this call are updated. parse_test_options, parse_test_public_id, and restricted_roles are not editable with this tool.
Edit synthetics tests
DATADOG_MCP_EDIT_SYNTHETICS_TESTSEdit the configuration of a Synthetics test. Use this tool to update the configuration of a test.
Execute code
DATADOG_MCP_EXECUTE_CODEExecute JavaScript in a sandbox with access to Datadog through the official TypeScript-SDK-shaped API and explicitly enabled code-exec extensions. Quick start: ```javascript import { client, v1 } from "@datadog/datadog-api-client"; const monitors = new v1.MonitorsApi(client.createConfiguration()); return await monitors.listMonitors({ pageSize: 1 }); ``` The `dd` global only exposes `dd.time.*`. Product APIs are not mounted under `dd`; import official APIs from `@datadog/datadog-api-client` and construct the appropriate `v1` or `v2` API class as shown above. Reviewed APIs that are not in the official SDK are exposed separately through the sandbox-only `@datadog/code-exec` package when enabled for the current session. Datadog APIs are available through both the official TypeScript SDK and enabled code-exec extensions. Code-exec's value is that you can compose API calls in one script, join data across products, and return a compact result — not that you need a separate MCP helper for each Datadog query. **SDK discovery requirement:** Do not rely on model memory for Datadog SDK method names, request fields, enum values, or response shapes. Before calling `execute_code`, call the separate `search_datadog_sdk` MCP tool unless the exact operation and complete request shape are already present in a known-good example below or were returned by an earlier SDK search in this conversation. If `execute_code` returns `invalid_request`, an unknown method or member error, or a request-shape error, call `search_datadog_sdk` before retrying. Do not repair these errors by guessing fields. Its metadata-only catalog only returns official SDK methods and code-exec extensions available in the current `execute_code` session. In one JavaScript program, select the operation and return its `usageNotes` plus a bounded closure of its `typeRefs` from `catalog.types`. For official SDK operations, use the declared version, API, method, and TypeScript types. For extensions, use the declared module, export, method, and TypeScript types. Do not guess fields from an HTTP path or summary. For non-trivial investigations where you need a multi-query script, API aggregation, cross-source joins, or compact ranked output, load the `datadog/code-exec` skill before writing the script. Skip it for trivial one-liners or when the exact request shape is already clear. Code-exec guidance lives in `datadog/code-exec` and its bundled references; don't guess product-specific skill names like `datadog/traces` or `datadog/metrics` from the task topic. ## Execution discipline - `dd.time.*` returns RFC3339 strings. Logs and spans accept those strings directly. Metrics scalar and timeseries requests require Unix milliseconds; use `Date.parse(dd.time.hoursAgo(...))` and `Date.parse(dd.time.now())`, and do not hand-calculate Unix timestamps. - After an `invalid_request`, re-check the operation signature, type declarations, and usage notes before retrying. Verify timestamp units, enum values, and exact camelCase property names. - Compose related queries in one script and return a compact result. Use `Promise.all` when every result is required. When independent calls can still provide useful evidence if a sibling fails, use `Promise.allSettled` and return the successful evidence alongside a compact failures array. When a script returns after mixed API-call outcomes, `execute_code` reports `outcome: "partial"` and `partial: true`; the returned `value` remains usable, and `diagnostics.api_calls` describes the failed calls. Treat partial evidence as incomplete and retry only the missing source when it is necessary for the answer. If every API call fails, the execution is still reported as a failure even if the script caught the rejections. ## Investigation rules - Use aggregate APIs for totals, top-Ns, rankings, ratios, and percentiles. Prefer aggregate operations where supported. Do not group returned samples and present them as global rankings. - For top-N aggregations, put the sort on the `groupBy` entry. A `limit` without `sort` does not guarantee the first bucket is the top bucket. - For log facet rankings, use `v2.LogsApi.aggregateLogs`. Group by facets such as `@error.kind`, `@http.status_code`, `@http.route`, or `@duration`. - For span rankings, use `v2.SpansApi.aggregateSpans`. Use `v2.SpansApi`, not `v2.TracesApi`, for span search and aggregation. - For metric totals, grouped metric rows, or APM metrics, use `v2.MetricsApi.queryScalarData`; use `queryTimeseriesData` when the answer needs points over time. Scalar responses are columnar under `result.data.attributes.columns`, not `attributes.series` or `attributes.values`. - When the user names a data source — metrics, logs, or spans/traces — use an operation for that source unless the task explicitly asks to compare sources. - If the user asks for operation name, group spans by `operation_name`. If the user asks for endpoint, resource, route, or path, group spans by `resource_name`. - For APM error spans, use `status:error` unless you've verified another facet. Do not assume `error:true` works. - For HTTP status code filters, use attributes: `@http.status_code:[400 TO 599]` or `@http.status_code:[500 TO 599]`, not `status:4xx` / `status:5xx`. - Span reserved fields don't use `@`: `service`, `status`, `resource_name`, `operation_name`, `trace_id`, `type`. Span duration is `@duration` in nanoseconds; p95 span aggregation uses `pc95` over `@duration`. ## Known-good SDK examples ### Find source repositories for a service When you need source code for a service found in telemetry, query its Service Catalog definition. Repository metadata may be represented as `repos`, repo-typed `links`, or the definition's GitHub source URL depending on the schema version. ```javascript import { client, v2 } from "@datadog/datadog-api-client"; const serviceName = "example-service"; const definitions = new v2.ServiceDefinitionApi(client.createConfiguration()); const result = await definitions.getServiceDefinition({ serviceName }); const attributes = result.data?.attributes; const schema = attributes?.schema; const repositories = [ ...(schema?.repos ?? []), ...(schema?.links ?? []).filter((link) => link.type === "repo"), ...(schema?.externalResources ?? []).filter((link) => link.type === "repo"), ].map((repository) => ({ name: repository.name, url: repository.url, })); return { serviceName: schema?.ddService ?? schema?.info?.ddService ?? serviceName, repositories, definitionSource: attributes?.meta?.githubHtmlUrl ?? null, }; ``` ### Investigate a Synthetics failure against a passing baseline Use the v2 result APIs to compare the initial failure with the most recent passing run from the same location and browser device. The result summary's event ID is required for reliable full-result retrieval. ```javascript import { client, v2 } from "@datadog/datadog-api-client"; const publicId = "abc-def-ghi"; const fromTs = Date.parse("2026-01-01T10:00:00Z"); const toTs = Date.parse("2026-01-01T10:15:00Z"); const synthetics = new v2.SyntheticsApi(client.createConfiguration()); // Prefer the initial failure over its fast retries. const failedRuns = await synthetics.listSyntheticsTestLatestResults({ publicId, fromTs, toTs, status: "failed", }); const failing = (failedRuns.data ?? []) .filter((result) => !result.attributes?.executionInfo?.isFastRetry) .sort( (a, b) => (a.attributes?.startedAt ?? 0) - (b.attributes?.startedAt ?? 0) )[0]; if (!failing?.id) { return { error: "No failing Synthetics run found" }; } const failingAttributes = failing.attributes; // Keep location and browser device constant when selecting the baseline. const passedRuns = await synthetics.listSyntheticsTestLatestResults({ publicId, fromTs: failingAttributes.startedAt - 24 * 60 * 60 * 1000, toTs: failingAttributes.startedAt - 1, status: "passed", probeDc: failingAttributes.location?.id ? [failingAttributes.location.id] : undefined, deviceId: failingAttributes.device?.id ? [failingAttributes.device.id] : undefined, }); const passing = (passedRuns.data ?? []).sort( (a, b) => (b.attributes?.startedAt ?? 0) - (a.attributes?.startedAt ?? 0) )[0]; async function getFullResult(summary) { if (!summary?.id) return null; const response = await synthetics.getSyntheticsTestResult({ publicId, resultId: summary.id, eventId: summary.attributes?.additionalProperties?.event_id, timestamp: Math.floor(summary.attributes.startedAt / 1000), }); return response.data?.attributes?.result; } const [failed, passed] = await Promise.all([ getFullResult(failing), getFullResult(passing), ]); const failedSteps = failed?.steps ?? []; const failedIndexes = failedSteps.flatMap((step, index) => step.status === "failed" || step.failure ? [index] : [] ); const compactStep = (step) => step && { type: step.type, failure: step.failure, assertionResult: step.assertionResult, assertions: step.assertions, request: step.request && { method: step.request.method, url: step.request.url, }, response: step.response && { statusCode: step.response.statusCode, body: step.response.body?.slice(0, 1000), }, trace: step.trace, }; return { testType: failingAttributes.testType, location: failingAttributes.location, device: failingAttributes.device, failing: { id: failing.id, startedAt: failingAttributes.startedAt, version: failingAttributes.additionalProperties?.test_version, failure: failed?.failure, assertions: failed?.assertions, response: failed?.response && { statusCode: failed.response.statusCode, body: failed.response.body?.slice(0, 1000), }, trace: failed?.trace, }, passing: passing && { id: passing.id, startedAt: passing.attributes?.startedAt, version: passing.attributes?.additionalProperties?.test_version, }, versionChanged: failingAttributes.additionalProperties?.test_version !== passing?.attributes?.additionalProperties?.test_version, failedSteps: failedIndexes.map((index) => ({ index, failing: compactStep(failedSteps[index]), passing: compactStep(passed?.steps?.[index]), })), }; ``` If there isn't a passing run in the previous 24 hours, widen the baseline search to 7 days and then 60 days. If the result or failed step contains a trace ID, inspect it with the `traces.getTrace` code-exec extension in the same script. If the result version changed but the executed step evidence is inconclusive, use `getSyntheticsTestVersion` to compare retained configurations. ### Top log error kind ```javascript import { client, v2 } from "@datadog/datadog-api-client"; const logs = new v2.LogsApi(client.createConfiguration()); const result = await logs.aggregateLogs({ body: { filter: { query: "service:example-service status:error @error.kind:*", from: dd.time.hoursAgo(1), to: dd.time.now(), }, compute: [{ aggregation: "count" }], groupBy: [{ facet: "@error.kind", limit: 5, sort: { aggregation: "count", order: "desc", type: "measure" }, }], }, }); return (result.data?.buckets ?? []).map((bucket) => ({ errorKind: bucket.by?.["@error.kind"], count: bucket.computes?.c0, })); ``` For HTTP status breakdowns, keep the SDK shape and change the filter/facet: ```javascript const result = await logs.aggregateLogs({ body: { filter: { query: "service:example-service @http.status_code:[400 TO 599]", from: dd.time.hoursAgo(1), to: dd.time.now(), }, compute: [{ aggregation: "count" }], groupBy: [{ facet: "@http.status_code", limit: 10, sort: { aggregation: "count", order: "desc", type: "measure" }, }], }, }); return (result.data?.buckets ?? []).map((bucket) => ({ status: bucket.by?.["@http.status_code"], count: bucket.computes?.c0, })); ``` ### Top span operation or resource ```javascript import { client, v2 } from "@datadog/datadog-api-client"; const spans = new v2.SpansApi(client.createConfiguration()); const result = await spans.aggregateSpans({ body: { data: { type: "aggregate_request", attributes: { filter: { query: "service:example-service status:error", from: dd.time.hoursAgo(1), to: dd.time.now(), }, compute: [{ aggregation: "count", metric: "*" }], groupBy: [{ facet: "operation_name", // use resource_name for endpoint/resource/path questions limit: 5, sort: { aggregation: "count", metric: "*", order: "desc", type: "measure" }, }], }, }, }, }); return (result.data ?? []).map((bucket) => ({ operation: bucket.attributes?.by?.operation_name, count: bucket.attributes?.compute?.c0, })); ``` For p95 span latency, use `compute: [{ aggregation: "pc95", metric: "@duration" }]` and read `bucket.attributes.compute.c0`. ## JavaScript and imports Code-exec runs JavaScript, not TypeScript: type annotations like `const params: v2.LogsApiAggregateLogsRequest = ...` won't parse. Request objects, class names, method names, and imports follow the declarations returned by the API catalog, but the code itself should be plain JavaScript. The official Datadog SDK and enabled extension virtual packages are resolved inside the sandbox. Use the exact extension import returned by the API catalog rather than assuming a namespace: ```javascript import { client, v1, v2 } from "@datadog/datadog-api-client"; ``` There is no general npm/module access. Non-Datadog imports, filesystem access, and arbitrary network calls aren't available. API calls use the current user's Datadog permissions; credentials are not exposed to scripts. Return a value to send it back. Use `console.log/info/warn/error` for intermediate output. Keep returned values small: aggregate rows, counts, and selected fields rather than raw API envelopes or broad samples. For paginated search and list APIs, follow response cursors when completeness matters; otherwise return a bounded page and label it as partial. Top-level `await` is supported. Optional `timeout` is in seconds (1–180, default 60); raise it for slower aggregate queries. ## Sandbox utilities The only public `dd.*` utilities are time helpers: ```javascript const from = dd.time.hoursAgo(1); const to = dd.time.now(); ``` If you need examples or field discovery after choosing an aggregate path, use a tiny sample and label it as a sample. Do not turn sampled rows into authoritative rankings.