Skip to main content
Glama
Datadog MCP Server

Datadog MCP Server

by abhi276k

get_audit_logs

Retrieve audit logs for security and compliance monitoring. Filter by time range and query to investigate activity and support compliance reviews.

Instructions

Get audit logs for security and compliance

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": "get_audit_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo-timestamp
filterToNonow
pageLimitNo
filterFromNonow-15m
filterQueryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/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 disclosure burden, and it does little beyond implying a read. It does not mention the implicit 15-minute default window, pagination behavior, maximum page size, or what fields a returned audit log contains — all of which materially affect invocation.

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?

A single short, front-loaded sentence with no filler or redundancy. However, its brevity reflects under-specification rather than disciplined conciseness — the space saved is not spent on anything useful.

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?

For a five-parameter query tool with no annotations, no output schema, and zero parameter documentation, the description is not complete enough to guide correct invocation. Schema defaults (now-15m, pageLimit 100) provide partial relief, but the agent must guess at filter and sort semantics.

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

Parameters1/5

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

Schema description coverage is 0% across five parameters (sort, filterTo, filterFrom, pageLimit, filterQuery), and the description explains none of them. An agent gets no hint about the timestamp format expected by filterFrom/filterTo or the query syntax for filterQuery, leaving the most important parameters effectively undocumented.

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?

Specific verb+resource: 'Get audit logs' with an added purpose qualifier ('for security and compliance'). An agent can tell this retrieves audit-log records rather than metrics or monitors. It does not, however, differentiate against siblings like search_logs or aggregate_logs, which likely overlap heavily.

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?

The phrase 'for security and compliance' vaguely implies a use case but gives no when-to-use/when-not-to-use guidance. There is no mention of when to prefer this over search_logs or aggregate_logs, and no prerequisites or exclusions are stated.

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