Skip to main content
Glama

datadog_metrics_query

Execute a Datadog metrics timeseries query by providing a query and start time. Returns actual data points for the specified time window.

Instructions

Execute a point-in-time Datadog metrics timeseries query (e.g. avg:system.cpu.user{*} over the last 1h). Returns the actual data points; use datadog_metrics_catalog_list instead when you only need to discover metric names. Read-only. 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
toNoEnd of the query window. Defaults to `now` when omitted.
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 metrics query string, e.g. `avg:system.cpu.user{*}` or `sum:trace.http.request.hits{service:api}.as_rate()`. Required.
Behavior5/5

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

No annotations are provided, but the description fully discloses behavioral traits: it is read-only, mirrors a CLI command, and returns YAML with specific fields (status, from_date, to_date, series). No contradictions.

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 is concise (four sentences) and front-loaded with the primary purpose. Every sentence adds value, with no redundant or missing information.

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 moderate complexity (3 parameters, no output schema), the description covers purpose, usage, return format, and behavioral traits. It lacks mention of error handling or rate limits, but these are not critical for basic use.

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

Parameters4/5

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

Schema coverage is 100%, but the description adds extra context beyond the schema, such as example values, default behavior for `to`, and accepted formats for `from`. This enhances usability without being strictly necessary.

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 point-in-time Datadog metrics timeseries query, provides an example query, and distinguishes itself from the sibling tool `datadog_metrics_catalog_list` for metric name discovery.

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

Usage Guidelines5/5

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

Explicitly tells when to use this tool (to get actual data points) and when to use an alternative (`datadog_metrics_catalog_list` for metric names), giving clear usage guidance.

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