naftiko: 1.0.0-alpha2 info: label: Red Hat Build of Keycloak Admin REST API — Realms description: 'Red Hat Build of Keycloak Admin REST API — Realms. 3 operations. Lead operation: Red Hat List Realms. Self-contained Naftiko capability covering one Red Hat business surface.' tags: - Red Hat - Realms created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RED_HAT_API_KEY: RED_HAT_API_KEY capability: consumes: - type: http namespace: keycloak-admin-realms baseUri: https://keycloak.example.com description: Red Hat Build of Keycloak Admin REST API — Realms business capability. Self-contained, no shared references. resources: - name: admin-realms path: /admin/realms operations: - name: listrealms method: GET description: Red Hat List Realms outputRawFormat: json outputParameters: - name: result type: object value: $. - name: admin-realms-realm path: /admin/realms/{realm} operations: - name: getrealm method: GET description: Red Hat Get a Realm outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updaterealm method: PUT description: Red Hat Update a Realm 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.RED_HAT_API_KEY}}' exposes: - type: rest namespace: keycloak-admin-realms-rest port: 8080 description: REST adapter for Red Hat Build of Keycloak Admin REST API — Realms. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/admin/realms name: admin-realms description: REST surface for admin-realms. operations: - method: GET name: listrealms description: Red Hat List Realms call: keycloak-admin-realms.listrealms outputParameters: - type: object mapping: $. - path: /v1/admin/realms/{realm} name: admin-realms-realm description: REST surface for admin-realms-realm. operations: - method: GET name: getrealm description: Red Hat Get a Realm call: keycloak-admin-realms.getrealm outputParameters: - type: object mapping: $. - method: PUT name: updaterealm description: Red Hat Update a Realm call: keycloak-admin-realms.updaterealm with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: keycloak-admin-realms-mcp port: 9090 transport: http description: MCP adapter for Red Hat Build of Keycloak Admin REST API — Realms. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: red-hat-list-realms description: Red Hat List Realms hints: readOnly: true destructive: false idempotent: true call: keycloak-admin-realms.listrealms outputParameters: - type: object mapping: $. - name: red-hat-get-realm description: Red Hat Get a Realm hints: readOnly: true destructive: false idempotent: true call: keycloak-admin-realms.getrealm outputParameters: - type: object mapping: $. - name: red-hat-update-realm description: Red Hat Update a Realm hints: readOnly: false destructive: false idempotent: true call: keycloak-admin-realms.updaterealm with: body: tools.body outputParameters: - type: object mapping: $.