SafeLine · Capability

SafeLine Management API — Reports

SafeLine Management API — Reports. 2 operations. Lead operation: Generate Security Report. Self-contained Naftiko capability covering one Safeline business surface.

Run with Naftiko SafelineReports

What You Can Do

POST
Generatereport — Generate Security Report
/v1/api/manualgeneratereportapi
GET
Getreportresults — Get Security Reports
/v1/api/reportresultapi

MCP Tools

generate-security-report

Generate Security Report

get-security-reports

Get Security Reports

read-only idempotent

Capability Spec

management-reports.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SafeLine Management API — Reports
  description: 'SafeLine Management API — Reports. 2 operations. Lead operation: Generate Security Report. Self-contained
    Naftiko capability covering one Safeline business surface.'
  tags:
  - Safeline
  - Reports
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SAFELINE_API_KEY: SAFELINE_API_KEY
capability:
  consumes:
  - type: http
    namespace: management-reports
    baseUri: https://{host}:9443
    description: SafeLine Management API — Reports business capability. Self-contained, no shared references.
    resources:
    - name: api-ManualGenerateReportAPI
      path: /api/ManualGenerateReportAPI
      operations:
      - name: generatereport
        method: POST
        description: Generate Security Report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-ReportResultAPI
      path: /api/ReportResultAPI
      operations:
      - name: getreportresults
        method: GET
        description: Get Security Reports
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
        - name: page_size
          in: query
          type: integer
    authentication:
      type: apikey
      key: X-SLCE-API-Token
      value: '{{env.SAFELINE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: management-reports-rest
    port: 8080
    description: REST adapter for SafeLine Management API — Reports. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/manualgeneratereportapi
      name: api-manualgeneratereportapi
      description: REST surface for api-ManualGenerateReportAPI.
      operations:
      - method: POST
        name: generatereport
        description: Generate Security Report
        call: management-reports.generatereport
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/reportresultapi
      name: api-reportresultapi
      description: REST surface for api-ReportResultAPI.
      operations:
      - method: GET
        name: getreportresults
        description: Get Security Reports
        call: management-reports.getreportresults
        with:
          page: rest.page
          page_size: rest.page_size
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: management-reports-mcp
    port: 9090
    transport: http
    description: MCP adapter for SafeLine Management API — Reports. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: generate-security-report
      description: Generate Security Report
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: management-reports.generatereport
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-security-reports
      description: Get Security Reports
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: management-reports.getreportresults
      with:
        page: tools.page
        page_size: tools.page_size
      outputParameters:
      - type: object
        mapping: $.