Skip to main content
Glama
brukhabtu

Datadog MCP Server

by brukhabtu

ListSpansGet

Retrieve and paginate spans matching a search query with specified filters, timestamps, and sorting. Supports date-time ISO8601 and date math for precise span retrieval.

Instructions

List endpoint returns spans that match a span search query. .

Use this endpoint to see your latest spans. This endpoint is rate limited to 300 requests per hour.

Query Parameters:

  • filter[query]: Search query following spans syntax.

  • filter[from]: Minimum timestamp for requested spans. Supports date-time ISO8601, date math, and regular timestamps (milliseconds).

  • filter[to]: Maximum timestamp for requested spans. Supports date-time ISO8601, date math, and regular timestamps (milliseconds).

  • sort: Order of spans in results.

  • page[cursor]: List following results with a cursor provided in the previous query.

  • page[limit]: Maximum number of spans in the response.

Responses:

  • 200 (Success): OK

    • Content-Type: application/json

    • Response Properties:

      • data: Array of spans matching the request.

    • Example:

{ "data": [ "unknown_type" ], "links": "unknown_type", "meta": "unknown_type" }
  • 400: Bad Request.

    • Content-Type: application/json

    • Response Properties:

      • errors: A list of errors.

    • Example:

{ "errors": [ "unknown_type" ] }
  • 403: Forbidden: Access denied.

    • Content-Type: application/json

    • Response Properties:

      • errors: A list of errors.

    • Example:

{ "errors": [ "unknown_type" ] }
  • 422: Unprocessable Entity.

    • Content-Type: application/json

    • Response Properties:

      • errors: A list of errors.

    • Example:

{ "errors": [ "unknown_type" ] }
  • 429: Too many requests: The rate limit set by the API has been exceeded.

    • Content-Type: application/json

    • Response Properties:

      • errors: A list of errors.

    • Example:

{ "errors": [ "unknown_type" ] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filter[from]NoMinimum timestamp for requested spans. Supports date-time ISO8601, date math, and regular timestamps (milliseconds).
filter[query]NoSearch query following spans syntax.
filter[to]NoMaximum timestamp for requested spans. Supports date-time ISO8601, date math, and regular timestamps (milliseconds).
page[cursor]NoList following results with a cursor provided in the previous query.
page[limit]NoMaximum number of spans in the response.
sortNoSort parameters when querying spans.

Other Tools

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

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