Skip to main content
Glama
Datadog MCP Server

Datadog MCP Server

by abhi276k

query_metrics

Query Datadog metrics over a specified time range to monitor trends and retrieve metric values for analysis.

Instructions

Query metrics data over time

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>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "query_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and largely fails it. "Query" weakly implies read-only behavior, but there is no disclosure of return format, limits, pagination, permissions, or how time ranges are interpreted.

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

Conciseness3/5

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

The single sentence is front-loaded and wastes no words, but it is under-specified rather than genuinely concise. Brevity is not a virtue here because essential meaning is missing.

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?

This is a query tool with three required parameters, zero schema descriptions, no annotations, and no output schema. The description does almost nothing to close that gap, leaving an agent unable to invoke it correctly without guessing about query syntax and time semantics.

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

Parameters2/5

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

Schema description coverage is 0%, so all three parameters (query, from, to) depend on the description for meaning. The phrase "over time" gives a weak hint that from/to are a time range, but the query parameter's syntax, metric format, and time units are entirely unexplained.

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?

The description states a specific verb ("Query") and resource ("metrics data"), so the basic purpose is clear. However, it gives no differentiation from the sibling get_metrics tool, leaving an agent unable to tell which metric-reading tool to choose.

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, no indication of when this should be preferred over get_metrics, and no exclusions or prerequisites. The only context is the vague phrase "over time," which implies a time-range query but does not guide tool selection.

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