naftiko: 1.0.0-alpha2 info: label: Grafana — Correlation description: 'Grafana — Correlation. 4 operations. Lead operation: Grafana Create Correlation. Self-contained Naftiko capability covering one Grafana business surface.' tags: - Grafana - Correlation created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GRAFANA_API_KEY: GRAFANA_API_KEY capability: consumes: - type: http namespace: grafana-correlation baseUri: http://{defaultHost} description: Grafana — Correlation business capability. Self-contained, no shared references. resources: - name: datasources-uid-sourceUID-correlations path: /datasources/uid/{sourceUID}/correlations operations: - name: createcorrelation method: POST description: Grafana Create Correlation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sourceUID in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: datasources-uid-sourceUID-correlations-correlationUID path: /datasources/uid/{sourceUID}/correlations/{correlationUID} operations: - name: getcorrelation method: GET description: Grafana Get Correlation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sourceUID in: path type: string required: true - name: correlationUID in: path type: string required: true - name: updatecorrelation method: PATCH description: Grafana Update Correlation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sourceUID in: path type: string required: true - name: correlationUID in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: datasources-uid-uid-correlations-correlationUID path: /datasources/uid/{uid}/correlations/{correlationUID} operations: - name: deletecorrelation method: DELETE description: Grafana Delete Correlation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: uid in: path type: string required: true - name: correlationUID in: path type: string required: true authentication: type: apikey key: Authorization value: '{{env.GRAFANA_API_KEY}}' placement: header exposes: - type: rest namespace: grafana-correlation-rest port: 8080 description: REST adapter for Grafana — Correlation. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/datasources/uid/{sourceuid}/correlations name: datasources-uid-sourceuid-correlations description: REST surface for datasources-uid-sourceUID-correlations. operations: - method: POST name: createcorrelation description: Grafana Create Correlation call: grafana-correlation.createcorrelation with: sourceUID: rest.sourceUID body: rest.body outputParameters: - type: object mapping: $. - path: /v1/datasources/uid/{sourceuid}/correlations/{correlationuid} name: datasources-uid-sourceuid-correlations-correlationuid description: REST surface for datasources-uid-sourceUID-correlations-correlationUID. operations: - method: GET name: getcorrelation description: Grafana Get Correlation call: grafana-correlation.getcorrelation with: sourceUID: rest.sourceUID correlationUID: rest.correlationUID outputParameters: - type: object mapping: $. - method: PATCH name: updatecorrelation description: Grafana Update Correlation call: grafana-correlation.updatecorrelation with: sourceUID: rest.sourceUID correlationUID: rest.correlationUID body: rest.body outputParameters: - type: object mapping: $. - path: /v1/datasources/uid/{uid}/correlations/{correlationuid} name: datasources-uid-uid-correlations-correlationuid description: REST surface for datasources-uid-uid-correlations-correlationUID. operations: - method: DELETE name: deletecorrelation description: Grafana Delete Correlation call: grafana-correlation.deletecorrelation with: uid: rest.uid correlationUID: rest.correlationUID outputParameters: - type: object mapping: $. - type: mcp namespace: grafana-correlation-mcp port: 9090 transport: http description: MCP adapter for Grafana — Correlation. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: grafana-create-correlation description: Grafana Create Correlation hints: readOnly: false destructive: false idempotent: false call: grafana-correlation.createcorrelation with: sourceUID: tools.sourceUID body: tools.body outputParameters: - type: object mapping: $. - name: grafana-get-correlation description: Grafana Get Correlation hints: readOnly: true destructive: false idempotent: true call: grafana-correlation.getcorrelation with: sourceUID: tools.sourceUID correlationUID: tools.correlationUID outputParameters: - type: object mapping: $. - name: grafana-update-correlation description: Grafana Update Correlation hints: readOnly: false destructive: false idempotent: true call: grafana-correlation.updatecorrelation with: sourceUID: tools.sourceUID correlationUID: tools.correlationUID body: tools.body outputParameters: - type: object mapping: $. - name: grafana-delete-correlation description: Grafana Delete Correlation hints: readOnly: false destructive: true idempotent: true call: grafana-correlation.deletecorrelation with: uid: tools.uid correlationUID: tools.correlationUID outputParameters: - type: object mapping: $.