naftiko: 1.0.0-alpha2 info: label: Datadog API — Pipelines description: 'Datadog API — Pipelines. 11 operations. Lead operation: Datadog Send Pipeline Event. Self-contained Naftiko capability covering one Datadog business surface.' tags: - Datadog - Pipelines created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DATADOG_API_KEY: DATADOG_API_KEY capability: consumes: - type: http namespace: datadog-pipelines baseUri: https://{subdomain}.{site} description: Datadog API — Pipelines business capability. Self-contained, no shared references. resources: - name: api-v2-ci-pipeline path: /api/v2/ci/pipeline operations: - name: createciapppipelineevent method: POST description: Datadog Send Pipeline Event 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-pipelines-analytics-aggregate path: /api/v2/ci/pipelines/analytics/aggregate operations: - name: aggregateciapppipelineevents method: POST description: Datadog Aggregate Pipelines 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-pipelines-events path: /api/v2/ci/pipelines/events operations: - name: listciapppipelineevents method: GET description: Datadog Get a List of Pipelines 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-pipelines-events-search path: /api/v2/ci/pipelines/events/search operations: - name: searchciapppipelineevents method: POST description: Datadog Search Pipelines 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-remote_config-products-obs_pipelines-pipelines path: /api/v2/remote_config/products/obs_pipelines/pipelines operations: - name: listpipelines method: GET description: Datadog List Pipelines outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createpipeline method: POST description: Datadog Create a New Pipeline 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-obs_pipelines-pipelines-validate path: /api/v2/remote_config/products/obs_pipelines/pipelines/validate operations: - name: validatepipeline method: POST description: Datadog Validate an Observability Pipeline 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-obs_pipelines-pipelines-pipeline_id path: /api/v2/remote_config/products/obs_pipelines/pipelines/{pipeline_id} operations: - name: deletepipeline method: DELETE description: Datadog Delete a Pipeline outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: pipeline_id in: path type: string description: The ID of the pipeline to delete. required: true - name: getpipeline method: GET description: Datadog Get a Specific Pipeline outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: pipeline_id in: path type: string description: The ID of the pipeline to retrieve. required: true - name: updatepipeline method: PUT description: Datadog Update a Pipeline outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: pipeline_id in: path type: string description: The ID of the pipeline to update. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: api-v2-usage-observability_pipelines path: /api/v2/usage/observability_pipelines operations: - name: getusageobservabilitypipelines method: GET description: Datadog Get Hourly Usage for Observability Pipelines outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: start_hr in: query type: string description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.' required: true - name: end_hr in: query type: string description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending' authentication: type: bearer token: '{{env.DATADOG_API_KEY}}' exposes: - type: rest namespace: datadog-pipelines-rest port: 8080 description: REST adapter for Datadog API — Pipelines. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/ci/pipeline name: api-v2-ci-pipeline description: REST surface for api-v2-ci-pipeline. operations: - method: POST name: createciapppipelineevent description: Datadog Send Pipeline Event call: datadog-pipelines.createciapppipelineevent with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/ci/pipelines/analytics/aggregate name: api-v2-ci-pipelines-analytics-aggregate description: REST surface for api-v2-ci-pipelines-analytics-aggregate. operations: - method: POST name: aggregateciapppipelineevents description: Datadog Aggregate Pipelines Events call: datadog-pipelines.aggregateciapppipelineevents with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/ci/pipelines/events name: api-v2-ci-pipelines-events description: REST surface for api-v2-ci-pipelines-events. operations: - method: GET name: listciapppipelineevents description: Datadog Get a List of Pipelines Events call: datadog-pipelines.listciapppipelineevents 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/pipelines/events/search name: api-v2-ci-pipelines-events-search description: REST surface for api-v2-ci-pipelines-events-search. operations: - method: POST name: searchciapppipelineevents description: Datadog Search Pipelines Events call: datadog-pipelines.searchciapppipelineevents with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/remote-config/products/obs-pipelines/pipelines name: api-v2-remote-config-products-obs-pipelines-pipelines description: REST surface for api-v2-remote_config-products-obs_pipelines-pipelines. operations: - method: GET name: listpipelines description: Datadog List Pipelines call: datadog-pipelines.listpipelines outputParameters: - type: object mapping: $. - method: POST name: createpipeline description: Datadog Create a New Pipeline call: datadog-pipelines.createpipeline with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/remote-config/products/obs-pipelines/pipelines/validate name: api-v2-remote-config-products-obs-pipelines-pipelines-validate description: REST surface for api-v2-remote_config-products-obs_pipelines-pipelines-validate. operations: - method: POST name: validatepipeline description: Datadog Validate an Observability Pipeline call: datadog-pipelines.validatepipeline with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/remote-config/products/obs-pipelines/pipelines/{pipeline-id} name: api-v2-remote-config-products-obs-pipelines-pipelines-pipeline-id description: REST surface for api-v2-remote_config-products-obs_pipelines-pipelines-pipeline_id. operations: - method: DELETE name: deletepipeline description: Datadog Delete a Pipeline call: datadog-pipelines.deletepipeline with: pipeline_id: rest.pipeline_id outputParameters: - type: object mapping: $. - method: GET name: getpipeline description: Datadog Get a Specific Pipeline call: datadog-pipelines.getpipeline with: pipeline_id: rest.pipeline_id outputParameters: - type: object mapping: $. - method: PUT name: updatepipeline description: Datadog Update a Pipeline call: datadog-pipelines.updatepipeline with: pipeline_id: rest.pipeline_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/usage/observability-pipelines name: api-v2-usage-observability-pipelines description: REST surface for api-v2-usage-observability_pipelines. operations: - method: GET name: getusageobservabilitypipelines description: Datadog Get Hourly Usage for Observability Pipelines call: datadog-pipelines.getusageobservabilitypipelines with: start_hr: rest.start_hr end_hr: rest.end_hr outputParameters: - type: object mapping: $. - type: mcp namespace: datadog-pipelines-mcp port: 9090 transport: http description: MCP adapter for Datadog API — Pipelines. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: datadog-send-pipeline-event description: Datadog Send Pipeline Event hints: readOnly: false destructive: false idempotent: false call: datadog-pipelines.createciapppipelineevent with: body: tools.body outputParameters: - type: object mapping: $. - name: datadog-aggregate-pipelines-events description: Datadog Aggregate Pipelines Events hints: readOnly: false destructive: false idempotent: false call: datadog-pipelines.aggregateciapppipelineevents with: body: tools.body outputParameters: - type: object mapping: $. - name: datadog-get-list-pipelines-events description: Datadog Get a List of Pipelines Events hints: readOnly: true destructive: false idempotent: true call: datadog-pipelines.listciapppipelineevents 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-pipelines-events description: Datadog Search Pipelines Events hints: readOnly: true destructive: false idempotent: false call: datadog-pipelines.searchciapppipelineevents with: body: tools.body outputParameters: - type: object mapping: $. - name: datadog-list-pipelines description: Datadog List Pipelines hints: readOnly: true destructive: false idempotent: true call: datadog-pipelines.listpipelines outputParameters: - type: object mapping: $. - name: datadog-create-new-pipeline description: Datadog Create a New Pipeline hints: readOnly: false destructive: false idempotent: false call: datadog-pipelines.createpipeline with: body: tools.body outputParameters: - type: object mapping: $. - name: datadog-validate-observability-pipeline description: Datadog Validate an Observability Pipeline hints: readOnly: true destructive: false idempotent: false call: datadog-pipelines.validatepipeline with: body: tools.body outputParameters: - type: object mapping: $. - name: datadog-delete-pipeline description: Datadog Delete a Pipeline hints: readOnly: false destructive: true idempotent: true call: datadog-pipelines.deletepipeline with: pipeline_id: tools.pipeline_id outputParameters: - type: object mapping: $. - name: datadog-get-specific-pipeline description: Datadog Get a Specific Pipeline hints: readOnly: true destructive: false idempotent: true call: datadog-pipelines.getpipeline with: pipeline_id: tools.pipeline_id outputParameters: - type: object mapping: $. - name: datadog-update-pipeline description: Datadog Update a Pipeline hints: readOnly: false destructive: false idempotent: true call: datadog-pipelines.updatepipeline with: pipeline_id: tools.pipeline_id body: tools.body outputParameters: - type: object mapping: $. - name: datadog-get-hourly-usage-observability description: Datadog Get Hourly Usage for Observability Pipelines hints: readOnly: true destructive: false idempotent: true call: datadog-pipelines.getusageobservabilitypipelines with: start_hr: tools.start_hr end_hr: tools.end_hr outputParameters: - type: object mapping: $.