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.

  • Execute datadog workflow

    Start a new execution instance for a Datadog Workflow Automation workflow by ID. The workflow may be published or unpublished, and the selected base or draft spec must have an 'agent' trigger. Each successful call starts a distinct run and returns workflowId, instanceId, and URL. It does not wait for completion. If the selected spec lacks an agent trigger, use get_datadog_workflow and update_datadog_workflow to preserve the complete spec while adding one with the intended startStepNames, then execute the resulting draft. Do not publish the draft unless requested. Workflow actions can modify external systems; confirm with the user before invoking. Use list_datadog_workflow_instances or get_datadog_workflow_instance afterward only when runtime status, failure details, or outputs are needed.

  • Expand llmobs spans

    Load the children of specific spans in a trace, enabling progressive tree exploration. Use this when **get_llmobs_trace** returns collapsed nodes you want to expand. Returns expanded_spans[] (recursive tree, each node with span_id, name, kind, status, duration_ms, content indicators like has_input/has_output, and nested children). Set max_depth to control how many levels deep to load (1–3).

  • Explore profiling call graph

    Explore a call graph to identify hot call relationships for the provided profile type. Best suited for investigating a single service at a time. For cross-service comparisons, use get_profiling_timeseries. Things of note: * Provide traceContext OR scope by service via queryString (e.g. service:my-svc). * Nodes represent frames/functions and edges represent call relationships (caller -> callee) * sortedNodes is ordered by self value; use node id and edge targetId to link nodes * Defaults: top 20 nodes, 5% cumulative cutoff, top 5 edges per node * Use get_profiling_tag_names/get_profiling_tag_values to discover available tags and their values for filtering in queryString. Syntax: tag:value pairs separated by spaces (implicit AND), tag:(v1 OR v2) for alternatives, -tag:value for negation, tag:prefix* for wildcards. * Always tell the user what time range was used unless it was explicitly specified in the request. * For Chrome profiles (family:chrome in filter.query): - Endpoint: append @view.name:<endpoint> to queryString. - RUM event IDs (view, vital, action, long task, error): append @<type>.id:<id> to queryString (e.g. @action.id:x, or @action.id:(x OR y) for multiple).

  • Explore profiling flame graph

    Obtain a list of top stacktraces based on their value contribution for the provided profile type. Best suited for investigating a single service at a time. For cross-service comparisons, use get_profiling_timeseries. Things of note: * Pay special attention to mentions of endpoints, attributes or stacktrace fields in the request. This tool supports filtering to those fields for more specific queries. * Provide traceContext OR scope by service via queryString (e.g. service:my-svc). * Stacktrace frames are ordered from caller to callee, with the more specific frame being the last in the list. * For Chrome profiles (family:chrome in filter.query): - Endpoint: append @view.name:<endpoint> to queryString and set endpointRegexFilter to the endpoint value. - RUM event IDs (view, vital, action, long task, error): append @<type>.id:<id> to queryString (e.g. @action.id:x, or @action.id:(x OR y) for multiple), and set attribute + attributeRegexFilter to the corresponding profile attribute name and id value. Note: profile attribute names differ from queryString field names (e.g. attribute=action_id vs @action.id). * Use get_profiling_tag_names/get_profiling_tag_values to discover available tags and their values for filtering in queryString. Syntax: tag:value pairs separated by spaces (implicit AND), tag:(v1 OR v2) for alternatives, -tag:value for negation, tag:prefix* for wildcards. * Always tell the user what time range was used unless it was explicitly specified in the request.

  • Explore profiling rum flamegraph

    Returns a flamegraph for profiles scoped to RUM events matching a given metric and optional filter. Works with any RUM-instrumented platform (browser, mobile, etc.) — use the family and service that match the instrumented application. Use this tool when the user asks which functions are responsible for a slow RUM metric (e.g. INP, LCP, time spent on a page, long tasks). Do NOT use explore_profiling_flame_graph for RUM metrics — it does not understand RUM event types and will produce wrong results. How it works: * You provide rumMetric and optionally rumQuery to scope which RUM events are considered. * The backend resolves the matching RUM event IDs server-side and fetches the associated profiles. * Flamegraph values are scaled per RUM event (average contribution per event), so results are comparable across different time windows and query scopes. rumMetric values and their RUM event type / accepted rumQuery field prefix: INP — Interaction to Next Paint (VIEW, @view.*) LCP — Largest Contentful Paint (VIEW, @view.*) FCP — First Contentful Paint (VIEW, @view.*) LOADING_TIME — Page loading time (VIEW, @view.*) TIME_SPENT — Time spent on view (VIEW, @view.*) ACTION_LOADING_TIME — Action loading time (ACTION, @action.*) VITAL_DURATION — Custom vital duration (VITAL, @vital.*) LONG_TASK_DURATION — Long task duration (LONG_TASK, @long_task.*) rumQuery constraints: * Optional. Scopes which RUM events are included (e.g. "@view.name:/profiling/explorer"). * Field prefixes must match the event type from the table above. Mixing prefixes from different event types returns an error. * @profiling.has_profile:true is appended automatically — do not include it. * Always report the time range and rumMetric used in your response.

  • Explore profiling timeline

    Analyze timeline activity showing lane groups (threads, GC, etc.) and their CPU/I/O activities. Best suited for investigating a single service instance at a time. For cross-service comparisons, use get_profiling_timeseries. Use for general thread analysis, or enable critical path (traceContext only) to identify latency bottlenecks. Key points: * Provide runtimeId OR traceContext (required) * Time values in nanoseconds. Example: 1700000000 ns = 1.7 seconds. 260000000 ns = 26 milliseconds. * Use get_profiling_tag_names/get_profiling_tag_values to discover available tags and their values for filtering in queryString. Syntax: tag:value pairs separated by spaces (implicit AND), tag:(v1 OR v2) for alternatives, -tag:value for negation, tag:prefix* for wildcards. Without critical path analysis: * Response groups by lane groups, sorted by activity * To discover event types: call without focusEventType, check 'threadStates' in response, then refine With Critical path (traceContext only, currently Go only): Two workflows: * Quick overview: Set useCriticalPath=true to see only critical path events and top blocking periods * Deep dive: First call with useCriticalPath=true, get blocking periods with startTime/endTime. Then call again with fromString/toString and useCriticalPath=false to zoom into that period.

  • Find datadog database instances

    Discover and rank database instances for DBM investigation. USE THIS TOOL FIRST before calling other DBM tools that require a database_instance parameter. This tool discovers database instances via trace/span correlation or tag matching, fetches telemetry for each instance, and uses LLM analysis to assess health and rank instances. Provide either: - trace_id and/or span_id from APM to find correlated database instances - tags to find matching instances (key:value format, ANDed together) - Both can be combined Response includes database_instance identifiers, ranking with health assessment, timeframes for further analysis, and LLM analysis summary.

  • Find llmobs error spans

    Find all error spans in a trace with propagation context. Returns error details, parent context, and whether errors propagated to child spans. Returns errors grouped by span kind, each with span_id, error message/type/stack, and propagation info. Use **get_llmobs_span_content** on an error span to see its full input/output.

  • Generate monitor message

    Generates a monitor message with What's Happening, Impact, and Links sections from a monitor query. Only 'metric alert' and 'query alert' monitor types are supported.

  • Get active feature flags

    do-not-call

  • Get autonomous system status

    Get the health status of an autonomous system (AS) using Network Path data. Calls the Network Path aggregate endpoint to assess whether the AS has detected issues such as packet loss, latency spikes, or lowered visibility. **Input**: - asn: the autonomous system number, e.g. AS15169 or 15169 (both accepted) - from / to: optional time window as Unix timestamps in milliseconds; to defaults to now, and from defaults to one hour before to **Output**: Returns a <METADATA> + <YAML_DATA> envelope: - <METADATA>: scope_type (always "autonomous_system"), scope_query (the search filter used), status (rolled-up ok / degraded / unknown), total, degraded (counts). notes appears only when no data was found for the AS in the requested window. - <YAML_DATA>: a list of AS entries, each with asn, status (ok / degraded only — never "unknown", which is rollup-only), issues (list of {code, count}, omitted when healthy), metric_values (always populated regardless of status, so it can also show the magnitude behind an ok result; individual current_value/baseline_value may be nil when that data is unavailable), metadata (name, domain, category, country_code), metrics (test_cardinality, country_count), and network_path_url (AS detail deep link). **metric_values** is a list of {metric_type, current_value, baseline_value (this AS's own value from ~7 days prior), degradation_percent}. degradation_percent is pre-computed and sign-normalized so a positive value always means "worse than baseline" regardless of the metric's natural direction (e.g. rising latency vs. falling reachability); it is nil whenever current_value, baseline_value, or the baseline itself is missing/zero. Use these to explain *why* an AS is degraded (or how close to baseline an ok AS is), not just to restate the status: - packet_count: volume of AS-attributed hop observations in the window — a traffic-volume/visibility proxy, NOT a count of dropped/lost packets despite the name, and not the same as the distinct test count (metrics.test_cardinality). Low current_value vs. baseline signals lowered_visibility (reduced visibility), not packet loss. - destination_reachability_ratio: average fraction of packets that reached the destination; higher is better. Low current_value vs. baseline signals the packet_loss issue. - avg_latency_ms: average round-trip latency in milliseconds; higher is worse. Elevated current_value vs. baseline signals the latency_spike issue. **Status values**: - degraded: the AS is performing worse than its own ~7-day baseline on one or more dimensions (latency, packet loss, or test visibility). This is a relative signal — it does not mean the AS is objectively broken, only that it has regressed from its recent norm. - ok: the AS was found with no detected regression vs its baseline - unknown: no Network Path data found for this AS in the time window **On a degraded result**: automatically follow up with get_network_path_test_runs, scoped to query: "traceroute.runs.hops.geoip.as.number:AS{number}" using this tool's own resolved ASN and the same from/to window this tool was called with — do this without being asked, and present both results together in the same response. Passing the same window matters: if this call was scoped to a wider or shifted window, omitting from/to would make the follow-up fall back to its own last-hour default and miss the window the status was computed over; if this call used the default window, omit from/to on the follow-up too so both stay aligned. Note the field prefix differs from this tool's internal search field (hop.geoip.as.number); get_network_path_test_runs queries a different index where hops are nested under traceroute.runs.hops. Use this tool to: - Check if a specific AS is currently healthy - Identify what issues a degraded AS is experiencing - Get a deep link to the Network Path autonomous systems page for the AS

  • Get-canary-results

    Get results from completed or in-progress canary experiments for a feature flag. This tool retrieves experimental data showing how each variant performed during canary testing, including metric measurements, statistical significance, and traffic distribution. Use this when you need to: - Review the performance of a canary deployment - Check if a canary rollout met its success criteria - Analyze metric differences between variants in a canary test - Understand why a canary was paused or aborted The tool returns data for ALL canary allocations associated with the feature flag. Each canary result includes: - Allocation metadata (name, key, environment, creation time) - Experiment status and state - Variant performance metrics (assignment counts, metric means, statistical lift, confidence intervals) - Guardrail metric information Canary results are available both during and after the canary run. Results during an active canary reflect data collected so far and will change as more traffic is processed. *** FEATURE FLAG DETECTION *** If users mention: flags, toggles, feature switches, A/B tests, experiments, gradual rollouts, canary releases, or say they want to 'flag' something, this is feature flag work and should use feature flag tools. This is a secondary tool - use after determining flag exists and implementation approach.

  • Get change stories

    Retrieve change events for an APM service over a time range. Use to correlate changes with performance issues, errors or incidents. Tracked Change types: deployment (code/version), feature_flag, traffic_anomaly, watchdog (Datadog anomaly detection), kubernetes (k8s deployment manifest updates), scale (manual k8s scale events), crashloopbackoff (k8s crashloops), database (DB schema or setting changes), schema (data stream schemas only; not DB/API schema), configuration (limited to specific tracked sources — absence does not imply no config changed)

  • Get data catalog schema

    Return the entity type schema for every platform this org has data in. Takes no arguments. Discovers active platforms by searching for root entities across all supported platform types, then returns the metaschema for each: entity types, containment hierarchy, and filterable attributes. Use this when you need to know: - Which platforms are available in the data catalog - What entity types exist for each platform (e.g. "table", "schema", "column", "dbt_model") - The containment hierarchy (e.g. account → database → schema → table → column) - What attribute names can be used as filters in search_data_entities - What metrics are available for a given entity type (e.g. row count, size, freshness for tables) Returns: schema array with platform name, display_name, and entity_types list where each entry has: - entity_type: canonical entity type name to pass as entity_type in search_data_entities (e.g. "database_table") - display_name: human-readable label (e.g. "table") - children: display names of direct child entity types - suggest_attributes: attribute names usable as filters in search_data_entities - default_metrics: Datadog metrics emitted by default for this entity type. Use get_datadog_metric (if available) to query these by name. Metrics are scoped to a specific entity via tags such as entity_id, platform, account, database, schema, and table. Example: to get the row count for a specific table, query metric "dataset.record_count" filtered by its entity_id tag.

  • Get datadog code coverage branch summary

    Fetch aggregated code coverage summary metrics for a repository branch. Use this tool to retrieve total coverage, patch coverage, and service/codeowner breakdowns for a specific branch. Common prompts: • Coverage summary for main: repository_url=https://github.com/org/repo branch=main • Coverage summary for release branch: repository_url=https://github.com/org/repo branch=release/1.x

  • Get datadog code coverage commit summary

    Fetch aggregated code coverage summary metrics for a repository commit. Use this tool to retrieve total coverage, patch coverage, and service/codeowner breakdowns for a specific commit. Common prompts: • Coverage summary for a commit: repository_url=https://github.com/org/repo commit_sha=<40-char sha>

  • Get datadog code coverage files

    Fetch per-file code coverage line data for a repository commit, branch, or pull request. Returns executable lines, covered lines, and added lines for each file. Use this tool to inspect which specific lines are covered or uncovered. Exactly one of commit_sha, branch, or pr_number must be provided. At most one of service, codeowner, or flag may be provided to filter results. Common prompts: • Per-file coverage for PR #123: repository_url=https://github.com/org/repo pr_number=123 • Changed-file coverage for a commit: repository_url=https://github.com/org/repo commit_sha=<40-char sha> changed_only=true

  • Get datadog code coverage pr summary

    Fetch aggregated code coverage summary metrics for a pull request. Use this tool to retrieve total coverage, patch coverage, and service/codeowner breakdowns for a specific pull request. Common prompts: • Coverage summary for PR #123: repository_url=https://github.com/org/repo pr_number=123

  • Get datadog dashboard

    Retrieves a custom or integration Datadog dashboard by ID, returning its title, description, tags, widgets, and template variables. Use search_datadog_dashboards first to find dashboard IDs.

  • Get datadog database calling services

    Identify upstream APM services and resources that call database queries. Use this tool to correlate database activity with application traces, enabling root cause analysis across the APM-database boundary. Returns the primary (most frequent) calling service and its associated resources.

PreviousPage 6 / 19Next