Grafana · Capability

Grafana — Target

Grafana — Target. 3 operations. Lead operation: Grafana Get Recording Rule Write Target. Self-contained Naftiko capability covering one Grafana business surface.

Run with Naftiko GrafanaTarget

What You Can Do

GET
Getrecordingrulewritetarget — Grafana Get Recording Rule Write Target
/v1/recording-rules/writer
POST
Createrecordingrulewritetarget — Grafana Create Recording Rule Write Target
/v1/recording-rules/writer
DELETE
Deleterecordingrulewritetarget — Grafana Delete Recording Rule Write Target
/v1/recording-rules/writer

MCP Tools

grafana-get-recording-rule-write

Grafana Get Recording Rule Write Target

read-only idempotent
grafana-create-recording-rule-write

Grafana Create Recording Rule Write Target

grafana-delete-recording-rule-write

Grafana Delete Recording Rule Write Target

idempotent

Capability Spec

grafana-target.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana — Target
  description: 'Grafana — Target. 3 operations. Lead operation: Grafana Get Recording Rule Write Target. Self-contained Naftiko
    capability covering one Grafana business surface.'
  tags:
  - Grafana
  - Target
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: grafana-target
    baseUri: http://{defaultHost}
    description: Grafana — Target business capability. Self-contained, no shared references.
    resources:
    - name: recording-rules-writer
      path: /recording-rules/writer
      operations:
      - name: getrecordingrulewritetarget
        method: GET
        description: Grafana Get Recording Rule Write Target
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createrecordingrulewritetarget
        method: POST
        description: Grafana Create Recording Rule Write Target
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleterecordingrulewritetarget
        method: DELETE
        description: Grafana Delete Recording Rule Write Target
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.GRAFANA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: grafana-target-rest
    port: 8080
    description: REST adapter for Grafana — Target. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/recording-rules/writer
      name: recording-rules-writer
      description: REST surface for recording-rules-writer.
      operations:
      - method: GET
        name: getrecordingrulewritetarget
        description: Grafana Get Recording Rule Write Target
        call: grafana-target.getrecordingrulewritetarget
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createrecordingrulewritetarget
        description: Grafana Create Recording Rule Write Target
        call: grafana-target.createrecordingrulewritetarget
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleterecordingrulewritetarget
        description: Grafana Delete Recording Rule Write Target
        call: grafana-target.deleterecordingrulewritetarget
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: grafana-target-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana — Target. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: grafana-get-recording-rule-write
      description: Grafana Get Recording Rule Write Target
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: grafana-target.getrecordingrulewritetarget
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-create-recording-rule-write
      description: Grafana Create Recording Rule Write Target
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: grafana-target.createrecordingrulewritetarget
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: grafana-delete-recording-rule-write
      description: Grafana Delete Recording Rule Write Target
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: grafana-target.deleterecordingrulewritetarget
      outputParameters:
      - type: object
        mapping: $.