Skip to main content
Glama

datadog_logs_search

Search Datadog logs using query filters and time ranges, with configurable sort order and automatic pagination up to 10,000 results.

Instructions

Search Datadog log events. limit of 0 (or omitted) auto-paginates across cursor pages up to 10000; any non-zero value caps the total at that count. sort is timestamp-asc or timestamp-desc (default). Mirrors omni-dev datadog logs search. Output is YAML.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterYesDatadog logs query (e.g. `service:api status:error`).
fromNoStart of the time range. Accepts relative shorthand (`15m`, `1h`), `now`, RFC 3339, or Unix epoch seconds. Defaults to `15m` when omitted.
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.
sortNoSort order: `"timestamp-asc"` (oldest first) or `"timestamp-desc"` (newest first; default).
toNoEnd of the time range. Defaults to `now` when omitted.
Behavior4/5

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

With no annotations, the description carries full burden. It discloses auto-pagination behavior for limit, default sort order, and output format (YAML). This gives the agent a good understanding of tool behavior beyond the schema.

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?

Four sentences, each earning its place. The first sentence states purpose, the next three explain key behaviors and output. No redundancy or filler.

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?

For a tool with 5 params, no output schema, and no annotations, the description covers purpose, all parameter special behaviors, and output format. An agent has sufficient context to use it correctly.

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% with good parameter descriptions, but the description adds critical nuance: limit=0 means auto-pagination to 10000, non-zero caps total, and sort valid values. This adds meaningful context beyond the 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?

The description clearly states it searches Datadog log events, with a specific verb and resource. It distinguishes itself from sibling tools like datadog_events_list and datadog_metrics_query by focusing on log search.

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 explains parameter usage (limit, sort, time range) but does not explicitly tell when to use this tool vs alternatives. No exclusions or comparisons with siblings are provided, leaving the agent to infer context.

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