SafeLine · Capability

SafeLine Management API — Security Policies

SafeLine Management API — Security Policies. 3 operations. Lead operation: List Policy Groups. Self-contained Naftiko capability covering one Safeline business surface.

Run with Naftiko SafelineSecurity Policies

What You Can Do

GET
Listpolicygroups — List Policy Groups
/v1/api/policygroupapi
POST
Createpolicygroup — Create Policy Group
/v1/api/policygroupapi
GET
Listpolicyrules — List Policy Rules
/v1/api/policyruleapi

MCP Tools

list-policy-groups

List Policy Groups

read-only idempotent
create-policy-group

Create Policy Group

list-policy-rules

List Policy Rules

read-only idempotent

Capability Spec

management-security-policies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SafeLine Management API — Security Policies
  description: 'SafeLine Management API — Security Policies. 3 operations. Lead operation: List Policy Groups. Self-contained
    Naftiko capability covering one Safeline business surface.'
  tags:
  - Safeline
  - Security Policies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SAFELINE_API_KEY: SAFELINE_API_KEY
capability:
  consumes:
  - type: http
    namespace: management-security-policies
    baseUri: https://{host}:9443
    description: SafeLine Management API — Security Policies business capability. Self-contained, no shared references.
    resources:
    - name: api-PolicyGroupAPI
      path: /api/PolicyGroupAPI
      operations:
      - name: listpolicygroups
        method: GET
        description: List Policy Groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createpolicygroup
        method: POST
        description: Create Policy Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-PolicyRuleAPI
      path: /api/PolicyRuleAPI
      operations:
      - name: listpolicyrules
        method: GET
        description: List Policy Rules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: group_id
          in: query
          type: integer
    authentication:
      type: apikey
      key: X-SLCE-API-Token
      value: '{{env.SAFELINE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: management-security-policies-rest
    port: 8080
    description: REST adapter for SafeLine Management API — Security Policies. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/api/policygroupapi
      name: api-policygroupapi
      description: REST surface for api-PolicyGroupAPI.
      operations:
      - method: GET
        name: listpolicygroups
        description: List Policy Groups
        call: management-security-policies.listpolicygroups
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createpolicygroup
        description: Create Policy Group
        call: management-security-policies.createpolicygroup
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/policyruleapi
      name: api-policyruleapi
      description: REST surface for api-PolicyRuleAPI.
      operations:
      - method: GET
        name: listpolicyrules
        description: List Policy Rules
        call: management-security-policies.listpolicyrules
        with:
          group_id: rest.group_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: management-security-policies-mcp
    port: 9090
    transport: http
    description: MCP adapter for SafeLine Management API — Security Policies. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-policy-groups
      description: List Policy Groups
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: management-security-policies.listpolicygroups
      outputParameters:
      - type: object
        mapping: $.
    - name: create-policy-group
      description: Create Policy Group
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: management-security-policies.createpolicygroup
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-policy-rules
      description: List Policy Rules
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: management-security-policies.listpolicyrules
      with:
        group_id: tools.group_id
      outputParameters:
      - type: object
        mapping: $.