Skip to main content
Glama

datadog_logs_search

Search Datadog log events using a query filter over a time range (default 15 min). Returns YAML output with pagination up to 10,000 results.

Instructions

Search Datadog log events with a logs query (e.g. service:api status:error) over a time range (default last 15m). For the event/alert stream rather than logs, use datadog_events_list. limit of 0 (or omitted) auto-paginates across cursor pages up to 10000; any non-zero value caps the total at that count (default 100). sort is timestamp-asc or timestamp-desc (default). Read-only. Mirrors omni-dev datadog logs search. Output is YAML.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoEnd of the time range. Defaults to `now` when omitted.
fromNoStart of the time range. Accepts relative shorthand (`15m`, `1h`), `now`, RFC 3339, or Unix epoch seconds. Defaults to `15m` when omitted.
sortNoSort order: `"timestamp-asc"` (oldest first) or `"timestamp-desc"` (newest first; default).
limitNoMaximum events to return. `0` means "fetch every match across pages (capped at 10000)"; any non-zero value caps the total at that count, paginating underneath as needed. Defaults to 100.
filterYesDatadog logs query, e.g. `service:api status:error`. Required; use `*` to match all logs.
Behavior5/5

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

No annotations provided, but description fully covers behavioral traits: read-only nature, pagination behavior (limit 0 auto-paginates up to 10000, non-zero caps total), sort order, output format (YAML), and default time range.

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?

Description is three sentences, each adding value. Front-loaded with main purpose, then details. No superfluous text.

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

Completeness5/5

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

With 5 parameters, 1 required, no output schema, description covers all necessary behavioral aspects: pagination, sort options, time range defaults, query format, output format, and sibling differentiation.

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

Parameters5/5

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

All parameters have schema descriptions, but description adds example query, explains default time range behavior, sort values, and limit behavior in detail beyond schema.

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?

Description clearly states the tool searches Datadog log events with a logs query over a time range. It distinguishes from sibling tool datadog_events_list by specifying that tool is for event/alert streams, not logs.

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

Usage Guidelines4/5

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

Provides explicit guidance on when to use the alternative tool (datadog_events_list) for event/alert streams. Also explains default time range and pagination behavior, though could be more explicit about prerequisites.

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