Datadog · Capability

Datadog API — Filter

Datadog API — Filter. 16 operations. Lead operation: Datadog Create a Retention Filter. Self-contained Naftiko capability covering one Datadog business surface.

Run with Naftiko DatadogFilter

What You Can Do

POST
Createapmretentionfilter — Datadog Create a Retention Filter
/v1/api/v2/apm/config/retention-filters
DELETE
Deleteapmretentionfilter — Datadog Delete a Retention Filter
/v1/api/v2/apm/config/retention-filters/{filter-id}
GET
Getapmretentionfilter — Datadog Get a Given Apm Retention Filter
/v1/api/v2/apm/config/retention-filters/{filter-id}
PUT
Updateapmretentionfilter — Datadog Update a Retention Filter
/v1/api/v2/apm/config/retention-filters/{filter-id}
POST
Createapplicationsecuritywafexclusionfilter — Datadog Create a Waf Exclusion Filter
/v1/api/v2/remote-config/products/asm/waf/exclusion-filters
DELETE
Deleteapplicationsecuritywafexclusionfilter — Datadog Delete a Waf Exclusion Filter
/v1/api/v2/remote-config/products/asm/waf/exclusion-filters/{exclusion-filter-id}
GET
Getapplicationsecuritywafexclusionfilter — Datadog Get a Waf Exclusion Filter
/v1/api/v2/remote-config/products/asm/waf/exclusion-filters/{exclusion-filter-id}
PUT
Updateapplicationsecuritywafexclusionfilter — Datadog Update a Waf Exclusion Filter
/v1/api/v2/remote-config/products/asm/waf/exclusion-filters/{exclusion-filter-id}
POST
Createretentionfilter — Datadog Create a Rum Retention Filter
/v1/api/v2/rum/applications/{app-id}/retention-filters
DELETE
Deleteretentionfilter — Datadog Delete a Rum Retention Filter
/v1/api/v2/rum/applications/{app-id}/retention-filters/{rf-id}
GET
Getretentionfilter — Datadog Get a Rum Retention Filter
/v1/api/v2/rum/applications/{app-id}/retention-filters/{rf-id}
PATCH
Updateretentionfilter — Datadog Update a Rum Retention Filter
/v1/api/v2/rum/applications/{app-id}/retention-filters/{rf-id}
POST
Createsecurityfilter — Datadog Create a Security Filter
/v1/api/v2/security-monitoring/configuration/security-filters
DELETE
Deletesecurityfilter — Datadog Delete a Security Filter
/v1/api/v2/security-monitoring/configuration/security-filters/{security-filter-id}
GET
Getsecurityfilter — Datadog Get a Security Filter
/v1/api/v2/security-monitoring/configuration/security-filters/{security-filter-id}
PATCH
Updatesecurityfilter — Datadog Update a Security Filter
/v1/api/v2/security-monitoring/configuration/security-filters/{security-filter-id}

MCP Tools

datadog-create-retention-filter

Datadog Create a Retention Filter

datadog-delete-retention-filter

Datadog Delete a Retention Filter

idempotent
datadog-get-given-apm-retention

Datadog Get a Given Apm Retention Filter

read-only idempotent
datadog-update-retention-filter

Datadog Update a Retention Filter

idempotent
datadog-create-waf-exclusion-filter

Datadog Create a Waf Exclusion Filter

datadog-delete-waf-exclusion-filter

Datadog Delete a Waf Exclusion Filter

idempotent
datadog-get-waf-exclusion-filter

Datadog Get a Waf Exclusion Filter

read-only idempotent
datadog-update-waf-exclusion-filter

Datadog Update a Waf Exclusion Filter

idempotent
datadog-create-rum-retention-filter

Datadog Create a Rum Retention Filter

datadog-delete-rum-retention-filter

Datadog Delete a Rum Retention Filter

idempotent
datadog-get-rum-retention-filter

Datadog Get a Rum Retention Filter

read-only idempotent
datadog-update-rum-retention-filter

Datadog Update a Rum Retention Filter

idempotent
datadog-create-security-filter

Datadog Create a Security Filter

datadog-delete-security-filter

Datadog Delete a Security Filter

idempotent
datadog-get-security-filter

Datadog Get a Security Filter

read-only idempotent
datadog-update-security-filter

Datadog Update a Security Filter

idempotent

Capability Spec

datadog-filter.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Datadog API — Filter
  description: 'Datadog API — Filter. 16 operations. Lead operation: Datadog Create a Retention Filter. Self-contained Naftiko
    capability covering one Datadog business surface.'
  tags:
  - Datadog
  - Filter
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DATADOG_API_KEY: DATADOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: datadog-filter
    baseUri: https://{subdomain}.{site}
    description: Datadog API — Filter business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-apm-config-retention-filters
      path: /api/v2/apm/config/retention-filters
      operations:
      - name: createapmretentionfilter
        method: POST
        description: Datadog Create a Retention Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-apm-config-retention-filters-filter_id
      path: /api/v2/apm/config/retention-filters/{filter_id}
      operations:
      - name: deleteapmretentionfilter
        method: DELETE
        description: Datadog Delete a Retention Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getapmretentionfilter
        method: GET
        description: Datadog Get a Given Apm Retention Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateapmretentionfilter
        method: PUT
        description: Datadog Update a Retention Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-remote_config-products-asm-waf-exclusion_filters
      path: /api/v2/remote_config/products/asm/waf/exclusion_filters
      operations:
      - name: createapplicationsecuritywafexclusionfilter
        method: POST
        description: Datadog Create a Waf Exclusion Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-remote_config-products-asm-waf-exclusion_filters-exclusion_filter_id
      path: /api/v2/remote_config/products/asm/waf/exclusion_filters/{exclusion_filter_id}
      operations:
      - name: deleteapplicationsecuritywafexclusionfilter
        method: DELETE
        description: Datadog Delete a Waf Exclusion Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getapplicationsecuritywafexclusionfilter
        method: GET
        description: Datadog Get a Waf Exclusion Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateapplicationsecuritywafexclusionfilter
        method: PUT
        description: Datadog Update a Waf Exclusion Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-rum-applications-app_id-retention_filters
      path: /api/v2/rum/applications/{app_id}/retention_filters
      operations:
      - name: createretentionfilter
        method: POST
        description: Datadog Create a Rum Retention Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-rum-applications-app_id-retention_filters-rf_id
      path: /api/v2/rum/applications/{app_id}/retention_filters/{rf_id}
      operations:
      - name: deleteretentionfilter
        method: DELETE
        description: Datadog Delete a Rum Retention Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getretentionfilter
        method: GET
        description: Datadog Get a Rum Retention Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateretentionfilter
        method: PATCH
        description: Datadog Update a Rum Retention Filter
        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-configuration-security_filters
      path: /api/v2/security_monitoring/configuration/security_filters
      operations:
      - name: createsecurityfilter
        method: POST
        description: Datadog Create a Security Filter
        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-configuration-security_filters-security_filter_id
      path: /api/v2/security_monitoring/configuration/security_filters/{security_filter_id}
      operations:
      - name: deletesecurityfilter
        method: DELETE
        description: Datadog Delete a Security Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getsecurityfilter
        method: GET
        description: Datadog Get a Security Filter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatesecurityfilter
        method: PATCH
        description: Datadog Update a Security Filter
        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-filter-rest
    port: 8080
    description: REST adapter for Datadog API — Filter. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/v2/apm/config/retention-filters
      name: api-v2-apm-config-retention-filters
      description: REST surface for api-v2-apm-config-retention-filters.
      operations:
      - method: POST
        name: createapmretentionfilter
        description: Datadog Create a Retention Filter
        call: datadog-filter.createapmretentionfilter
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/apm/config/retention-filters/{filter-id}
      name: api-v2-apm-config-retention-filters-filter-id
      description: REST surface for api-v2-apm-config-retention-filters-filter_id.
      operations:
      - method: DELETE
        name: deleteapmretentionfilter
        description: Datadog Delete a Retention Filter
        call: datadog-filter.deleteapmretentionfilter
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getapmretentionfilter
        description: Datadog Get a Given Apm Retention Filter
        call: datadog-filter.getapmretentionfilter
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateapmretentionfilter
        description: Datadog Update a Retention Filter
        call: datadog-filter.updateapmretentionfilter
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/remote-config/products/asm/waf/exclusion-filters
      name: api-v2-remote-config-products-asm-waf-exclusion-filters
      description: REST surface for api-v2-remote_config-products-asm-waf-exclusion_filters.
      operations:
      - method: POST
        name: createapplicationsecuritywafexclusionfilter
        description: Datadog Create a Waf Exclusion Filter
        call: datadog-filter.createapplicationsecuritywafexclusionfilter
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/remote-config/products/asm/waf/exclusion-filters/{exclusion-filter-id}
      name: api-v2-remote-config-products-asm-waf-exclusion-filters-exclusion-filter-id
      description: REST surface for api-v2-remote_config-products-asm-waf-exclusion_filters-exclusion_filter_id.
      operations:
      - method: DELETE
        name: deleteapplicationsecuritywafexclusionfilter
        description: Datadog Delete a Waf Exclusion Filter
        call: datadog-filter.deleteapplicationsecuritywafexclusionfilter
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getapplicationsecuritywafexclusionfilter
        description: Datadog Get a Waf Exclusion Filter
        call: datadog-filter.getapplicationsecuritywafexclusionfilter
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateapplicationsecuritywafexclusionfilter
        description: Datadog Update a Waf Exclusion Filter
        call: datadog-filter.updateapplicationsecuritywafexclusionfilter
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/rum/applications/{app-id}/retention-filters
      name: api-v2-rum-applications-app-id-retention-filters
      description: REST surface for api-v2-rum-applications-app_id-retention_filters.
      operations:
      - method: POST
        name: createretentionfilter
        description: Datadog Create a Rum Retention Filter
        call: datadog-filter.createretentionfilter
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/rum/applications/{app-id}/retention-filters/{rf-id}
      name: api-v2-rum-applications-app-id-retention-filters-rf-id
      description: REST surface for api-v2-rum-applications-app_id-retention_filters-rf_id.
      operations:
      - method: DELETE
        name: deleteretentionfilter
        description: Datadog Delete a Rum Retention Filter
        call: datadog-filter.deleteretentionfilter
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getretentionfilter
        description: Datadog Get a Rum Retention Filter
        call: datadog-filter.getretentionfilter
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateretentionfilter
        description: Datadog Update a Rum Retention Filter
        call: datadog-filter.updateretentionfilter
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/security-monitoring/configuration/security-filters
      name: api-v2-security-monitoring-configuration-security-filters
      description: REST surface for api-v2-security_monitoring-configuration-security_filters.
      operations:
      - method: POST
        name: createsecurityfilter
        description: Datadog Create a Security Filter
        call: datadog-filter.createsecurityfilter
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/security-monitoring/configuration/security-filters/{security-filter-id}
      name: api-v2-security-monitoring-configuration-security-filters-security-filter-id
      description: REST surface for api-v2-security_monitoring-configuration-security_filters-security_filter_id.
      operations:
      - method: DELETE
        name: deletesecurityfilter
        description: Datadog Delete a Security Filter
        call: datadog-filter.deletesecurityfilter
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getsecurityfilter
        description: Datadog Get a Security Filter
        call: datadog-filter.getsecurityfilter
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatesecurityfilter
        description: Datadog Update a Security Filter
        call: datadog-filter.updatesecurityfilter
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: datadog-filter-mcp
    port: 9090
    transport: http
    description: MCP adapter for Datadog API — Filter. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: datadog-create-retention-filter
      description: Datadog Create a Retention Filter
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: datadog-filter.createapmretentionfilter
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-delete-retention-filter
      description: Datadog Delete a Retention Filter
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: datadog-filter.deleteapmretentionfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-get-given-apm-retention
      description: Datadog Get a Given Apm Retention Filter
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: datadog-filter.getapmretentionfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-update-retention-filter
      description: Datadog Update a Retention Filter
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: datadog-filter.updateapmretentionfilter
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-create-waf-exclusion-filter
      description: Datadog Create a Waf Exclusion Filter
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: datadog-filter.createapplicationsecuritywafexclusionfilter
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-delete-waf-exclusion-filter
      description: Datadog Delete a Waf Exclusion Filter
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: datadog-filter.deleteapplicationsecuritywafexclusionfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-get-waf-exclusion-filter
      description: Datadog Get a Waf Exclusion Filter
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: datadog-filter.getapplicationsecuritywafexclusionfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-update-waf-exclusion-filter
      description: Datadog Update a Waf Exclusion Filter
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: datadog-filter.updateapplicationsecuritywafexclusionfilter
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-create-rum-retention-filter
      description: Datadog Create a Rum Retention Filter
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: datadog-filter.createretentionfilter
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-delete-rum-retention-filter
      description: Datadog Delete a Rum Retention Filter
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: datadog-filter.deleteretentionfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-get-rum-retention-filter
      description: Datadog Get a Rum Retention Filter
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: datadog-filter.getretentionfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-update-rum-retention-filter
      description: Datadog Update a Rum Retention Filter
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: datadog-filter.updateretentionfilter
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-create-security-filter
      description: Datadog Create a Security Filter
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: datadog-filter.createsecurityfilter
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-delete-security-filter
      description: Datadog Delete a Security Filter
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: datadog-filter.deletesecurityfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-get-security-filter
      description: Datadog Get a Security Filter
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: datadog-filter.getsecurityfilter
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-update-security-filter
      description: Datadog Update a Security Filter
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: datadog-filter.updatesecurityfilter
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.