Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Search audit events
DATADOG_MCP_SEARCH_AUDIT_EVENTSSearch Datadog Audit Trail events using a query string. Audit Trail monitors user activity across the Datadog platform to help maintain compliance, enforce platform governance, and build transparency, capturing audit events across configuration, access, and billing assets (monitor edits, API key creation, role changes, dashboard modifications, etc.). Use this tool when you need to filter by attributes like @evt.name, @usr.email, or @action; use list_audit_events for plain recent-events scans. Responses are capped by max_tokens and return an opaque cursor for fetching subsequent pages.
Search cws agent events
DATADOG_MCP_SEARCH_CWS_AGENT_EVENTSSearch and retrieve raw Workload Protection agent events — the low-level runtime security events collected by the Datadog Agent (eBPF-based) on hosts and containers. Workload Protection is also known as Cloud Workload Security (CWS) or CSM Threats; the terms "runtime security", "runtime threats", and "agent events" all refer to this data. Agent events include process executions, file access, network connections, and DNS queries — the raw process/file/network/DNS activity on your workloads. These are the underlying events that trigger Workload Protection security signals, so use this tool when you need the raw events themselves rather than the signals (detections) that fired on top of them. The query 'source:runtime-security-agent' is automatically prepended. Use the agent events schema tool to discover available fields for filtering.
Search datadog ci pipeline events
DATADOG_MCP_SEARCH_DATADOG_CI_PIPELINE_EVENTSSearch and retrieve CI pipeline events from Datadog with timing, failure reasons, error messages, and retry history. Use this tool to troubleshoot CI failures, inspect structured failure details, or compare branches. For counts, rates, or statistics, use aggregate_datadog_ci_pipeline_events instead. To investigate a CI failure, search job-level events with: @git.commit.sha:<current_sha> @git.branch:<current_branch> @ci.status:error and ci_level=job. Response columns vary by ci_level: - pipeline: start, end, pipeline_name, pipeline_id, status, duration_seconds, branch - stage: start, end, pipeline_name, stage_name, status, duration_seconds - job: start, end, pipeline_name, job_id, job_name, status, duration_seconds, @error.message, @error.domain, @error.subdomain - step: start, end, pipeline_name, step_name, status, duration_seconds For pagination, pass next_page_cursor from the response metadata as page_cursor in the next call. If unsure whether a facet exists or needs an @ prefix, read the datadog://mcp/ci-pipeline-facets resource.
Search datadog dashboards
DATADOG_MCP_SEARCH_DATADOG_DASHBOARDSList and retrieve information about Datadog dashboards. This tool helps discover available dashboards, their IDs, titles, and underlying queries. Use this tool when you need to find specific dashboards, get an overview of all dashboards in your Datadog account, or find important logs+metrics queries in dashboards.
Search datadog database plans
DATADOG_MCP_SEARCH_DATADOG_DATABASE_PLANSSearch and retrieve Database Monitoring (DBM) query execution plans from Datadog. Query execution plans show how the database engine executes queries, including index usage, join strategies, and cost estimates. Use this to analyze query performance and identify optimization opportunities.
Search datadog database samples
DATADOG_MCP_SEARCH_DATADOG_DATABASE_SAMPLESSearch and retrieve Database Monitoring (DBM) query samples from Datadog. Query samples represent individual query executions with performance metrics, allowing you to analyze database activity patterns, identify slow queries, and investigate database performance issues.
Search datadog entities
DATADOG_MCP_SEARCH_DATADOG_ENTITIESSearch Datadog services through the entity graph, including service ownership and direct upstream or downstream relationships. Prefer this tool over searching telemetry, monitors, dashboards, or other resources when the request is about service identity, catalog ownership, dependencies, or services owned by the current user's teams. Use entity_type=service directly for ordinary service lookup and dependency questions; kind: is added by the server. Ref, type, and type-specific identity fields are always returned, so omit fields for name-only discovery. Treat an unqualified list or dependency request as complete unless the user asks for a page or sample. Follow page_next_cursor from METADATA and each truncated relationship's next_cursor until complete. Set owned_by_current_user_teams=true instead of inferring the user's teams from telemetry. Query supports boolean expressions such as name:chrono OR owner:idp. Use exact name:value when the user supplies a concrete internal service name; do not broaden it with wildcards. Use name:value* for prefix requests. Use name:*value* and return candidates for contains or ambiguous requests. Contains results are ordered, not relevance-ranked; if they are truncated, narrow the query or ask the user to clarify instead of treating the first page as the best matches. For a dependency question with no direction, request both upstream_services and downstream_services and keep the directions separate. Service ownership is returned as owner; the legacy term team is accepted as an input alias.
Search datadog error tracking issues
DATADOG_MCP_SEARCH_DATADOG_ERROR_TRACKING_ISSUESSearch Error Tracking Issues from Datadog. Use this tool to search errors across data sources (RUM, Logs, Traces, ...). Returns groups of errors ("Issues"), along with the number of times they occurred within the given time range ("total_count"). The Issue's ID ("issue_id") can be used as "issue.id" or "@issue.id" in Datadog query syntax. Use the get_datadog_error_tracking_issue tool to fetch the full details of an Issue.
Search datadog events
DATADOG_MCP_SEARCH_DATADOG_EVENTSSearch and retrieve raw Datadog events (deployments, alerts, system activities, infrastructure changes, etc.). Do NOT use for counts, aggregations, or grouped analysis — use aggregate_events instead. Best for: inspecting individual events, reading event titles/messages/tags, and exploring event patterns before deciding how to aggregate them. Add a 'source' only when the question names a kind of event: deploys and other tracked changes: 'source:change_tracking', not 'source:kubernetes', which returns events but not deploys a deployed version Datadog detected as regressing: 'source:deployment_analysis' a monitor firing or recovering: 'source:alert' monitor, downtime and mute edits: 'source:monitor_audit_event' cloud resource changes: 'source:resource_changes' Audit Trail, DORA and Synthetics results are near-absent from the feed and have their own products; tell the user rather than searching events. To see which sources this org has, call aggregate_events with query '*' over 'now-7d', computes [{"field":"*","aggregation":"count","output":"n"}] and group_by {"fields":["source"]}.
Search datadog forms
DATADOG_MCP_SEARCH_DATADOG_FORMSSearch Datadog forms for the authenticated organization. Returns form metadata including name, description, active status, and creation time.
Search datadog hosts
DATADOG_MCP_SEARCH_DATADOG_HOSTSExplore Datadog hosts inventory with SQL. Queries run against the virtual 'hosts' table backed by "dd.hosts" (Advanced Query API), which exposes hostname, hostname_aliases (text[]; use hostname_aliases[1]), tags (hstore map; use tags->'key'), cloud_provider, resource_type, instance_type, os, os_version, agent_version, memory_mib, cpu (hstore map; use cpu->'key'), kernel (hstore map; use kernel->'key'), sources (text[]; use sources[1]), modification_detected_at (timestamp). DDSQL notes: DDSQL (Datadog SQL) is a PostgreSQL subset: every non-aggregated SELECT column must appear in GROUP BY, SELECT aliases cannot be reused in WHERE/GROUP BY/HAVING (repeat the full expression instead, e.g., GROUP BY DATE_TRUNC('hour', timestamp) not GROUP BY hour), and only declared table columns may be referenced. Use the -> operator or json_extract_path_text (cast as needed) for JSON access. Avoid unsupported constructs like ANY(), ->>, QUALIFY, information_schema, and current_timestamp. Column names containing special characters like '@' must be quoted (e.g., SELECT "@foo" FROM logs).
Search datadog incidents
DATADOG_MCP_SEARCH_DATADOG_INCIDENTSSearch Datadog incidents. Default sort: newest first. Supports filtering by state, severity, title, team, creation time, and more. Use `semantic_query` for natural-language search over AI-generated incident summaries. Prefer `query` first; only add `semantic_query` when query by keyword and metadata filters aren't sufficient to answer the question.
Search datadog k8s resources
DATADOG_MCP_SEARCH_DATADOG_K8S_RESOURCESSearch for Kubernetes resources. Use this tool instead of kubectl to determine the state of Kubernetes resources (for example, Kubernetes deployments or pods). This tool is preferred over kubectl because it does not require local cluster access, works across all clusters, and returns enriched data with tags.
Search datadog logs
DATADOG_MCP_SEARCH_DATADOG_LOGSSearch and retrieve raw log entries or log patterns. Do NOT use for counting or aggregations — use analyze_datadog_logs instead. Best for: viewing raw logs, discovering patterns (use_log_patterns=true), and discovering custom attributes via extra_fields for use as extra_columns in analyze_datadog_logs. Response shape (when extra_fields is set, output is YAML): three buckets — (1) top-level fields like env/host/service queried bare (`env:prod`); (2) `attributes:` map with source-prefixed keys — `custom.X` and `attributes.X` are queried as `@X` (strip the bucket prefix), but `error.X` keeps its prefix as `@error.X` because `error` is a real top-level attribute; (3) `tags:` list of `key:value` strings queried bare. Load the datadog/logs skill for the full key-translation table.
Search datadog metrics
DATADOG_MCP_SEARCH_DATADOG_METRICSList available metrics in Datadog with optional filtering by name and tags. Set use_cloud_cost=true to search Cloud Cost Management metrics.
Search datadog monitors
DATADOG_MCP_SEARCH_DATADOG_MONITORSList and retrieve information about Datadog monitors. This tool helps discover monitors, their status, configuration, and alerts. Use this tool when you need to find monitors for investigation, management, or analysis purposes.
Search datadog notebooks
DATADOG_MCP_SEARCH_DATADOG_NOTEBOOKSSearch Datadog notebooks. Use this tool when you need to find notebooks for investigation or monitoring purposes. Results can be filtered, for example by author, and sorted. This tool returns snippets of the original notebook. To fetch the entire notebook, use the get_datadog_notebook tool.
Search datadog rum events
DATADOG_MCP_SEARCH_DATADOG_RUM_EVENTSSearch and retrieve raw Datadog RUM events using advanced query syntax. Do NOT use for counts, aggregations, or grouped analysis. Best for: inspecting individual RUM events, debugging specific user experience issues, exploring available event attributes in raw or detailed_output responses before deciding what to aggregate. Supports filtering by event types (session, view, action, error, resource, long_task, vital, operation), user attributes, performance metrics, and more. Results include detailed event data for analysis.
Search datadog sdk
DATADOG_MCP_SEARCH_DATADOG_SDKRun JavaScript against the official SDK and code-exec extension catalog available to `execute_code`. The catalog contains only operations available to the current user and sandbox policy. Its data stays inside the sandbox; only the value you return enters the conversation. Quick start: filter the `catalog.operations` array, then look up type declarations in the `catalog.types` record by type ID. ```javascript const operations = catalog.operations .filter((operation) => operation.api === "MonitorsApi") .slice(0, 5); return operations.map((operation) => ({ operation, types: operation.typeRefs .map((id) => catalog.types[id]) .filter(Boolean), })); ``` There is no `search(...)` helper. `catalog.operations` is an array; `catalog.types` is a record keyed by type ID, not an array. Your code runs as the body of an async function. Write plain JavaScript, not TypeScript, and use `return` to return JSON. There is no `dd`, package loader, network, or Datadog API access in this metadata-only sandbox. Catalog operations have one of two honest surfaces. Official SDK operations use `version`, `api`, and `method` through `@datadog/datadog-api-client`. Extension operations use `surface: "code-exec"` plus their exact `module`, `export`, and `method` through the sandbox-only `@datadog/code-exec` package. Do not translate either surface to `dd.<namespace>`; product API/helper namespaces are not exposed on `dd`. For example, an operation with `version: "v2"`, `api: "SpansApi"`, and `method: "aggregateSpans"` is called as: ```javascript import { client, v2 } from "@datadog/datadog-api-client"; const spans = new v2.SpansApi(client.createConfiguration()); const request = { /* fields from v2.SpansApiAggregateSpansRequest */ }; const result = await spans.aggregateSpans(request); ``` ```typescript type SDKVersion = "v1" | "v2"; type TypeID = `${SDKVersion | "code-exec"}.${string}`; interface Catalog { readonly schemaVersion: 1 | 2; readonly operations: readonly (SDKOperation | ExtensionOperation)[]; readonly types: Readonly<Record<TypeID, TypeDefinition>>; } interface SDKOperation { readonly id: string; // for example, "v2.LogsApi.aggregateLogs" readonly version: SDKVersion; readonly api: string; readonly method: string; readonly summary: string; readonly httpMethod: string; readonly path: string; readonly tags: readonly string[]; readonly pagination: boolean; readonly signature: string; readonly typeRefs: readonly TypeID[]; readonly usageNotes: readonly string[]; } interface ExtensionOperation { readonly id: string; // for example, "code-exec.product.operation" readonly surface: "code-exec"; readonly module: "@datadog/code-exec"; readonly export: string; readonly method: string; readonly summary: string; readonly signature: string; readonly typeRefs: readonly TypeID[]; readonly usageNotes: readonly string[]; readonly readOnly: true; } interface TypeDefinition { readonly id: TypeID; readonly declaration: string; readonly refs: readonly TypeID[]; } declare const catalog: Catalog; ``` The catalog is function-free: there is no `describe`, `search`, continuation callback, or executable `next` value. Use normal array/object traversal. Search `catalog.operations` to choose an available operation. Before writing `execute_code`, return the selected operation together with a bounded closure of its `typeRefs`. This gives you the exact request and response declarations plus endpoint-specific usage notes in one call. Do not return the complete operations or types collections. Use this helper to collect a bounded type closure while following inheritance, unions, and nested request/response models: ```javascript function collectTypes(rootIds, maxTypes = 12, maxChars = 12000) { const definitions = []; const omittedTypeIds = []; const pending = [...rootIds]; const seen = new Set(); let chars = 0; while (pending.length > 0) { const id = pending.shift(); if (seen.has(id)) continue; seen.add(id); const definition = catalog.types[id]; if (!definition) continue; if ( definitions.length >= maxTypes || chars + definition.declaration.length > maxChars ) { omittedTypeIds.push(id); continue; } definitions.push(definition); chars += definition.declaration.length; pending.push(...definition.refs); } return { definitions, omittedTypeIds }; } ``` Keep matched operation objects and traverse their `typeRefs` in the same program; you don't need to know operation or type IDs before the search runs. Wrap a single `find` result directly with this helper before returning it; for `filter` results, map over them instead, for example: `matches.map((operation) => describeOperation(operation))`. ```javascript function describeOperation(operation, maxTypes = 12, maxChars = 12000) { if (!operation) return null; return { operation, types: collectTypes(operation.typeRefs, maxTypes, maxChars), }; } ``` Find an operation and return everything needed to write the call: ```javascript const operation = catalog.operations.find( (candidate) => candidate.id === "v2.MetricsApi.queryScalarData" ); if (!operation) return null; return { operation, types: collectTypes(operation.typeRefs), }; ``` Search for several products in one call. Keep each type result small when comparing multiple operations: ```javascript const targets = [ { name: "logs", api: "LogsApi", method: "aggregateLogs" }, { name: "spans", api: "SpansApi", method: "aggregateSpans" }, { name: "metrics", api: "MetricsApi", method: "queryScalarData" }, ]; return targets.map((target) => { const operation = catalog.operations.find( (candidate) => candidate.api === target.api && candidate.method === target.method ); if (!operation) return { name: target.name, operation: null }; return { name: target.name, operation: { id: operation.id, signature: operation.signature, summary: operation.summary, usageNotes: operation.usageNotes, }, rootTypes: operation.typeRefs .map((id) => catalog.types[id]) .filter(Boolean), }; }); ``` Search an endpoint family and return the matched operations with bounded type closures: ```javascript const matches = catalog.operations .filter( (operation) => typeof operation.path === "string" && operation.path.includes("/monitor") ) .slice(0, 3); return matches.map((operation) => describeOperation(operation, 4, 3000)); ``` Search type declarations directly when an operation references a union and you need one specific member: ```javascript return Object.values(catalog.types) .filter((definition) => /MetricsScalarQuery|ScalarFormulaRequestAttributes/.test(definition.id) ) .slice(0, 10); ``` Keep results focused so the response uses only the context needed for the follow-up `execute_code` call. For broad matches, lower `maxTypes` or `maxChars`, return only root types, or narrow the operation search with `filter`, `map`, and `slice`.
Search datadog security findings
DATADOG_MCP_SEARCH_DATADOG_SECURITY_FINDINGSFallback tool for retrieving full security finding details. Prefer analyze_datadog_security_findings (with get_datadog_security_findings_schema) for most findings analysis tasks. Use this tool ONLY when: 1) analyze_datadog_security_findings fails, or 2) you need complete finding details not available via SQL. Returns full finding objects which consume more context than SQL aggregations. DEEP LINKS: Always link to findings using the id field — format: <deep_link_base_url>/security/finding/<id>. The correct base URL is in every response as 'deep_link_base_url'. Tip: most users want open findings — include '@status:open' in your filter unless specifically asked for all statuses.