naftiko: 1.0.0-alpha2 info: label: Red Hat Build of Keycloak Admin REST API — Roles description: 'Red Hat Build of Keycloak Admin REST API — Roles. 2 operations. Lead operation: Red Hat List Realm Roles. Self-contained Naftiko capability covering one Red Hat business surface.' tags: - Red Hat - Roles 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-roles baseUri: https://keycloak.example.com description: Red Hat Build of Keycloak Admin REST API — Roles business capability. Self-contained, no shared references. resources: - name: admin-realms-realm-roles path: /admin/realms/{realm}/roles operations: - name: listrealmroles method: GET description: Red Hat List Realm Roles outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: first in: query type: integer description: Pagination offset. - name: max in: query type: integer description: Maximum number of results. - name: createrealmrole method: POST description: Red Hat Create a Realm Role 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-roles-rest port: 8080 description: REST adapter for Red Hat Build of Keycloak Admin REST API — Roles. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/admin/realms/{realm}/roles name: admin-realms-realm-roles description: REST surface for admin-realms-realm-roles. operations: - method: GET name: listrealmroles description: Red Hat List Realm Roles call: keycloak-admin-roles.listrealmroles with: first: rest.first max: rest.max outputParameters: - type: object mapping: $. - method: POST name: createrealmrole description: Red Hat Create a Realm Role call: keycloak-admin-roles.createrealmrole with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: keycloak-admin-roles-mcp port: 9090 transport: http description: MCP adapter for Red Hat Build of Keycloak Admin REST API — Roles. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: red-hat-list-realm-roles description: Red Hat List Realm Roles hints: readOnly: true destructive: false idempotent: true call: keycloak-admin-roles.listrealmroles with: first: tools.first max: tools.max outputParameters: - type: object mapping: $. - name: red-hat-create-realm-role description: Red Hat Create a Realm Role hints: readOnly: false destructive: false idempotent: false call: keycloak-admin-roles.createrealmrole with: body: tools.body outputParameters: - type: object mapping: $.