Datadog MCP by usefulapi

v1.1.1
io.usefulapi/datadog Checked 2 days ago Published 1 day ago

Read monitors, logs, metrics and incidents, and mute or unmute hosts in Datadog.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

datadog_get_current_user Get the signed-in user

Return the Datadog user that owns the application key, with the organization it belongs to. Use it to check the connection. Datadog API: GET /api/v2/current_user.

datadog_list_monitors List monitors

List monitors in the organization with their status. Filter by name, tags, or group state (alert, warn, no data). Datadog API: GET /api/v1/monitor.

ParameterTypeDescription
group_statesstringComma-separated: all, alert, warn, no data. Adds group state details.
monitor_tagsstringComma-separated monitor tags to filter by.
namestringOnly monitors whose name contains this text.
pageintegerZero-based page number.
page_sizeintegerMonitors per page (1-1000).
tagsstringComma-separated tags. Only monitors with all of them.
with_downtimesbooleanInclude the downtimes that match each monitor.

datadog_search_monitors Search monitors

Search monitors with a query such as status:alert or tag:env:prod, and get the counts by status. Datadog API: GET /api/v1/monitor/search.

ParameterTypeDescription
pageintegerZero-based page number.
per_pageintegerResults per page (1-100).
querystringMonitor search query, for example status:alert or env:prod.
sortstringSort field and direction, for example status,asc.

datadog_get_monitor Get a monitor

Return one monitor with its query, thresholds, message and state. Datadog API: GET /api/v1/monitor/{monitor_id}.

ParameterTypeDescription
monitor_id *integerMonitor id (from datadog_list_monitors).

datadog_list_dashboards List dashboards

List the dashboards in the organization (titles, ids, and authors). Use count and start to page. Datadog API: GET /api/v1/dashboard.

ParameterTypeDescription
countintegerDashboards to return in this page.
startintegerOffset of the first dashboard to return.

datadog_get_dashboard Get a dashboard

Return one dashboard with its widgets and their queries. Datadog API: GET /api/v1/dashboard/{dashboard_id}.

ParameterTypeDescription
dashboard_id *stringDashboard id (from datadog_list_dashboards).

datadog_query_metrics Query metric time series

Run a metric query over a time range and return the points. Example query: avg:system.cpu.user{env:prod} by {host}. Datadog API: GET /api/v1/query.

ParameterTypeDescription
from *integerStart of the range, Unix time in seconds.
query *stringMetric query, for example avg:system.cpu.user{env:prod} by {host}.
to *integerEnd of the range, Unix time in seconds.

datadog_search_logs Search logs

Search log events by query and time range, newest first by default. Use limit and cursor to page. Datadog API: POST /api/v2/logs/events/search.

ParameterTypeDescription
cursorstringPagination cursor from the previous page's meta.page.after.
fromstringStart time: now-15m, a date-math value, or Unix milliseconds. Default now-15m.
limitintegerLogs per page (1-100). Default 50.
querystringLog search query, for example service:web status:error. Default: *.
sortstringtimestamp (oldest first) or -timestamp (newest first).
tostringEnd time, same formats as from. Default now.

datadog_list_events List events

List events such as deploys, alerts and custom events that match a search query, in a time range. Datadog API: GET /api/v2/events.

ParameterTypeDescription
cursorstringPagination cursor from the previous page's meta.page.after.
from_msintegerStart of the range, Unix time in milliseconds.
limitintegerEvents per page (1-1000).
querystringEvent search query, for example source:deploy env:prod.
sortstringtimestamp (oldest first) or -timestamp (newest first).
to_msintegerEnd of the range, Unix time in milliseconds.

datadog_list_hosts List hosts

List the hosts that report to Datadog, with their apps and tags. Filter by text, and sort by name, apps, CPU, I/O wait or load. Datadog API: GET /api/v1/hosts.

ParameterTypeDescription
countintegerHosts per page (1-1000).
filterstringText to match host names, tags or apps.
fromintegerOnly hosts that reported since this Unix time in seconds.
sort_dirstringSort direction.
sort_fieldstringSort field. Unrecognized values fall back to cpu.
startintegerOffset of the first host to return.

datadog_list_incidents List incidents

List incidents in the organization, newest first. Datadog API: GET /api/v2/incidents.

ParameterTypeDescription
page_offsetintegerOffset of the first incident to return.
page_sizeintegerResults per page (1-100).

datadog_get_incident Get an incident

Return one incident with its title, status, severity and timeline fields. Datadog API: GET /api/v2/incidents/{incident_id}.

ParameterTypeDescription
incident_id *stringIncident id (from datadog_list_incidents).

datadog_list_slos List service level objectives

List service level objectives (SLOs) with their targets and current status. Filter by a query or by tags. Datadog API: GET /api/v1/slo.

ParameterTypeDescription
idsstringComma-separated SLO ids.
limitintegerSLOs per page (1-1000).
offsetintegerOffset of the first SLO to return.
querystringText to match SLO names.
tags_querystringTag query to match SLOs, for example env:prod.

datadog_list_synthetic_tests List synthetic tests

List the synthetic API and browser tests with their names, types and status. Datadog API: GET /api/v1/synthetics/tests.

ParameterTypeDescription
page_numberintegerZero-based page number.
page_sizeintegerTests per page (1-100).

datadog_list_downtimes List downtimes

List scheduled and active downtimes that silence monitors. Datadog API: GET /api/v2/downtime.

ParameterTypeDescription
current_onlybooleanOnly downtimes active now.
page_limitintegerDowntimes per page (1-100).
page_offsetintegerOffset of the first downtime to return.

datadog_list_teams List teams

List the teams in the organization with their names and handles. Datadog API: GET /api/v2/team.

ParameterTypeDescription
keywordstringText to match team names or handles.
page_numberintegerZero-based page number.
page_sizeintegerResults per page (1-100).

datadog_list_users List users

List the users in the organization with their status and roles. Datadog API: GET /api/v2/users.

ParameterTypeDescription
filterstringText to match user names or emails.
page_numberintegerZero-based page number.
page_sizeintegerResults per page (1-100).
statusstringOnly users with this status.

datadog_mute_host Mute a host

Mute all monitors for one host, so its alerts stop. Optionally set an end time and a message. If the host is already muted, set override to true to replace its mute. Datadog API: POST /api/v1/host/{host_name}/mute.

ParameterTypeDescription
host_name *stringHost name as shown in datadog_list_hosts.
endintegerUnix time in seconds when the host unmutes. Omit to mute until unmuted.
messagestringNote saved with the mute, for example the reason.
overridebooleanReplace an existing mute on this host.

datadog_unmute_host Unmute a host

Unmute a host, so its monitors alert again. Re-running it on an unmuted host has no effect. Datadog API: POST /api/v1/host/{host_name}/unmute.

ParameterTypeDescription
host_name *stringHost name as shown in datadog_list_hosts.