naftiko: 1.0.0-alpha2 info: label: Grafana — Cache description: 'Grafana — Cache. 5 operations. Lead operation: Grafana Get Data Source Cache Config. Self-contained Naftiko capability covering one Grafana business surface.' tags: - Grafana - Cache created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GRAFANA_API_KEY: GRAFANA_API_KEY capability: consumes: - type: http namespace: grafana-cache baseUri: http://{defaultHost} description: Grafana — Cache business capability. Self-contained, no shared references. resources: - name: datasources-dataSourceUID-cache path: /datasources/{dataSourceUID}/cache operations: - name: getdatasourcecacheconfig method: GET description: Grafana Get Data Source Cache Config outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: dataSourceUID in: path type: string required: true - name: setdatasourcecacheconfig method: POST description: Grafana Set Data Source Cache Config outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: dataSourceUID in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: datasources-dataSourceUID-cache-clean path: /datasources/{dataSourceUID}/cache/clean operations: - name: cleandatasourcecache method: POST description: Grafana Clean Data Source Cache outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: dataSourceUID in: path type: string required: true - name: datasources-dataSourceUID-cache-disable path: /datasources/{dataSourceUID}/cache/disable operations: - name: disabledatasourcecache method: POST description: Grafana Disable Data Source Cache outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: dataSourceUID in: path type: string required: true - name: datasources-dataSourceUID-cache-enable path: /datasources/{dataSourceUID}/cache/enable operations: - name: enabledatasourcecache method: POST description: Grafana Enable Data Source Cache outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: dataSourceUID in: path type: string required: true authentication: type: apikey key: Authorization value: '{{env.GRAFANA_API_KEY}}' placement: header exposes: - type: rest namespace: grafana-cache-rest port: 8080 description: REST adapter for Grafana — Cache. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/datasources/{datasourceuid}/cache name: datasources-datasourceuid-cache description: REST surface for datasources-dataSourceUID-cache. operations: - method: GET name: getdatasourcecacheconfig description: Grafana Get Data Source Cache Config call: grafana-cache.getdatasourcecacheconfig with: dataSourceUID: rest.dataSourceUID outputParameters: - type: object mapping: $. - method: POST name: setdatasourcecacheconfig description: Grafana Set Data Source Cache Config call: grafana-cache.setdatasourcecacheconfig with: dataSourceUID: rest.dataSourceUID body: rest.body outputParameters: - type: object mapping: $. - path: /v1/datasources/{datasourceuid}/cache/clean name: datasources-datasourceuid-cache-clean description: REST surface for datasources-dataSourceUID-cache-clean. operations: - method: POST name: cleandatasourcecache description: Grafana Clean Data Source Cache call: grafana-cache.cleandatasourcecache with: dataSourceUID: rest.dataSourceUID outputParameters: - type: object mapping: $. - path: /v1/datasources/{datasourceuid}/cache/disable name: datasources-datasourceuid-cache-disable description: REST surface for datasources-dataSourceUID-cache-disable. operations: - method: POST name: disabledatasourcecache description: Grafana Disable Data Source Cache call: grafana-cache.disabledatasourcecache with: dataSourceUID: rest.dataSourceUID outputParameters: - type: object mapping: $. - path: /v1/datasources/{datasourceuid}/cache/enable name: datasources-datasourceuid-cache-enable description: REST surface for datasources-dataSourceUID-cache-enable. operations: - method: POST name: enabledatasourcecache description: Grafana Enable Data Source Cache call: grafana-cache.enabledatasourcecache with: dataSourceUID: rest.dataSourceUID outputParameters: - type: object mapping: $. - type: mcp namespace: grafana-cache-mcp port: 9090 transport: http description: MCP adapter for Grafana — Cache. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: grafana-get-data-source-cache description: Grafana Get Data Source Cache Config hints: readOnly: true destructive: false idempotent: true call: grafana-cache.getdatasourcecacheconfig with: dataSourceUID: tools.dataSourceUID outputParameters: - type: object mapping: $. - name: grafana-set-data-source-cache description: Grafana Set Data Source Cache Config hints: readOnly: false destructive: false idempotent: false call: grafana-cache.setdatasourcecacheconfig with: dataSourceUID: tools.dataSourceUID body: tools.body outputParameters: - type: object mapping: $. - name: grafana-clean-data-source-cache description: Grafana Clean Data Source Cache hints: readOnly: false destructive: false idempotent: false call: grafana-cache.cleandatasourcecache with: dataSourceUID: tools.dataSourceUID outputParameters: - type: object mapping: $. - name: grafana-disable-data-source-cache description: Grafana Disable Data Source Cache hints: readOnly: false destructive: false idempotent: false call: grafana-cache.disabledatasourcecache with: dataSourceUID: tools.dataSourceUID outputParameters: - type: object mapping: $. - name: grafana-enable-data-source-cache description: Grafana Enable Data Source Cache hints: readOnly: false destructive: false idempotent: false call: grafana-cache.enabledatasourcecache with: dataSourceUID: tools.dataSourceUID outputParameters: - type: object mapping: $.