Tableaux De Bord · Capability

Grafana Dashboard API — Datasources

Grafana Dashboard API — Datasources. 5 operations. Lead operation: List Datasources. Self-contained Naftiko capability covering one Tableaux De Bord business surface.

Run with Naftiko Tableaux De BordDatasources

What You Can Do

GET
Listdatasources — List Datasources
/v1/datasources
POST
Createdatasource — Create Datasource
/v1/datasources
GET
Getdatasourcebyid — Get Datasource By ID
/v1/datasources/{id}
PUT
Updatedatasource — Update Datasource
/v1/datasources/{id}
DELETE
Deletedatasource — Delete Datasource
/v1/datasources/{id}

MCP Tools

list-datasources

List Datasources

read-only idempotent
create-datasource

Create Datasource

get-datasource-id

Get Datasource By ID

read-only idempotent
update-datasource

Update Datasource

idempotent
delete-datasource

Delete Datasource

idempotent

Capability Spec

grafana-dashboard-datasources.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana Dashboard API — Datasources
  description: 'Grafana Dashboard API — Datasources. 5 operations. Lead operation: List Datasources. Self-contained Naftiko
    capability covering one Tableaux De Bord business surface.'
  tags:
  - Tableaux De Bord
  - Datasources
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TABLEAUX_DE_BORD_API_KEY: TABLEAUX_DE_BORD_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-dashboard-datasources
    baseUri: https://{grafana-host}/api
    description: Grafana Dashboard API — Datasources business capability. Self-contained, no shared references.
    resources:
    - name: datasources
      path: /datasources
      operations:
      - name: listdatasources
        method: GET
        description: List Datasources
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createdatasource
        method: POST
        description: Create Datasource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: datasources-id
      path: /datasources/{id}
      operations:
      - name: getdatasourcebyid
        method: GET
        description: Get Datasource By ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          required: true
      - name: updatedatasource
        method: PUT
        description: Update Datasource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletedatasource
        method: DELETE
        description: Delete Datasource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.TABLEAUX_DE_BORD_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: grafana-dashboard-datasources-rest
    port: 8080
    description: REST adapter for Grafana Dashboard API — Datasources. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/datasources
      name: datasources
      description: REST surface for datasources.
      operations:
      - method: GET
        name: listdatasources
        description: List Datasources
        call: grafana-dashboard-datasources.listdatasources
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createdatasource
        description: Create Datasource
        call: grafana-dashboard-datasources.createdatasource
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/datasources/{id}
      name: datasources-id
      description: REST surface for datasources-id.
      operations:
      - method: GET
        name: getdatasourcebyid
        description: Get Datasource By ID
        call: grafana-dashboard-datasources.getdatasourcebyid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatedatasource
        description: Update Datasource
        call: grafana-dashboard-datasources.updatedatasource
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletedatasource
        description: Delete Datasource
        call: grafana-dashboard-datasources.deletedatasource
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-dashboard-datasources-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana Dashboard API — Datasources. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-datasources
      description: List Datasources
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-dashboard-datasources.listdatasources
      outputParameters:
      - type: object
        mapping: $.
    - name: create-datasource
      description: Create Datasource
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: grafana-dashboard-datasources.createdatasource
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-datasource-id
      description: Get Datasource By ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-dashboard-datasources.getdatasourcebyid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-datasource
      description: Update Datasource
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: grafana-dashboard-datasources.updatedatasource
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-datasource
      description: Delete Datasource
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: grafana-dashboard-datasources.deletedatasource
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.