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.

  • List-stale-feature-flags

    List stale feature flags in the organization, each enriched with the reason it is stale and a tool_hints array of suggested next-step tools to clean it up.

  • List synthetics locations

    Returns all Synthetics locations available to this org — managed (aws:, gcp:, azure: prefixes) and private (pl: prefix). When presenting results, include at least the id and name for each location.

  • Llm observability onboarding

    Step-by-step instructions for adding initial Datadog LLM Observability (AKA, 'LLMObs') setup to applications with an LLM or AI agent. 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 LLM Observability. 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. This tool can be used to set up LLM Observability for user applications with an LLM or agentic components, e.g., Vercel AI SDK, Anthropic SDK, OpenAI SDK, LangGraph, etc.

  • Load datadog skill

    Load a Datadog skill guide before using related Datadog tools. Skills improve query quality by documenting the right attributes, syntax, and common pitfalls. Skill names depend on the visible toolsets; if you do not already know the exact skill name from a prior list_datadog_skills response, call list_datadog_skills first and do not guess names from topic keywords. Set header_only=true to preview a skill's summary, related skills, and bundled resources. Set resource_path to load a specific bundled reference.

  • Monitor groups search

    Searches monitor groups to find which specific groups (e.g. host:web-1) are alerting across monitors. Use monitor_id to filter groups for a specific monitor, or use the query field with supported facets: group_status (e.g. 'group_status:alert'), type (e.g. 'type:metric'), monitor_name (e.g. 'monitor_name:High CPU'), or any monitor tag (e.g. 'env:prod'). NOTE: do NOT use 'monitor_id:XXX' inside the query string — pass monitor_id as a separate parameter instead.

  • Optimize datadog database query

    Analyze a SQL query for optimization opportunities using deterministic rules plus LLM-assisted analysis. Returns actionable recommendations including query rewrites, anti-pattern detection (SELECT *, OFFSET without ORDER BY, ORDER BY without LIMIT), missing index suggestions, and idle-in-transaction impact analysis. Provide the SQL text directly, or a query_signature to resolve it automatically. Scope of what each input unlocks: - sql alone is enough for the rule-based rewrite and anti-pattern optimizers AND for missing-index detection, which resolves the schema catalog itself and compares your predicates against the table's existing indexes. A query that was just written and has never run is a fully supported input. - query_signature additionally enables the optimizers that read a query's recorded history: idle-in-transaction analysis, and history-backed missing-index detection from stored explain plans. Pass it when you were given one. If the query has no signature because it has not run in a monitored database yet, do not go looking for one and never substitute another query's signature — the signature-free path above still applies, and you can always validate an index candidate of your own with benchmark_datadog_database_query, which needs no signature. - database_instances and databases: Required for schema-aware optimizations like SELECT * column expansion and schema-validated rewrites. Without them, optimizers can detect issues but cannot provide expanded SQL. An empty result, or Rewrite with applied=false, means no rule matched this query shape — it is not a verdict that the query is efficient.

  • Rank data entities by lineage degree

    Rank entities by their transitive lineage connectivity using a pre-built snapshot. Returns parent-level entities (tables, dashboards, jobs, etc.) ranked by how many other entities they connect to. Child nodes such as columns are automatically rolled up to their parent entity — column-level lineage is aggregated to the table level transparently. Direction controls which signal to rank by: - "downstream" (default): rank by downstream_count. High = widely consumed, breaking it has broad impact. - "upstream": rank by upstream_count. High = deep dependency chain. upstream_count=0 are sink entities. - "both": return both counts. Use to identify entities that are both critical upstream sources and widely consumed. downstream_count=0 with direction="upstream" identifies landing entities (raw ingestion points) — highest-priority to monitor because everything downstream depends on them. Parameters: - direction: "downstream" (default), "upstream", or "both". - limit: number of entities to return (default 50). Server enforces its own hard cap. - include_node_types: only include these node types in results (e.g. ["database_table"]). - exclude_node_types: exclude these node types from results (e.g. ["dbt_model", "s3_bucket"]). Returns entities sorted by the primary direction's count descending. Each entry includes entity_id, name, type, core_attrs, lineage counts, and a lineage_percentile (0–100).

  • Rank data observability monitor candidates

    Rank tables by their importance for monitoring, combining lineage impact and query activity into a single composite score. Use this as the primary entry point for "what should I monitor?" questions — it produces a ranked list of high-value tables in one call instead of cross-referencing rank_data_entities_by_lineage_degree and get_popular_warehouse_tables_by_query_frequency manually. Scoring (composite_score, 0–100): composite_score = 0.5 * lineage_percentile + 0.5 * query_percentile Each input percentile is itself a weighted blend: lineage_percentile = 0.65 * BI-downstream + 0.35 * warehouse-internal-downstream query_percentile = 0.6 * read percentile + 0.4 * write percentile Tables that appear in only one signal are not penalized — the available signal becomes the sole score. Tables that appear in NEITHER signal are filtered out. Internally fetches a broad candidate pool — 200 lineage-ranked tables and the default per-signal query top-N — then scores and sorts before applying limit. Parameters: - limit: number of top candidates to return (default 50). - time_period: how far back to look for query activity (default 7d). - additional_filter: extra filter for the query signal in Datadog log syntax (e.g. '@platform:snowflake', '-@schema:information_schema'). - include_node_types / exclude_node_types: pass-through to lineage rank. Returns: candidates sorted by composite_score descending. Each entry includes the entity, all input dimensions (lineage_percentile, query_percentile, bi_downstream_count, warehouse_downstream_count, select_percentile, write_percentile), and the composite_score.

  • Read kafka messages

    Read messages from a given Kafka cluster/topic via the Datadog Agent. Dispatches a Remote Config action and polls for the agent's response. REQUIRES the `data_streams_monitoring_capture_messages` permission. Resolving `cluster` and `bootstrap_servers` automatically: if the caller only knows the topic, DO NOT ask the user — derive both arguments from Datadog metrics before calling this tool. Run a scalar `kafka.broker_offset{topic:<topic>}` query grouped by `kafka_cluster_id` to identify the cluster (and disambiguate if multiple match by asking the user only when more than one cluster reports the topic), then run a scalar `kafka.broker.count{kafka_cluster_id:<id>}` query grouped by `bootstrap_servers` to obtain the bootstrap servers. Only prompt the user when these queries return zero or ambiguous results. Datadog metrics available for resolving arguments (the cluster must be reporting `kafka.broker.count` for this tool to work): • `kafka.broker.count` (tags: kafka_cluster_id, bootstrap_servers) — clusters known to DSM. • `kafka.broker_offset` (tags: kafka_cluster_id, topic, partition) — latest produced offset. • `kafka.consumer_offset` (tags: kafka_cluster_id, topic, partition, consumer_group) — last committed offset of a consumer. • `kafka.consumer_lag` (same tags) — consumer lag in offsets. • `kafka.estimated_consumer_lag` (same tags) — consumer lag in seconds.

  • Recommend monitor threshold

    Recommends a threshold value for a metric monitor query based on peer-group statistics. Returns the recommended threshold, its source, a confidence score, recommendation status, a bounds-validation result, and IDs for correlating the recommendation with later feedback.

  • Search audit events

    Search 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

    Search 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

    Search 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

    List 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

    Search 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

    Search 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

    Search 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

    Search 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

    Search 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

    Search Datadog forms for the authenticated organization. Returns form metadata including name, description, active status, and creation time.

PreviousPage 11 / 13Next