naftiko: 1.0.0-alpha2 info: label: GridGain REST module — clusterMetric description: 'GridGain REST module — clusterMetric. 3 operations. Lead operation: Disable metric source. Self-contained Naftiko capability covering one Gridgain business surface.' tags: - Gridgain - clusterMetric created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GRIDGAIN_API_KEY: GRIDGAIN_API_KEY capability: consumes: - type: http namespace: gridgain-clustermetric baseUri: http://localhost:10300 description: GridGain REST module — clusterMetric business capability. Self-contained, no shared references. resources: - name: management-v1-metric-cluster-disable path: /management/v1/metric/cluster/disable operations: - name: disableclustermetric method: POST description: Disable metric source outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: management-v1-metric-cluster-enable path: /management/v1/metric/cluster/enable operations: - name: enableclustermetric method: POST description: Enable metric source outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: management-v1-metric-cluster-source path: /management/v1/metric/cluster/source operations: - name: listclustermetricsources method: GET description: List metric sources outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GRIDGAIN_API_KEY}}' exposes: - type: rest namespace: gridgain-clustermetric-rest port: 8080 description: REST adapter for GridGain REST module — clusterMetric. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/management/v1/metric/cluster/disable name: management-v1-metric-cluster-disable description: REST surface for management-v1-metric-cluster-disable. operations: - method: POST name: disableclustermetric description: Disable metric source call: gridgain-clustermetric.disableclustermetric with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/management/v1/metric/cluster/enable name: management-v1-metric-cluster-enable description: REST surface for management-v1-metric-cluster-enable. operations: - method: POST name: enableclustermetric description: Enable metric source call: gridgain-clustermetric.enableclustermetric with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/management/v1/metric/cluster/source name: management-v1-metric-cluster-source description: REST surface for management-v1-metric-cluster-source. operations: - method: GET name: listclustermetricsources description: List metric sources call: gridgain-clustermetric.listclustermetricsources outputParameters: - type: object mapping: $. - type: mcp namespace: gridgain-clustermetric-mcp port: 9090 transport: http description: MCP adapter for GridGain REST module — clusterMetric. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: disable-metric-source description: Disable metric source hints: readOnly: false destructive: false idempotent: false call: gridgain-clustermetric.disableclustermetric with: body: tools.body outputParameters: - type: object mapping: $. - name: enable-metric-source description: Enable metric source hints: readOnly: false destructive: false idempotent: false call: gridgain-clustermetric.enableclustermetric with: body: tools.body outputParameters: - type: object mapping: $. - name: list-metric-sources description: List metric sources hints: readOnly: true destructive: false idempotent: true call: gridgain-clustermetric.listclustermetricsources outputParameters: - type: object mapping: $.