naftiko: 1.0.0-alpha2 info: label: OpenFGA — Relationship Tuples description: 'OpenFGA — Relationship Tuples. 3 operations. Lead operation: Return a list of all the tuple changes. Self-contained Naftiko capability covering one Openfga business surface.' tags: - Openfga - Relationship Tuples created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPENFGA_API_KEY: OPENFGA_API_KEY capability: consumes: - type: http namespace: openfga-relationship-tuples baseUri: '' description: OpenFGA — Relationship Tuples business capability. Self-contained, no shared references. resources: - name: stores-store_id-changes path: /stores/{store_id}/changes operations: - name: readchanges method: GET description: Return a list of all the tuple changes outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: store_id in: path type: string required: true - name: type in: query type: string - name: page_size in: query type: integer - name: continuation_token in: query type: string - name: start_time in: query type: string description: Start date and time of changes to read. - name: stores-store_id-read path: /stores/{store_id}/read operations: - name: read method: POST description: Get tuples from the store that matches a query, without following userset rewrite rules outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: store_id in: path type: string required: true - name: body in: body type: object required: true - name: stores-store_id-write path: /stores/{store_id}/write operations: - name: write method: POST description: Add or delete tuples from the store outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: store_id in: path type: string required: true - name: body in: body type: object required: true exposes: - type: rest namespace: openfga-relationship-tuples-rest port: 8080 description: REST adapter for OpenFGA — Relationship Tuples. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/stores/{store-id}/changes name: stores-store-id-changes description: REST surface for stores-store_id-changes. operations: - method: GET name: readchanges description: Return a list of all the tuple changes call: openfga-relationship-tuples.readchanges with: store_id: rest.store_id type: rest.type page_size: rest.page_size continuation_token: rest.continuation_token start_time: rest.start_time outputParameters: - type: object mapping: $. - path: /v1/stores/{store-id}/read name: stores-store-id-read description: REST surface for stores-store_id-read. operations: - method: POST name: read description: Get tuples from the store that matches a query, without following userset rewrite rules call: openfga-relationship-tuples.read with: store_id: rest.store_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/stores/{store-id}/write name: stores-store-id-write description: REST surface for stores-store_id-write. operations: - method: POST name: write description: Add or delete tuples from the store call: openfga-relationship-tuples.write with: store_id: rest.store_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: openfga-relationship-tuples-mcp port: 9090 transport: http description: MCP adapter for OpenFGA — Relationship Tuples. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: return-list-all-tuple-changes description: Return a list of all the tuple changes hints: readOnly: true destructive: false idempotent: true call: openfga-relationship-tuples.readchanges with: store_id: tools.store_id type: tools.type page_size: tools.page_size continuation_token: tools.continuation_token start_time: tools.start_time outputParameters: - type: object mapping: $. - name: get-tuples-store-that-matches description: Get tuples from the store that matches a query, without following userset rewrite rules hints: readOnly: true destructive: false idempotent: false call: openfga-relationship-tuples.read with: store_id: tools.store_id body: tools.body outputParameters: - type: object mapping: $. - name: add-delete-tuples-store description: Add or delete tuples from the store hints: readOnly: false destructive: false idempotent: false call: openfga-relationship-tuples.write with: store_id: tools.store_id body: tools.body outputParameters: - type: object mapping: $.