naftiko: 1.0.0-alpha2 info: label: Datadog API — Retention description: 'Datadog API — Retention. 12 operations. Lead operation: Datadog List All Apm Retention Filters. Self-contained Naftiko capability covering one Datadog business surface.' tags: - Datadog - Retention created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DATADOG_API_KEY: DATADOG_API_KEY capability: consumes: - type: http namespace: datadog-retention baseUri: https://{subdomain}.{site} description: Datadog API — Retention business capability. Self-contained, no shared references. resources: - name: api-v2-apm-config-retention-filters path: /api/v2/apm/config/retention-filters operations: - name: listapmretentionfilters method: GET description: Datadog List All Apm Retention Filters outputRawFormat: json outputParameters: - name: result type: object value: $. - 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-execution-order path: /api/v2/apm/config/retention-filters-execution-order operations: - name: reorderapmretentionfilters method: PUT description: Datadog Re-order Retention Filters 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-rum-applications-app_id-relationships-retention_filters path: /api/v2/rum/applications/{app_id}/relationships/retention_filters operations: - name: orderretentionfilters method: PATCH description: Datadog Order Rum Retention Filters 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: listretentionfilters method: GET description: Datadog Get All Rum Retention Filters outputRawFormat: json outputParameters: - name: result type: object value: $. - 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 authentication: type: bearer token: '{{env.DATADOG_API_KEY}}' exposes: - type: rest namespace: datadog-retention-rest port: 8080 description: REST adapter for Datadog API — Retention. 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: GET name: listapmretentionfilters description: Datadog List All Apm Retention Filters call: datadog-retention.listapmretentionfilters outputParameters: - type: object mapping: $. - method: POST name: createapmretentionfilter description: Datadog Create a Retention Filter call: datadog-retention.createapmretentionfilter with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/apm/config/retention-filters-execution-order name: api-v2-apm-config-retention-filters-execution-order description: REST surface for api-v2-apm-config-retention-filters-execution-order. operations: - method: PUT name: reorderapmretentionfilters description: Datadog Re-order Retention Filters call: datadog-retention.reorderapmretentionfilters 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-retention.deleteapmretentionfilter outputParameters: - type: object mapping: $. - method: GET name: getapmretentionfilter description: Datadog Get a Given Apm Retention Filter call: datadog-retention.getapmretentionfilter outputParameters: - type: object mapping: $. - method: PUT name: updateapmretentionfilter description: Datadog Update a Retention Filter call: datadog-retention.updateapmretentionfilter with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/rum/applications/{app-id}/relationships/retention-filters name: api-v2-rum-applications-app-id-relationships-retention-filters description: REST surface for api-v2-rum-applications-app_id-relationships-retention_filters. operations: - method: PATCH name: orderretentionfilters description: Datadog Order Rum Retention Filters call: datadog-retention.orderretentionfilters 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: GET name: listretentionfilters description: Datadog Get All Rum Retention Filters call: datadog-retention.listretentionfilters outputParameters: - type: object mapping: $. - method: POST name: createretentionfilter description: Datadog Create a Rum Retention Filter call: datadog-retention.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-retention.deleteretentionfilter outputParameters: - type: object mapping: $. - method: GET name: getretentionfilter description: Datadog Get a Rum Retention Filter call: datadog-retention.getretentionfilter outputParameters: - type: object mapping: $. - method: PATCH name: updateretentionfilter description: Datadog Update a Rum Retention Filter call: datadog-retention.updateretentionfilter with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: datadog-retention-mcp port: 9090 transport: http description: MCP adapter for Datadog API — Retention. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: datadog-list-all-apm-retention description: Datadog List All Apm Retention Filters hints: readOnly: true destructive: false idempotent: true call: datadog-retention.listapmretentionfilters outputParameters: - type: object mapping: $. - name: datadog-create-retention-filter description: Datadog Create a Retention Filter hints: readOnly: false destructive: false idempotent: false call: datadog-retention.createapmretentionfilter with: body: tools.body outputParameters: - type: object mapping: $. - name: datadog-re-order-retention-filters description: Datadog Re-order Retention Filters hints: readOnly: false destructive: false idempotent: true call: datadog-retention.reorderapmretentionfilters 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-retention.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-retention.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-retention.updateapmretentionfilter with: body: tools.body outputParameters: - type: object mapping: $. - name: datadog-order-rum-retention-filters description: Datadog Order Rum Retention Filters hints: readOnly: false destructive: false idempotent: true call: datadog-retention.orderretentionfilters with: body: tools.body outputParameters: - type: object mapping: $. - name: datadog-get-all-rum-retention description: Datadog Get All Rum Retention Filters hints: readOnly: true destructive: false idempotent: true call: datadog-retention.listretentionfilters 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-retention.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-retention.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-retention.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-retention.updateretentionfilter with: body: tools.body outputParameters: - type: object mapping: $.