Incident.io · Capability

Incident.io API — Incidents

Incident.io API — Incidents. 4 operations. Lead operation: Incidents. Self-contained Naftiko capability covering one Incident Io business surface.

Run with Naftiko Incident IoIncidents

What You Can Do

GET
Listincidents — listincidents
/v1/incidents
POST
Createincident — createincident
/v1/incidents
GET
Getincident — getincident
/v1/incidents/{id}
PUT
Updateincident — updateincident
/v1/incidents/{id}

MCP Tools

listincidents

listincidents

read-only idempotent
createincident

createincident

getincident

getincident

read-only idempotent
updateincident

updateincident

idempotent

Capability Spec

incident-io-incidents.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Incident.io API — Incidents
  description: 'Incident.io API — Incidents. 4 operations. Lead operation: Incidents. Self-contained Naftiko capability covering
    one Incident Io business surface.'
  tags:
  - Incident Io
  - Incidents
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    INCIDENT_IO_API_KEY: INCIDENT_IO_API_KEY
capability:
  consumes:
  - type: http
    namespace: incident-io-incidents
    baseUri: https://api.incident.io/v2
    description: Incident.io API — Incidents business capability. Self-contained, no shared references.
    resources:
    - name: incidents
      path: /incidents
      operations:
      - name: listincidents
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createincident
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: incidents-id
      path: /incidents/{id}
      operations:
      - name: getincident
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateincident
        method: PUT
        description: ''
        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.INCIDENT_IO_API_KEY}}'
  exposes:
  - type: rest
    namespace: incident-io-incidents-rest
    port: 8080
    description: REST adapter for Incident.io API — Incidents. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/incidents
      name: incidents
      description: REST surface for incidents.
      operations:
      - method: GET
        name: listincidents
        description: listincidents
        call: incident-io-incidents.listincidents
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createincident
        description: createincident
        call: incident-io-incidents.createincident
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/incidents/{id}
      name: incidents-id
      description: REST surface for incidents-id.
      operations:
      - method: GET
        name: getincident
        description: getincident
        call: incident-io-incidents.getincident
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateincident
        description: updateincident
        call: incident-io-incidents.updateincident
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: incident-io-incidents-mcp
    port: 9090
    transport: http
    description: MCP adapter for Incident.io API — Incidents. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: listincidents
      description: listincidents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: incident-io-incidents.listincidents
      outputParameters:
      - type: object
        mapping: $.
    - name: createincident
      description: createincident
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: incident-io-incidents.createincident
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: getincident
      description: getincident
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: incident-io-incidents.getincident
      outputParameters:
      - type: object
        mapping: $.
    - name: updateincident
      description: updateincident
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: incident-io-incidents.updateincident
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.