Nudge Security · Capability

Nudge Security API — Events

Nudge Security API — Events. 2 operations. Lead operation: Search events. Self-contained Naftiko capability covering one Nudge Security business surface.

Run with Naftiko Nudge SecurityEvents

What You Can Do

GET
Get — Search events
/v1/events
GET
Get — Get event
/v1/events/{event-id}

MCP Tools

search-events

Search events

read-only idempotent
get-event

Get event

read-only idempotent

Capability Spec

nudge-security-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Nudge Security API — Events
  description: 'Nudge Security API — Events. 2 operations. Lead operation: Search events. Self-contained Naftiko capability
    covering one Nudge Security business surface.'
  tags:
  - Nudge Security
  - Events
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NUDGE_SECURITY_API_KEY: NUDGE_SECURITY_API_KEY
capability:
  consumes:
  - type: http
    namespace: nudge-security-events
    baseUri: https://api.nudgesecurity.io/api/1.0
    description: Nudge Security API — Events business capability. Self-contained, no shared references.
    resources:
    - name: events
      path: /events
      operations:
      - name: get
        method: GET
        description: Search events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: events-event_id
      path: /events/{event_id}
      operations:
      - name: get
        method: GET
        description: Get event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_id
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.NUDGE_SECURITY_API_KEY}}'
  exposes:
  - type: rest
    namespace: nudge-security-events-rest
    port: 8080
    description: REST adapter for Nudge Security API — Events. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/events
      name: events
      description: REST surface for events.
      operations:
      - method: GET
        name: get
        description: Search events
        call: nudge-security-events.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/events/{event-id}
      name: events-event-id
      description: REST surface for events-event_id.
      operations:
      - method: GET
        name: get
        description: Get event
        call: nudge-security-events.get
        with:
          event_id: rest.event_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: nudge-security-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for Nudge Security API — Events. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: search-events
      description: Search events
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: nudge-security-events.get
      outputParameters:
      - type: object
        mapping: $.
    - name: get-event
      description: Get event
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: nudge-security-events.get
      with:
        event_id: tools.event_id
      outputParameters:
      - type: object
        mapping: $.