Datadog · Capability

Datadog API — Tests

Datadog API — Tests. 5 operations. Lead operation: Datadog Aggregate Tests Events. Self-contained Naftiko capability covering one Datadog business surface.

Run with Naftiko DatadogTests

What You Can Do

POST
Aggregateciapptestevents — Datadog Aggregate Tests Events
/v1/api/v2/ci/tests/analytics/aggregate
GET
Listciapptestevents — Datadog Get a List of Tests Events
/v1/api/v2/ci/tests/events
POST
Searchciapptestevents — Datadog Search Tests Events
/v1/api/v2/ci/tests/events/search
POST
Testsecuritymonitoringrule — Datadog Test a Rule
/v1/api/v2/security-monitoring/rules/test
POST
Testexistingsecuritymonitoringrule — Datadog Test an Existing Rule
/v1/api/v2/security-monitoring/rules/{rule-id}/test

MCP Tools

datadog-aggregate-tests-events

Datadog Aggregate Tests Events

datadog-get-list-tests-events

Datadog Get a List of Tests Events

read-only idempotent
datadog-search-tests-events

Datadog Search Tests Events

read-only
datadog-test-rule

Datadog Test a Rule

read-only
datadog-test-existing-rule

Datadog Test an Existing Rule

read-only

Capability Spec

datadog-tests.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Datadog API — Tests
  description: 'Datadog API — Tests. 5 operations. Lead operation: Datadog Aggregate Tests Events. Self-contained Naftiko
    capability covering one Datadog business surface.'
  tags:
  - Datadog
  - Tests
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DATADOG_API_KEY: DATADOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: datadog-tests
    baseUri: https://{subdomain}.{site}
    description: Datadog API — Tests business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-ci-tests-analytics-aggregate
      path: /api/v2/ci/tests/analytics/aggregate
      operations:
      - name: aggregateciapptestevents
        method: POST
        description: Datadog Aggregate Tests Events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-ci-tests-events
      path: /api/v2/ci/tests/events
      operations:
      - name: listciapptestevents
        method: GET
        description: Datadog Get a List of Tests Events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter[query]
          in: query
          type: string
          description: Search query following log syntax.
        - name: filter[from]
          in: query
          type: string
          description: Minimum timestamp for requested events.
        - name: filter[to]
          in: query
          type: string
          description: Maximum timestamp for requested events.
        - name: sort
          in: query
          type: string
          description: Order of events in results.
        - name: page[cursor]
          in: query
          type: string
          description: List following results with a cursor provided in the previous query.
        - name: page[limit]
          in: query
          type: integer
          description: Maximum number of events in the response.
    - name: api-v2-ci-tests-events-search
      path: /api/v2/ci/tests/events/search
      operations:
      - name: searchciapptestevents
        method: POST
        description: Datadog Search Tests Events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-v2-security_monitoring-rules-test
      path: /api/v2/security_monitoring/rules/test
      operations:
      - name: testsecuritymonitoringrule
        method: POST
        description: Datadog Test a Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-security_monitoring-rules-rule_id-test
      path: /api/v2/security_monitoring/rules/{rule_id}/test
      operations:
      - name: testexistingsecuritymonitoringrule
        method: POST
        description: Datadog Test an Existing Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.DATADOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: datadog-tests-rest
    port: 8080
    description: REST adapter for Datadog API — Tests. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/v2/ci/tests/analytics/aggregate
      name: api-v2-ci-tests-analytics-aggregate
      description: REST surface for api-v2-ci-tests-analytics-aggregate.
      operations:
      - method: POST
        name: aggregateciapptestevents
        description: Datadog Aggregate Tests Events
        call: datadog-tests.aggregateciapptestevents
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/ci/tests/events
      name: api-v2-ci-tests-events
      description: REST surface for api-v2-ci-tests-events.
      operations:
      - method: GET
        name: listciapptestevents
        description: Datadog Get a List of Tests Events
        call: datadog-tests.listciapptestevents
        with:
          filter[query]: rest.filter[query]
          filter[from]: rest.filter[from]
          filter[to]: rest.filter[to]
          sort: rest.sort
          page[cursor]: rest.page[cursor]
          page[limit]: rest.page[limit]
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/ci/tests/events/search
      name: api-v2-ci-tests-events-search
      description: REST surface for api-v2-ci-tests-events-search.
      operations:
      - method: POST
        name: searchciapptestevents
        description: Datadog Search Tests Events
        call: datadog-tests.searchciapptestevents
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/security-monitoring/rules/test
      name: api-v2-security-monitoring-rules-test
      description: REST surface for api-v2-security_monitoring-rules-test.
      operations:
      - method: POST
        name: testsecuritymonitoringrule
        description: Datadog Test a Rule
        call: datadog-tests.testsecuritymonitoringrule
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/security-monitoring/rules/{rule-id}/test
      name: api-v2-security-monitoring-rules-rule-id-test
      description: REST surface for api-v2-security_monitoring-rules-rule_id-test.
      operations:
      - method: POST
        name: testexistingsecuritymonitoringrule
        description: Datadog Test an Existing Rule
        call: datadog-tests.testexistingsecuritymonitoringrule
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: datadog-tests-mcp
    port: 9090
    transport: http
    description: MCP adapter for Datadog API — Tests. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: datadog-aggregate-tests-events
      description: Datadog Aggregate Tests Events
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: datadog-tests.aggregateciapptestevents
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-get-list-tests-events
      description: Datadog Get a List of Tests Events
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: datadog-tests.listciapptestevents
      with:
        filter[query]: tools.filter[query]
        filter[from]: tools.filter[from]
        filter[to]: tools.filter[to]
        sort: tools.sort
        page[cursor]: tools.page[cursor]
        page[limit]: tools.page[limit]
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-search-tests-events
      description: Datadog Search Tests Events
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: datadog-tests.searchciapptestevents
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-test-rule
      description: Datadog Test a Rule
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: datadog-tests.testsecuritymonitoringrule
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-test-existing-rule
      description: Datadog Test an Existing Rule
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: datadog-tests.testexistingsecuritymonitoringrule
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.