Grafana · Capability
Grafana — Elements
Grafana — Elements. 1 operations. Lead operation: Grafana Get Library Elements. Self-contained Naftiko capability covering one Grafana business surface.
What You Can Do
GET
Getlibraryelements
— Grafana Get Library Elements
/v1/library-elements
MCP Tools
grafana-get-library-elements
Grafana Get Library Elements
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Grafana — Elements
description: 'Grafana — Elements. 1 operations. Lead operation: Grafana Get Library Elements. Self-contained Naftiko capability
covering one Grafana business surface.'
tags:
- Grafana
- Elements
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
GRAFANA_API_KEY: GRAFANA_API_KEY
capability:
consumes:
- type: http
namespace: grafana-elements
baseUri: http://{defaultHost}
description: Grafana — Elements business capability. Self-contained, no shared references.
resources:
- name: library-elements
path: /library-elements
operations:
- name: getlibraryelements
method: GET
description: Grafana Get Library Elements
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: searchString
in: query
type: string
description: Part of the name or description searched for.
- name: kind
in: query
type: integer
description: Kind of element to search for.
- name: sortDirection
in: query
type: string
description: Sort order of elements.
- name: typeFilter
in: query
type: string
description: A comma separated list of types to filter the elements by
- name: excludeUid
in: query
type: string
description: Element UID to exclude from search results.
- name: folderFilter
in: query
type: string
description: A comma separated list of folder ID(s) to filter the elements by.
- name: perPage
in: query
type: integer
description: The number of results per page.
- name: page
in: query
type: integer
description: The page for a set of records, given that only perPage records are returned at a time. Numbering starts
at 1.
authentication:
type: apikey
key: Authorization
value: '{{env.GRAFANA_API_KEY}}'
placement: header
exposes:
- type: rest
namespace: grafana-elements-rest
port: 8080
description: REST adapter for Grafana — Elements. One Spectral-compliant resource per consumed operation, prefixed with
/v1.
resources:
- path: /v1/library-elements
name: library-elements
description: REST surface for library-elements.
operations:
- method: GET
name: getlibraryelements
description: Grafana Get Library Elements
call: grafana-elements.getlibraryelements
with:
searchString: rest.searchString
kind: rest.kind
sortDirection: rest.sortDirection
typeFilter: rest.typeFilter
excludeUid: rest.excludeUid
folderFilter: rest.folderFilter
perPage: rest.perPage
page: rest.page
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: grafana-elements-mcp
port: 9090
transport: http
description: MCP adapter for Grafana — Elements. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: grafana-get-library-elements
description: Grafana Get Library Elements
hints:
readOnly: true
destructive: false
idempotent: true
call: grafana-elements.getlibraryelements
with:
searchString: tools.searchString
kind: tools.kind
sortDirection: tools.sortDirection
typeFilter: tools.typeFilter
excludeUid: tools.excludeUid
folderFilter: tools.folderFilter
perPage: tools.perPage
page: tools.page
outputParameters:
- type: object
mapping: $.