naftiko: 1.0.0-alpha2 info: label: Grafana — Sync description: 'Grafana — Sync. 2 operations. Lead operation: Grafana Get Sync Status. Self-contained Naftiko capability covering one Grafana business surface.' tags: - Grafana - Sync created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GRAFANA_API_KEY: GRAFANA_API_KEY capability: consumes: - type: http namespace: grafana-sync baseUri: http://{defaultHost} description: Grafana — Sync business capability. Self-contained, no shared references. resources: - name: admin-ldap-sync-status path: /admin/ldap-sync-status operations: - name: getsyncstatus method: GET description: Grafana Get Sync Status outputRawFormat: json outputParameters: - name: result type: object value: $. - name: admin-ldap-sync-user_id path: /admin/ldap/sync/{user_id} operations: - name: postsyncuserwithldap method: POST description: Grafana Post Sync User With LDAP outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: user_id in: path type: integer required: true authentication: type: apikey key: Authorization value: '{{env.GRAFANA_API_KEY}}' placement: header exposes: - type: rest namespace: grafana-sync-rest port: 8080 description: REST adapter for Grafana — Sync. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/admin/ldap-sync-status name: admin-ldap-sync-status description: REST surface for admin-ldap-sync-status. operations: - method: GET name: getsyncstatus description: Grafana Get Sync Status call: grafana-sync.getsyncstatus outputParameters: - type: object mapping: $. - path: /v1/admin/ldap/sync/{user-id} name: admin-ldap-sync-user-id description: REST surface for admin-ldap-sync-user_id. operations: - method: POST name: postsyncuserwithldap description: Grafana Post Sync User With LDAP call: grafana-sync.postsyncuserwithldap with: user_id: rest.user_id outputParameters: - type: object mapping: $. - type: mcp namespace: grafana-sync-mcp port: 9090 transport: http description: MCP adapter for Grafana — Sync. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: grafana-get-sync-status description: Grafana Get Sync Status hints: readOnly: true destructive: false idempotent: true call: grafana-sync.getsyncstatus outputParameters: - type: object mapping: $. - name: grafana-post-sync-user-ldap description: Grafana Post Sync User With LDAP hints: readOnly: false destructive: false idempotent: false call: grafana-sync.postsyncuserwithldap with: user_id: tools.user_id outputParameters: - type: object mapping: $.