Skip to main content
Glama
Datadog MCP Server

Datadog MCP Server

by abhi276k

aggregate_logs

Aggregate Datadog logs by facets and time ranges, compute metrics, and group results to analyze patterns or troubleshoot issues.

Instructions

Aggregate logs with grouping and metrics

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "aggregate_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNo*
timeToNonow
computeNo
groupByNo
timeFromNonow-15m

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and discloses almost nothing: not whether the operation is read-only, not the implicit 15-minute default window (timeFrom="now-15m"), not result limits from groupBy.limit, and not the response shape. Only the word "aggregate" implies a read-only summarization, which is a thin basis for a tool with nested compute and groupBy inputs.

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?

It is a single short phrase with no wasted words, but it is under-specified rather than concise: six words cannot front-load meaningful guidance for a five-parameter tool with nested objects. Brevity here is a deficit, not an economy.

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?

Given two nested array parameters, a query string, a time range, no annotations, no output schema, and 0% schema description coverage, the description is wholly inadequate. An agent has no way to learn accepted aggregation/interval values, default time window behavior, or what the returned aggregated result looks like.

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% — the schema exposes names, types and defaults but no meaning for query, timeFrom/timeTo, facet, interval, aggregation, or limit. The description's "grouping and metrics" weakly maps to groupBy and compute but explains nothing about query syntax, supported aggregation names, interval formats, or default behaviors, leaving the low-coverage gap unaddressed.

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 gives a specific verb and resource ("aggregate logs") and hints at the two main axes ("grouping and metrics"), which is more than a tautology. It does not, however, distinguish the tool from retrieval siblings such as search_logs or get_audit_logs, so an agent cannot tell from the text alone why it would aggregate rather than fetch.

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 statement of when to use this tool, when not to, or which sibling to prefer instead. An agent must infer from the single verb "aggregate" that this is for counting/summarizing rather than listing log records.

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