Skip to main content
Glama
techskies11

datadog-mcp

by techskies11

search_apm_traces

Read-onlyIdempotent

Debug slow requests and find errors by searching distributed traces and spans. Filter with Datadog APM syntax like service, status, or custom tags.

Instructions

Search distributed traces and spans for performance analysis (paginated).

Use this when: debugging slow requests, finding errors in services, or analyzing latency. For statistics (latency percentiles, error rates) without fetching raw spans, use aggregate_spans instead - it is much lighter for dashboards/analytics.

Common queries:

  • Find errors: "service:api @error.message:*"

  • By status: "service:checkout @http.status_code:500"

  • Custom tags: "@airline_name:aeromexico @session_id:*"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortNo"timestamp" or "-timestamp"timestamp
queryYesSearch query using Datadog APM span search syntax (examples above)
cursorNoPagination cursor from a previous response
to_timeYesEnd time - same accepted formats as from_time
from_timeYesStart time - ISO 8601, relative date math (e.g. "now-1h"), or a millisecond timestamp
page_sizeNoSpans 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 cover read-only/idempotent safety, so description adds meaningful context: pagination, raw span retrieval (vs aggregates), and query syntax quirks. It doesn't overwhelm with irrelevant details, but stops short of disclosing any edge-case behaviors like rate limits.

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?

The description is concise and front-loaded; it states the core purpose, then quick usage criteria, alternative, and examples. No wasted sentences, and examples are scannable.

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 rich annotations, a complete input schema, and an output schema present, the description fully covers when and how to use the tool, including alternative paths. Nothing crucially missing for a read-only search tool.

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 baseline is 3. The description reinforces query syntax through examples but adds no additional parameter-level meaning beyond what the schema already provides.

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 opens with a specific verb+resource: 'Search distributed traces and spans for performance analysis (paginated).' It clearly differentiates from siblings by mentioning aggregate_spans for statistics, and the name itself is descriptive.

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?

Explicit 'Use this when' list and a direct alternative recommendation ('use aggregate_spans instead') with reasoning. Common query examples further clarify when this tool fits.

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