naftiko: 1.0.0-alpha2 info: label: Datadog API — Definition description: 'Datadog API — Definition. 3 operations. Lead operation: Datadog Create or Update Service Definition. Self-contained Naftiko capability covering one Datadog business surface.' tags: - Datadog - Definition created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DATADOG_API_KEY: DATADOG_API_KEY capability: consumes: - type: http namespace: datadog-definition baseUri: https://{subdomain}.{site} description: Datadog API — Definition business capability. Self-contained, no shared references. resources: - name: api-v2-services-definitions path: /api/v2/services/definitions operations: - name: createorupdateservicedefinitions method: POST description: Datadog Create or Update Service Definition outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-v2-services-definitions-service_name path: /api/v2/services/definitions/{service_name} operations: - name: deleteservicedefinition method: DELETE description: Datadog Delete a Single Service Definition outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getservicedefinition method: GET description: Datadog Get a Single Service Definition outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.DATADOG_API_KEY}}' exposes: - type: rest namespace: datadog-definition-rest port: 8080 description: REST adapter for Datadog API — Definition. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/services/definitions name: api-v2-services-definitions description: REST surface for api-v2-services-definitions. operations: - method: POST name: createorupdateservicedefinitions description: Datadog Create or Update Service Definition call: datadog-definition.createorupdateservicedefinitions with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/services/definitions/{service-name} name: api-v2-services-definitions-service-name description: REST surface for api-v2-services-definitions-service_name. operations: - method: DELETE name: deleteservicedefinition description: Datadog Delete a Single Service Definition call: datadog-definition.deleteservicedefinition outputParameters: - type: object mapping: $. - method: GET name: getservicedefinition description: Datadog Get a Single Service Definition call: datadog-definition.getservicedefinition outputParameters: - type: object mapping: $. - type: mcp namespace: datadog-definition-mcp port: 9090 transport: http description: MCP adapter for Datadog API — Definition. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: datadog-create-update-service-definition description: Datadog Create or Update Service Definition hints: readOnly: false destructive: false idempotent: false call: datadog-definition.createorupdateservicedefinitions with: body: tools.body outputParameters: - type: object mapping: $. - name: datadog-delete-single-service-definition description: Datadog Delete a Single Service Definition hints: readOnly: false destructive: true idempotent: true call: datadog-definition.deleteservicedefinition outputParameters: - type: object mapping: $. - name: datadog-get-single-service-definition description: Datadog Get a Single Service Definition hints: readOnly: true destructive: false idempotent: true call: datadog-definition.getservicedefinition outputParameters: - type: object mapping: $.