OpenFGA · Capability

OpenFGA — Assertions

OpenFGA — Assertions. 2 operations. Lead operation: Read assertions for an authorization model ID. Self-contained Naftiko capability covering one Openfga business surface.

Run with Naftiko OpenfgaAssertions

What You Can Do

GET
Readassertions — Read assertions for an authorization model ID
/v1/stores/{store-id}/assertions/{authorization-model-id}
PUT
Writeassertions — Upsert assertions for an authorization model ID
/v1/stores/{store-id}/assertions/{authorization-model-id}

MCP Tools

read-assertions-authorization-model-id

Read assertions for an authorization model ID

read-only idempotent
upsert-assertions-authorization-model-id

Upsert assertions for an authorization model ID

idempotent

Capability Spec

openfga-assertions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenFGA — Assertions
  description: 'OpenFGA — Assertions. 2 operations. Lead operation: Read assertions for an authorization model ID. Self-contained
    Naftiko capability covering one Openfga business surface.'
  tags:
  - Openfga
  - Assertions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENFGA_API_KEY: OPENFGA_API_KEY
capability:
  consumes:
  - type: http
    namespace: openfga-assertions
    baseUri: ''
    description: OpenFGA — Assertions business capability. Self-contained, no shared references.
    resources:
    - name: stores-store_id-assertions-authorization_model_id
      path: /stores/{store_id}/assertions/{authorization_model_id}
      operations:
      - name: readassertions
        method: GET
        description: Read assertions for an authorization model ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          required: true
        - name: authorization_model_id
          in: path
          type: string
          required: true
      - name: writeassertions
        method: PUT
        description: Upsert assertions for an authorization model ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          required: true
        - name: authorization_model_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          required: true
  exposes:
  - type: rest
    namespace: openfga-assertions-rest
    port: 8080
    description: REST adapter for OpenFGA — Assertions. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/stores/{store-id}/assertions/{authorization-model-id}
      name: stores-store-id-assertions-authorization-model-id
      description: REST surface for stores-store_id-assertions-authorization_model_id.
      operations:
      - method: GET
        name: readassertions
        description: Read assertions for an authorization model ID
        call: openfga-assertions.readassertions
        with:
          store_id: rest.store_id
          authorization_model_id: rest.authorization_model_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: writeassertions
        description: Upsert assertions for an authorization model ID
        call: openfga-assertions.writeassertions
        with:
          store_id: rest.store_id
          authorization_model_id: rest.authorization_model_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openfga-assertions-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenFGA — Assertions. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: read-assertions-authorization-model-id
      description: Read assertions for an authorization model ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openfga-assertions.readassertions
      with:
        store_id: tools.store_id
        authorization_model_id: tools.authorization_model_id
      outputParameters:
      - type: object
        mapping: $.
    - name: upsert-assertions-authorization-model-id
      description: Upsert assertions for an authorization model ID
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: openfga-assertions.writeassertions
      with:
        store_id: tools.store_id
        authorization_model_id: tools.authorization_model_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.