Skip to main content
Glama
Datadog MCP Server

Datadog MCP Server

by abhi276k

search_logs

Search Datadog logs by query over a chosen time range and limit to retrieve matching log entries for troubleshooting and monitoring.

Instructions

Search Datadog logs

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
timeToNonow
timeFromNonow-15m

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

D1.8/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden, and it discloses nothing. It does not say whether the search is read-only, what query syntax is accepted (Datadog query language?), how results are paginated or capped, or what permissions are required. For a search tool with a free-text query parameter this is a critical omission.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The phrase is short and front-loaded, but it is under-specified rather than concise: four words carry no actionable information beyond the tool name. Brevity here reflects missing content, not efficient writing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations, no output schema, and 0% parameter documentation, everything an agent needs to invoke this correctly must come from the description, and the description supplies none of it. The definition is inadequate for a 4-parameter tool with a free-text query.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 4 parameters, and the description adds no meaning for any of them. It does not explain the query string syntax, the formats accepted for timeFrom/timeTo, or the units and default behavior of limit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Search Datadog logs" states a specific verb (search) and resource (Datadog logs), so the basic purpose is recoverable. However it gives no scope details and no differentiation from siblings such as search_rum_events, aggregate_logs, or get_audit_logs, all of which also retrieve log-like data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: nothing says when to prefer this over aggregate_logs for counts or search_rum_events for RUM data. The only implied usage is that the caller wants logs, which the tool name already conveyed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.