APIContext · Capability

APIContext Platform API — Alerts

APIContext Platform API — Alerts. 4 operations. Lead operation: List alerts. Self-contained Naftiko capability covering one business surface.

APIContext Platform API — Alerts is a Naftiko capability published by APIContext, one of 12 capabilities the APIs.io network indexes for this provider. It bundles 4 operations across the GET, POST, and DELETE methods rooted at /v1/alerts.

The capability includes 2 read-only operations and 2 state-changing operations. Lead operation: List alerts. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include APIContext and Alerts.

Run with Naftiko APIContextAlerts

What You Can Do

GET
Listalerts — List alerts
/v1/alerts/
POST
Createalert — Create an alert
/v1/alerts/
GET
Getalert — Get an alert
/v1/alerts/{alert_id}
DELETE
Deletealert — Delete an alert
/v1/alerts/{alert_id}

MCP Tools

apicontext-listalerts

List alerts

read-only idempotent
apicontext-createalert

Create an alert

apicontext-getalert

Get an alert

read-only idempotent
apicontext-deletealert

Delete an alert

idempotent

Capability Spec

platform-alerts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: APIContext Platform API — Alerts
  description: 'APIContext Platform API — Alerts. 4 operations. Lead operation: List alerts. Self-contained Naftiko capability covering one business surface.'
  tags:
  - APIContext
  - Alerts
  created: '2026-05-20'
  modified: '2026-05-20'
binds:
- namespace: env
  keys:
    APICONTEXT_API_KEY: APICONTEXT_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-alerts
    baseUri: https://client.apimetrics.io/api/2
    description: APIContext Platform API — Alerts business capability. Self-contained, no shared references.
    resources:
    - name: alerts
      path: /alerts/
      operations:
      - name: listalerts
        method: GET
        description: List alerts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters: []
      - name: createalert
        method: POST
        description: Create an alert
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: alerts-alert-id
      path: /alerts/{alert_id}
      operations:
      - name: getalert
        method: GET
        description: Get an alert
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: alert_id
          in: path
          type: string
          description: path parameter alert_id.
          required: true
      - name: deletealert
        method: DELETE
        description: Delete an alert
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: alert_id
          in: path
          type: string
          description: path parameter alert_id.
          required: true
  exposes:
  - type: rest
    namespace: platform-alerts-rest
    port: 8080
    description: REST adapter for APIContext Platform API — Alerts. One resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/alerts/
      name: alerts
      description: REST surface for alerts.
      operations:
      - method: GET
        name: listalerts
        description: List alerts
        call: platform-alerts.listalerts
        with: {}
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createalert
        description: Create an alert
        call: platform-alerts.createalert
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/alerts/{alert_id}
      name: alerts-alert-id
      description: REST surface for alerts-alert-id.
      operations:
      - method: GET
        name: getalert
        description: Get an alert
        call: platform-alerts.getalert
        with:
          alert_id: rest.alert_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletealert
        description: Delete an alert
        call: platform-alerts.deletealert
        with:
          alert_id: rest.alert_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-alerts-mcp
    port: 9090
    transport: http
    description: MCP adapter for APIContext Platform API — Alerts. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: apicontext-listalerts
      description: List alerts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-alerts.listalerts
      with: {}
      outputParameters:
      - type: object
        mapping: $.
    - name: apicontext-createalert
      description: Create an alert
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-alerts.createalert
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apicontext-getalert
      description: Get an alert
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-alerts.getalert
      with:
        alert_id: tools.alert_id
      outputParameters:
      - type: object
        mapping: $.
    - name: apicontext-deletealert
      description: Delete an alert
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: platform-alerts.deletealert
      with:
        alert_id: tools.alert_id
      outputParameters:
      - type: object
        mapping: $.