Skip to main content
Glama
shelfio

Datadog MCP Server

by shelfio

get_metrics

Query Datadog metrics with custom filters, aggregations, and time ranges to monitor system performance and analyze data trends.

Instructions

Execute metric queries on Datadog. Specify the metric name and optional filters/aggregations to build and execute the query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metric_nameYesThe metric name to query (e.g., 'aws.apigateway.count', 'system.cpu.user', 'trace.servlet.request.hits')
time_rangeNoTime range to look back1h
aggregationNoMetric aggregation methodavg
filtersNoFilters to apply to the metric query (e.g., {'service': 'web', 'env': 'prod', 'region': 'us-east-1'})
aggregation_byNoFields to group/aggregate the metric by (e.g., ['service'], ['region', 'env'], ['aws_account']). Use get_metric_fields tool to see available fields.
formatNoOutput formattable
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool 'execute[s] metric queries' which implies a read operation, but doesn't disclose important behavioral traits like whether it requires specific authentication, has rate limits, returns paginated results, or what happens on errors. The description mentions building and executing the query but lacks operational context needed for safe and effective use.

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

Conciseness4/5

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

The description is appropriately concise with two sentences that efficiently convey the core functionality. The first sentence states the purpose, the second provides basic parameter guidance. No wasted words, though it could be slightly more front-loaded with key behavioral information given the lack of annotations.

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

Completeness2/5

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

Given the tool's complexity (6 parameters including nested objects), lack of annotations, and no output schema, the description is insufficiently complete. It doesn't explain what the tool returns (metrics data in various formats), doesn't mention authentication requirements, rate limits, or error handling. For a query tool with this parameter complexity and no structured safety/behavior annotations, the description should provide more operational context.

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?

Schema description coverage is 100%, so the schema already documents all 6 parameters thoroughly with descriptions, enums, defaults, and examples. The description adds minimal value beyond the schema - it mentions 'metric name and optional filters/aggregations' which is already clear from the schema. The baseline of 3 is appropriate when the schema does the heavy lifting.

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

Purpose4/5

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

The description clearly states the tool's purpose: 'Execute metric queries on Datadog' with specific verb ('execute') and resource ('metric queries'). It distinguishes from some siblings like 'list_metrics' (which likely lists available metrics rather than querying them) but doesn't explicitly differentiate from 'get_metric_fields' or 'get_metric_field_values' which are related to metric metadata.

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 provides implied usage guidance by mentioning 'Specify the metric name and optional filters/aggregations' which suggests when to use this tool (for querying metrics with specific parameters). However, it doesn't explicitly state when to use this vs. alternatives like 'list_metrics' (for listing available metrics) or 'get_metric_fields' (for discovering queryable fields). No explicit exclusions or prerequisites are mentioned.

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/shelfio/datadog-mcp'

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