naftiko: 1.0.0-alpha2 info: label: GridGain REST module — privilegesGrants description: 'GridGain REST module — privilegesGrants. 4 operations. Lead operation: Grant privileges. Self-contained Naftiko capability covering one Gridgain business surface.' tags: - Gridgain - privilegesGrants created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GRIDGAIN_API_KEY: GRIDGAIN_API_KEY capability: consumes: - type: http namespace: gridgain-privilegesgrants baseUri: http://localhost:10300 description: GridGain REST module — privilegesGrants business capability. Self-contained, no shared references. resources: - name: management-v1-rbac-pg path: /management/v1/rbac/pg operations: - name: grantprivileges method: POST description: Grant privileges outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: revokeprivileges method: DELETE description: Revoke privileges outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: management-v1-rbac-pg-roles path: /management/v1/rbac/pg/roles operations: - name: getroleswithprivileges method: GET description: Get all roles with privilege outputRawFormat: json outputParameters: - name: result type: object value: $. - name: management-v1-rbac-pg-roleName path: /management/v1/rbac/pg/{roleName} operations: - name: getprivileges method: GET description: Get granted privileges outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: roleName in: path type: string description: Role name. required: true authentication: type: bearer token: '{{env.GRIDGAIN_API_KEY}}' exposes: - type: rest namespace: gridgain-privilegesgrants-rest port: 8080 description: REST adapter for GridGain REST module — privilegesGrants. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/management/v1/rbac/pg name: management-v1-rbac-pg description: REST surface for management-v1-rbac-pg. operations: - method: POST name: grantprivileges description: Grant privileges call: gridgain-privilegesgrants.grantprivileges with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: revokeprivileges description: Revoke privileges call: gridgain-privilegesgrants.revokeprivileges with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/management/v1/rbac/pg/roles name: management-v1-rbac-pg-roles description: REST surface for management-v1-rbac-pg-roles. operations: - method: GET name: getroleswithprivileges description: Get all roles with privilege call: gridgain-privilegesgrants.getroleswithprivileges outputParameters: - type: object mapping: $. - path: /v1/management/v1/rbac/pg/{rolename} name: management-v1-rbac-pg-rolename description: REST surface for management-v1-rbac-pg-roleName. operations: - method: GET name: getprivileges description: Get granted privileges call: gridgain-privilegesgrants.getprivileges with: roleName: rest.roleName outputParameters: - type: object mapping: $. - type: mcp namespace: gridgain-privilegesgrants-mcp port: 9090 transport: http description: MCP adapter for GridGain REST module — privilegesGrants. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: grant-privileges description: Grant privileges hints: readOnly: false destructive: false idempotent: false call: gridgain-privilegesgrants.grantprivileges with: body: tools.body outputParameters: - type: object mapping: $. - name: revoke-privileges description: Revoke privileges hints: readOnly: false destructive: true idempotent: true call: gridgain-privilegesgrants.revokeprivileges with: body: tools.body outputParameters: - type: object mapping: $. - name: get-all-roles-privilege description: Get all roles with privilege hints: readOnly: true destructive: false idempotent: true call: gridgain-privilegesgrants.getroleswithprivileges outputParameters: - type: object mapping: $. - name: get-granted-privileges description: Get granted privileges hints: readOnly: true destructive: false idempotent: true call: gridgain-privilegesgrants.getprivileges with: roleName: tools.roleName outputParameters: - type: object mapping: $.