naftiko: 1.0.0-alpha2 info: label: Datadog Logs API — Logs description: 'Datadog Logs API — Logs. 2 operations. Lead operation: Datadog Send Logs. Self-contained Naftiko capability covering one Datadog business surface.' tags: - Datadog - Logs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DATADOG_API_KEY: DATADOG_API_KEY capability: consumes: - type: http namespace: logs-logs baseUri: https://api.datadoghq.com description: Datadog Logs API — Logs business capability. Self-contained, no shared references. resources: - name: api-v2-logs path: /api/v2/logs operations: - name: submitlogs method: POST description: Datadog Send Logs outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Encoding in: header type: string description: HTTP header used to compress the media-type. Use gzip or deflate encoding - name: body in: body type: object description: Request body (JSON). required: true - name: api-v2-logs-events-search path: /api/v2/logs/events/search operations: - name: searchlogs method: POST description: Datadog Search Logs outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: DD-API-KEY value: '{{env.DATADOG_API_KEY}}' placement: header exposes: - type: rest namespace: logs-logs-rest port: 8080 description: REST adapter for Datadog Logs API — Logs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/logs name: api-v2-logs description: REST surface for api-v2-logs. operations: - method: POST name: submitlogs description: Datadog Send Logs call: logs-logs.submitlogs with: Content-Encoding: rest.Content-Encoding body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/logs/events/search name: api-v2-logs-events-search description: REST surface for api-v2-logs-events-search. operations: - method: POST name: searchlogs description: Datadog Search Logs call: logs-logs.searchlogs with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: logs-logs-mcp port: 9090 transport: http description: MCP adapter for Datadog Logs API — Logs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: datadog-send-logs description: Datadog Send Logs hints: readOnly: false destructive: false idempotent: false call: logs-logs.submitlogs with: Content-Encoding: tools.Content-Encoding body: tools.body outputParameters: - type: object mapping: $. - name: datadog-search-logs description: Datadog Search Logs hints: readOnly: true destructive: false idempotent: false call: logs-logs.searchlogs with: body: tools.body outputParameters: - type: object mapping: $.