naftiko: 1.0.0-alpha2 info: label: Reolink Camera HTTP API — Alarm description: 'Reolink Camera HTTP API — Alarm. 7 operations. Lead operation: Get AI detection alarm settings. Self-contained Naftiko capability covering one Reolink business surface.' tags: - Reolink - Alarm created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: REOLINK_API_KEY: REOLINK_API_KEY capability: consumes: - type: http namespace: camera-alarm baseUri: https://{camera_ip} description: Reolink Camera HTTP API — Alarm business capability. Self-contained, no shared references. resources: - name: cgi-bin-api.cgi?cmd=GetAiAlarm&token={token} path: /cgi-bin/api.cgi?cmd=GetAiAlarm&token={token} operations: - name: getaialarm method: POST description: Get AI detection alarm settings outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: cgi-bin-api.cgi?cmd=GetAlarmArea&token={token} path: /cgi-bin/api.cgi?cmd=GetAlarmArea&token={token} operations: - name: getalarmarea method: POST description: Get alarm detection area outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: cgi-bin-api.cgi?cmd=GetAudioAlarm&token={token} path: /cgi-bin/api.cgi?cmd=GetAudioAlarm&token={token} operations: - name: getaudioalarm method: POST description: Get audio alarm settings outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: cgi-bin-api.cgi?cmd=GetMdAlarm&token={token} path: /cgi-bin/api.cgi?cmd=GetMdAlarm&token={token} operations: - name: getmdalarm method: POST description: Get motion detection alarm settings outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: cgi-bin-api.cgi?cmd=SetAiAlarm&token={token} path: /cgi-bin/api.cgi?cmd=SetAiAlarm&token={token} operations: - name: setaialarm method: POST description: Set AI detection alarm settings outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: cgi-bin-api.cgi?cmd=SetAlarmArea&token={token} path: /cgi-bin/api.cgi?cmd=SetAlarmArea&token={token} operations: - name: setalarmarea method: POST description: Set alarm detection area outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: cgi-bin-api.cgi?cmd=SetMdAlarm&token={token} path: /cgi-bin/api.cgi?cmd=SetMdAlarm&token={token} operations: - name: setmdalarm method: POST description: Set motion detection alarm settings outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: token value: '{{env.REOLINK_API_KEY}}' placement: query exposes: - type: rest namespace: camera-alarm-rest port: 8080 description: REST adapter for Reolink Camera HTTP API — Alarm. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/cgi-bin/api-cgi-cmd-getaialarm-token-token name: cgi-bin-api-cgi-cmd-getaialarm-token-token description: REST surface for cgi-bin-api.cgi?cmd=GetAiAlarm&token={token}. operations: - method: POST name: getaialarm description: Get AI detection alarm settings call: camera-alarm.getaialarm with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/cgi-bin/api-cgi-cmd-getalarmarea-token-token name: cgi-bin-api-cgi-cmd-getalarmarea-token-token description: REST surface for cgi-bin-api.cgi?cmd=GetAlarmArea&token={token}. operations: - method: POST name: getalarmarea description: Get alarm detection area call: camera-alarm.getalarmarea with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/cgi-bin/api-cgi-cmd-getaudioalarm-token-token name: cgi-bin-api-cgi-cmd-getaudioalarm-token-token description: REST surface for cgi-bin-api.cgi?cmd=GetAudioAlarm&token={token}. operations: - method: POST name: getaudioalarm description: Get audio alarm settings call: camera-alarm.getaudioalarm with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/cgi-bin/api-cgi-cmd-getmdalarm-token-token name: cgi-bin-api-cgi-cmd-getmdalarm-token-token description: REST surface for cgi-bin-api.cgi?cmd=GetMdAlarm&token={token}. operations: - method: POST name: getmdalarm description: Get motion detection alarm settings call: camera-alarm.getmdalarm with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/cgi-bin/api-cgi-cmd-setaialarm-token-token name: cgi-bin-api-cgi-cmd-setaialarm-token-token description: REST surface for cgi-bin-api.cgi?cmd=SetAiAlarm&token={token}. operations: - method: POST name: setaialarm description: Set AI detection alarm settings call: camera-alarm.setaialarm with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/cgi-bin/api-cgi-cmd-setalarmarea-token-token name: cgi-bin-api-cgi-cmd-setalarmarea-token-token description: REST surface for cgi-bin-api.cgi?cmd=SetAlarmArea&token={token}. operations: - method: POST name: setalarmarea description: Set alarm detection area call: camera-alarm.setalarmarea with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/cgi-bin/api-cgi-cmd-setmdalarm-token-token name: cgi-bin-api-cgi-cmd-setmdalarm-token-token description: REST surface for cgi-bin-api.cgi?cmd=SetMdAlarm&token={token}. operations: - method: POST name: setmdalarm description: Set motion detection alarm settings call: camera-alarm.setmdalarm with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: camera-alarm-mcp port: 9090 transport: http description: MCP adapter for Reolink Camera HTTP API — Alarm. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-ai-detection-alarm-settings description: Get AI detection alarm settings hints: readOnly: true destructive: false idempotent: false call: camera-alarm.getaialarm with: body: tools.body outputParameters: - type: object mapping: $. - name: get-alarm-detection-area description: Get alarm detection area hints: readOnly: true destructive: false idempotent: false call: camera-alarm.getalarmarea with: body: tools.body outputParameters: - type: object mapping: $. - name: get-audio-alarm-settings description: Get audio alarm settings hints: readOnly: true destructive: false idempotent: false call: camera-alarm.getaudioalarm with: body: tools.body outputParameters: - type: object mapping: $. - name: get-motion-detection-alarm-settings description: Get motion detection alarm settings hints: readOnly: true destructive: false idempotent: false call: camera-alarm.getmdalarm with: body: tools.body outputParameters: - type: object mapping: $. - name: set-ai-detection-alarm-settings description: Set AI detection alarm settings hints: readOnly: false destructive: false idempotent: false call: camera-alarm.setaialarm with: body: tools.body outputParameters: - type: object mapping: $. - name: set-alarm-detection-area description: Set alarm detection area hints: readOnly: false destructive: false idempotent: false call: camera-alarm.setalarmarea with: body: tools.body outputParameters: - type: object mapping: $. - name: set-motion-detection-alarm-settings description: Set motion detection alarm settings hints: readOnly: false destructive: false idempotent: false call: camera-alarm.setmdalarm with: body: tools.body outputParameters: - type: object mapping: $.