Skip to main content
Glama

datadog_metrics_query

Query Datadog metrics timeseries data by specifying a query string and time window. Returns YAML output with status, date range, and series.

Instructions

Execute a point-in-time Datadog metrics timeseries query. Mirrors omni-dev datadog metrics query. Returns YAML matching the CLI -o yaml output (status, from_date, to_date, series).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromYesStart of the query window. Accepts relative shorthand (`15m`, `1h`, `7d`), the literal `now`, an RFC 3339 timestamp with timezone, or Unix epoch seconds.
queryYesDatadog query string (e.g. `avg:system.cpu.user{*}`).
toNoEnd of the query window. Defaults to `now` when omitted.
Behavior3/5

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

The description discloses the return format (YAML matching CLI output with status, from_date, to_date, series), which is useful. However, with no annotations provided, it does not explicitly state that the tool is read-only or has no side effects, nor does it mention rate limits, authentication requirements, or potential latency. The description partially covers behavioral traits but leaves gaps.

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

Conciseness5/5

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

The description consists of two concise sentences. The first clearly states the core action, and the second adds valuable context about CLI mirroring and output format. No redundant or extraneous information, achieving high efficiency.

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

Completeness4/5

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

Given the tool has only 3 parameters, no output schema, and no annotations, the description provides adequate context: it explains the output structure and references a CLI command for familiarity. It lacks mention of error scenarios, pagination, or rate limits, but for a simple point-in-time query, the description is reasonably complete.

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

Parameters3/5

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

The input schema provides 100% description coverage for all three parameters (from, query, to). The tool description adds no additional parameter-level details beyond what the schema already offers. According to calibration, baseline 3 is appropriate when schema coverage is high and the description does not enhance semantics.

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

Purpose5/5

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

The description clearly states the tool executes a Datadog metrics timeseries query, using a specific verb and resource. It distinguishes from other Datadog sibling tools (like datadog_dashboard_get or datadog_logs_search) by focusing on metrics queries. The mention of mirroring a CLI command further clarifies the tool's exact purpose.

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

Usage Guidelines3/5

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

The description implies usage by stating it mirrors a CLI command, but does not explicitly guide when to use this tool vs alternatives (e.g., datadog_metrics_catalog_list for listing metrics, or datadog_events_list for events). No 'when-not-to-use' or alternative tool mentions are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rust-works/omni-dev'

If you have feedback or need assistance with the MCP directory API, please join our Discord server