Nudge Security · Capability

Nudge Security API — Labels

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

Run with Naftiko Nudge SecurityLabels

What You Can Do

GET
Get — Search labels
/v1/labels
POST
Post — Create label
/v1/labels

MCP Tools

search-labels

Search labels

read-only idempotent
create-label

Create label

Capability Spec

nudge-security-labels.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Nudge Security API — Labels
  description: 'Nudge Security API — Labels. 2 operations. Lead operation: Search labels. Self-contained Naftiko capability
    covering one Nudge Security business surface.'
  tags:
  - Nudge Security
  - Labels
  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-labels
    baseUri: https://api.nudgesecurity.io/api/1.0
    description: Nudge Security API — Labels business capability. Self-contained, no shared references.
    resources:
    - name: labels
      path: /labels
      operations:
      - name: get
        method: GET
        description: Search labels
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: post
        method: POST
        description: Create label
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.NUDGE_SECURITY_API_KEY}}'
  exposes:
  - type: rest
    namespace: nudge-security-labels-rest
    port: 8080
    description: REST adapter for Nudge Security API — Labels. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/labels
      name: labels
      description: REST surface for labels.
      operations:
      - method: GET
        name: get
        description: Search labels
        call: nudge-security-labels.get
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Create label
        call: nudge-security-labels.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: nudge-security-labels-mcp
    port: 9090
    transport: http
    description: MCP adapter for Nudge Security API — Labels. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: search-labels
      description: Search labels
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: nudge-security-labels.get
      outputParameters:
      - type: object
        mapping: $.
    - name: create-label
      description: Create label
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: nudge-security-labels.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.