Grafana · Capability

Grafana — Ldap

Grafana — Ldap. 4 operations. Lead operation: Grafana Reload LDAP Cfg. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaLdap

What You Can Do

POST
Reloadldapcfg — Grafana Reload LDAP Cfg
/v1/admin/ldap/reload
GET
Getldapstatus — Grafana Get LDAP Status
/v1/admin/ldap/status
POST
Postsyncuserwithldap — Grafana Post Sync User With LDAP
/v1/admin/ldap/sync/{user-id}
GET
Getuserfromldap — Grafana Get User From LDAP
/v1/admin/ldap/{user-name}

MCP Tools

grafana-reload-ldap-cfg

Grafana Reload LDAP Cfg

grafana-get-ldap-status

Grafana Get LDAP Status

read-only idempotent
grafana-post-sync-user-ldap

Grafana Post Sync User With LDAP

grafana-get-user-ldap

Grafana Get User From LDAP

read-only idempotent

Capability Spec

grafana-ldap.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Ldap
  description: 'Grafana — Ldap. 4 operations. Lead operation: Grafana Reload LDAP Cfg. Self-contained Naftiko capability covering
    one Grafana business surface.'
  tags:
  - Grafana
  - Ldap
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-ldap
    baseUri: http://{defaultHost}
    description: Grafana — Ldap business capability. Self-contained, no shared references.
    resources:
    - name: admin-ldap-reload
      path: /admin/ldap/reload
      operations:
      - name: reloadldapcfg
        method: POST
        description: Grafana Reload LDAP Cfg
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: admin-ldap-status
      path: /admin/ldap/status
      operations:
      - name: getldapstatus
        method: GET
        description: Grafana Get LDAP 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
    - name: admin-ldap-user_name
      path: /admin/ldap/{user_name}
      operations:
      - name: getuserfromldap
        method: GET
        description: Grafana Get User From LDAP
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: user_name
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.GRAFANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: grafana-ldap-rest
    port: 8080
    description: REST adapter for Grafana — Ldap. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/admin/ldap/reload
      name: admin-ldap-reload
      description: REST surface for admin-ldap-reload.
      operations:
      - method: POST
        name: reloadldapcfg
        description: Grafana Reload LDAP Cfg
        call: grafana-ldap.reloadldapcfg
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/ldap/status
      name: admin-ldap-status
      description: REST surface for admin-ldap-status.
      operations:
      - method: GET
        name: getldapstatus
        description: Grafana Get LDAP Status
        call: grafana-ldap.getldapstatus
        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-ldap.postsyncuserwithldap
        with:
          user_id: rest.user_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/ldap/{user-name}
      name: admin-ldap-user-name
      description: REST surface for admin-ldap-user_name.
      operations:
      - method: GET
        name: getuserfromldap
        description: Grafana Get User From LDAP
        call: grafana-ldap.getuserfromldap
        with:
          user_name: rest.user_name
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-ldap-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Ldap. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: grafana-reload-ldap-cfg
      description: Grafana Reload LDAP Cfg
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: grafana-ldap.reloadldapcfg
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-get-ldap-status
      description: Grafana Get LDAP Status
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-ldap.getldapstatus
      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-ldap.postsyncuserwithldap
      with:
        user_id: tools.user_id
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-get-user-ldap
      description: Grafana Get User From LDAP
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-ldap.getuserfromldap
      with:
        user_name: tools.user_name
      outputParameters:
      - type: object
        mapping: $.