naftiko: 1.0.0-alpha2 info: label: Grafana — Current description: 'Grafana — Current. 9 operations. Lead operation: Grafana Get Current Org. Self-contained Naftiko capability covering one Grafana business surface.' tags: - Grafana - Current created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GRAFANA_API_KEY: GRAFANA_API_KEY capability: consumes: - type: http namespace: grafana-current baseUri: http://{defaultHost} description: Grafana — Current business capability. Self-contained, no shared references. resources: - name: org path: /org operations: - name: getcurrentorg method: GET description: Grafana Get Current Org outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecurrentorg method: PUT description: Grafana Update Current Org outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: org-address path: /org/address operations: - name: updatecurrentorgaddress method: PUT description: Grafana Update Current Org Address outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: org-quotas path: /org/quotas operations: - name: getcurrentorgquota method: GET description: Grafana Get Current Org Quota outputRawFormat: json outputParameters: - name: result type: object value: $. - name: org-users path: /org/users operations: - name: getorgusersforcurrentorg method: GET description: Grafana Get Org Users For Current Org outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: query in: query type: string - name: limit in: query type: integer - name: addorgusertocurrentorg method: POST description: Grafana Add Org User To Current Org outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: org-users-lookup path: /org/users/lookup operations: - name: getorgusersforcurrentorglookup method: GET description: Grafana Get Org Users For Current Org Lookup outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: query in: query type: string - name: limit in: query type: integer - name: org-users-user_id path: /org/users/{user_id} operations: - name: removeorguserforcurrentorg method: DELETE description: Grafana Remove Org User For Current Org outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: user_id in: path type: integer required: true - name: updateorguserforcurrentorg method: PATCH description: Grafana Update Org User For Current Org outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: user_id in: path type: integer required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Authorization value: '{{env.GRAFANA_API_KEY}}' placement: header exposes: - type: rest namespace: grafana-current-rest port: 8080 description: REST adapter for Grafana — Current. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/org name: org description: REST surface for org. operations: - method: GET name: getcurrentorg description: Grafana Get Current Org call: grafana-current.getcurrentorg outputParameters: - type: object mapping: $. - method: PUT name: updatecurrentorg description: Grafana Update Current Org call: grafana-current.updatecurrentorg with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/org/address name: org-address description: REST surface for org-address. operations: - method: PUT name: updatecurrentorgaddress description: Grafana Update Current Org Address call: grafana-current.updatecurrentorgaddress with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/org/quotas name: org-quotas description: REST surface for org-quotas. operations: - method: GET name: getcurrentorgquota description: Grafana Get Current Org Quota call: grafana-current.getcurrentorgquota outputParameters: - type: object mapping: $. - path: /v1/org/users name: org-users description: REST surface for org-users. operations: - method: GET name: getorgusersforcurrentorg description: Grafana Get Org Users For Current Org call: grafana-current.getorgusersforcurrentorg with: query: rest.query limit: rest.limit outputParameters: - type: object mapping: $. - method: POST name: addorgusertocurrentorg description: Grafana Add Org User To Current Org call: grafana-current.addorgusertocurrentorg with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/org/users/lookup name: org-users-lookup description: REST surface for org-users-lookup. operations: - method: GET name: getorgusersforcurrentorglookup description: Grafana Get Org Users For Current Org Lookup call: grafana-current.getorgusersforcurrentorglookup with: query: rest.query limit: rest.limit outputParameters: - type: object mapping: $. - path: /v1/org/users/{user-id} name: org-users-user-id description: REST surface for org-users-user_id. operations: - method: DELETE name: removeorguserforcurrentorg description: Grafana Remove Org User For Current Org call: grafana-current.removeorguserforcurrentorg with: user_id: rest.user_id outputParameters: - type: object mapping: $. - method: PATCH name: updateorguserforcurrentorg description: Grafana Update Org User For Current Org call: grafana-current.updateorguserforcurrentorg with: user_id: rest.user_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: grafana-current-mcp port: 9090 transport: http description: MCP adapter for Grafana — Current. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: grafana-get-current-org description: Grafana Get Current Org hints: readOnly: true destructive: false idempotent: true call: grafana-current.getcurrentorg outputParameters: - type: object mapping: $. - name: grafana-update-current-org description: Grafana Update Current Org hints: readOnly: false destructive: false idempotent: true call: grafana-current.updatecurrentorg with: body: tools.body outputParameters: - type: object mapping: $. - name: grafana-update-current-org-address description: Grafana Update Current Org Address hints: readOnly: false destructive: false idempotent: true call: grafana-current.updatecurrentorgaddress with: body: tools.body outputParameters: - type: object mapping: $. - name: grafana-get-current-org-quota description: Grafana Get Current Org Quota hints: readOnly: true destructive: false idempotent: true call: grafana-current.getcurrentorgquota outputParameters: - type: object mapping: $. - name: grafana-get-org-users-current description: Grafana Get Org Users For Current Org hints: readOnly: true destructive: false idempotent: true call: grafana-current.getorgusersforcurrentorg with: query: tools.query limit: tools.limit outputParameters: - type: object mapping: $. - name: grafana-add-org-user-current description: Grafana Add Org User To Current Org hints: readOnly: false destructive: false idempotent: false call: grafana-current.addorgusertocurrentorg with: body: tools.body outputParameters: - type: object mapping: $. - name: grafana-get-org-users-current-2 description: Grafana Get Org Users For Current Org Lookup hints: readOnly: true destructive: false idempotent: true call: grafana-current.getorgusersforcurrentorglookup with: query: tools.query limit: tools.limit outputParameters: - type: object mapping: $. - name: grafana-remove-org-user-current description: Grafana Remove Org User For Current Org hints: readOnly: false destructive: true idempotent: true call: grafana-current.removeorguserforcurrentorg with: user_id: tools.user_id outputParameters: - type: object mapping: $. - name: grafana-update-org-user-current description: Grafana Update Org User For Current Org hints: readOnly: false destructive: false idempotent: true call: grafana-current.updateorguserforcurrentorg with: user_id: tools.user_id body: tools.body outputParameters: - type: object mapping: $.