Metro Transit · Capability

Service Alerts API — Alerts

Service Alerts API — Alerts. 3 operations. Lead operation: Alerts. Self-contained Naftiko capability covering one Metro Transit business surface.

Run with Naftiko Metro TransitAlerts

What You Can Do

GET
Get — get
/v1/alerts/alert/{id}
GET
Get — get
/v1/alerts/all
GET
Get — get
/v1/alerts/{id}

MCP Tools

get

get

read-only idempotent
get-2

get

read-only idempotent
get-3

get

read-only idempotent

Capability Spec

alerts-alerts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Service Alerts API — Alerts
  description: 'Service Alerts API — Alerts. 3 operations. Lead operation: Alerts. Self-contained Naftiko capability covering
    one Metro Transit business surface.'
  tags:
  - Metro Transit
  - Alerts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    METRO_TRANSIT_API_KEY: METRO_TRANSIT_API_KEY
capability:
  consumes:
  - type: http
    namespace: alerts-alerts
    baseUri: ''
    description: Service Alerts API — Alerts business capability. Self-contained, no shared references.
    resources:
    - name: alerts-alert-id
      path: /alerts/alert/{id}
      operations:
      - name: get
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: alerts-all
      path: /alerts/all
      operations:
      - name: get
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: alerts-id
      path: /alerts/{id}
      operations:
      - name: get
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: alerts-alerts-rest
    port: 8080
    description: REST adapter for Service Alerts API — Alerts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/alerts/alert/{id}
      name: alerts-alert-id
      description: REST surface for alerts-alert-id.
      operations:
      - method: GET
        name: get
        description: get
        call: alerts-alerts.get
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/alerts/all
      name: alerts-all
      description: REST surface for alerts-all.
      operations:
      - method: GET
        name: get
        description: get
        call: alerts-alerts.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/alerts/{id}
      name: alerts-id
      description: REST surface for alerts-id.
      operations:
      - method: GET
        name: get
        description: get
        call: alerts-alerts.get
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: alerts-alerts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Service Alerts API — Alerts. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get
      description: get
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: alerts-alerts.get
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: get-2
      description: get
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: alerts-alerts.get
      outputParameters:
      - type: object
        mapping: $.
    - name: get-3
      description: get
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: alerts-alerts.get
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.