naftiko: 1.0.0-alpha2 info: label: Datadog Events API — Events description: 'Datadog Events API — Events. 4 operations. Lead operation: Datadog Post an Event. Self-contained Naftiko capability covering one Datadog business surface.' tags: - Datadog - Events created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DATADOG_API_KEY: DATADOG_API_KEY capability: consumes: - type: http namespace: events-events baseUri: https://api.datadoghq.com description: Datadog Events API — Events business capability. Self-contained, no shared references. resources: - name: api-v2-events path: /api/v2/events operations: - name: createevent method: POST description: Datadog Post an Event outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listevents method: GET description: Datadog Get a List of Events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: filter[query] in: query type: string description: A Datadog events search query to filter events (e.g., source:aws status:error) - name: filter[from] in: query type: string description: The start of the search time range as an ISO 8601 timestamp or relative time (e.g., now-1h) - name: filter[to] in: query type: string description: The end of the search time range as an ISO 8601 timestamp or relative time (e.g., now) - name: sort in: query type: string description: The sort order for events, either ascending or descending by timestamp - name: page[cursor] in: query type: string description: A cursor token from a previous response to retrieve the next page of events - name: page[limit] in: query type: integer description: The maximum number of events to return per page (default 10, max 1000) - name: api-v2-events-search path: /api/v2/events/search operations: - name: searchevents method: POST description: Datadog Search 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-events-event_id path: /api/v2/events/{event_id} operations: - name: getevent method: GET description: Datadog Get an Event outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: DD-API-KEY value: '{{env.DATADOG_API_KEY}}' placement: header exposes: - type: rest namespace: events-events-rest port: 8080 description: REST adapter for Datadog Events API — Events. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/events name: api-v2-events description: REST surface for api-v2-events. operations: - method: POST name: createevent description: Datadog Post an Event call: events-events.createevent with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listevents description: Datadog Get a List of Events call: events-events.listevents 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/events/search name: api-v2-events-search description: REST surface for api-v2-events-search. operations: - method: POST name: searchevents description: Datadog Search Events call: events-events.searchevents with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v2/events/{event-id} name: api-v2-events-event-id description: REST surface for api-v2-events-event_id. operations: - method: GET name: getevent description: Datadog Get an Event call: events-events.getevent outputParameters: - type: object mapping: $. - type: mcp namespace: events-events-mcp port: 9090 transport: http description: MCP adapter for Datadog Events API — Events. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: datadog-post-event description: Datadog Post an Event hints: readOnly: false destructive: false idempotent: false call: events-events.createevent with: body: tools.body outputParameters: - type: object mapping: $. - name: datadog-get-list-events description: Datadog Get a List of Events hints: readOnly: true destructive: false idempotent: true call: events-events.listevents 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-events description: Datadog Search Events hints: readOnly: true destructive: false idempotent: false call: events-events.searchevents with: body: tools.body outputParameters: - type: object mapping: $. - name: datadog-get-event description: Datadog Get an Event hints: readOnly: true destructive: false idempotent: true call: events-events.getevent outputParameters: - type: object mapping: $.