Skip to main content
Glama
techskies11

datadog-mcp

by techskies11

search_logs

Read-onlyIdempotent

Search and view paginated log entries to debug issues, inspect error details, and examine actual log messages.

Instructions

Search and VIEW log entries. Returns paginated results.

IMPORTANT: Use this ONLY when you need to VIEW log content for debugging. For COUNTING logs or unique values, use count_logs or count_unique_values instead - they are much faster and lighter since they never fetch raw log content.

Use this when:

  • Need to view actual log messages and details

  • Debugging specific issues

  • Investigating error details

DO NOT use for:

  • Counting logs (use count_logs)

  • Counting unique sessions/users (use count_unique_values)

  • Statistical analysis (use aggregate_logs_by_field)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortNoSort order, "timestamp" or "-timestamp" for descendingtimestamp
queryYesSearch query using Datadog log search syntax (e.g. "status:error service:api")
cursorNoPagination cursor from a previous response's next_cursor field
indexesNoOptional list of index names to search (e.g. ["main", "retention"])
to_timeYesEnd time - same accepted formats as from_time
from_timeYesStart time - ISO 8601 (e.g. "2024-01-28T10:00:00Z"), relative date math (e.g. "now-1h", "now"), or a millisecond timestamp
page_sizeNoLogs per page (default: 25, max: 50)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description adds 'Returns paginated results' and contrasts performance with alternatives ('never fetch raw log content'), providing useful behavioral context without contradicting annotations.

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 long but well-structured with clear sections. Each bullet names a distinct sibling tool, earning its place. The 'IMPORTANT' block is slightly redundant with the bullets, keeping it from a perfect score.

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?

Given the tool's complexity (7 params, pagination, many siblings), the description covers what it does, when to use it, and when not to, with specific alternatives. The output schema exists for return values, so nothing critical is missing.

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 description does not need to add much parameter-level detail. It provides general scope (search vs count) but does not go deeper than the schema already does, so baseline 3 applies.

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 starts with 'Search and VIEW log entries,' which is a specific verb+resource statement. It also explicitly distinguishes from siblings by contrasting with count_logs, count_unique_values, and aggregate_logs_by_field, making the purpose unambiguous.

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

Usage Guidelines5/5

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

The description includes explicit 'Use this when' and 'DO NOT use for' sections, naming specific alternative tools for each exclusion. This fully satisfies the when-to-use/alternatives requirement.

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

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