naftiko: 1.0.0-alpha2 info: label: Segment Public API — Regulations description: 'Segment Public API — Regulations. 2 operations. Lead operation: List regulations. Self-contained Naftiko capability covering one Segment business surface.' tags: - Segment - Regulations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SEGMENT_API_KEY: SEGMENT_API_KEY capability: consumes: - type: http namespace: public-regulations baseUri: https://api.segmentapis.com description: Segment Public API — Regulations business capability. Self-contained, no shared references. resources: - name: regulations path: /regulations operations: - name: listregulations method: GET description: List regulations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: status in: query type: string description: Filter by regulation status. - name: createregulation method: POST description: Create regulation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.SEGMENT_API_KEY}}' exposes: - type: rest namespace: public-regulations-rest port: 8080 description: REST adapter for Segment Public API — Regulations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/regulations name: regulations description: REST surface for regulations. operations: - method: GET name: listregulations description: List regulations call: public-regulations.listregulations with: status: rest.status outputParameters: - type: object mapping: $. - method: POST name: createregulation description: Create regulation call: public-regulations.createregulation with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: public-regulations-mcp port: 9090 transport: http description: MCP adapter for Segment Public API — Regulations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-regulations description: List regulations hints: readOnly: true destructive: false idempotent: true call: public-regulations.listregulations with: status: tools.status outputParameters: - type: object mapping: $. - name: create-regulation description: Create regulation hints: readOnly: false destructive: false idempotent: false call: public-regulations.createregulation with: body: tools.body outputParameters: - type: object mapping: $.