Tempo · Capability

Grafana Tempo HTTP API — Tags

Grafana Tempo HTTP API — Tags. 2 operations. Lead operation: List Tag Values. Self-contained Naftiko capability covering one Tempo business surface.

Run with Naftiko TempoTags

What You Can Do

GET
Listtagvalues — List Tag Values
/v1/api/search/tag/{tagname}/values
GET
Listtagkeys — List Tag Keys
/v1/api/search/tags

MCP Tools

list-tag-values

List Tag Values

read-only idempotent
list-tag-keys

List Tag Keys

read-only idempotent

Capability Spec

tempo-tags.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grafana Tempo HTTP API — Tags
  description: 'Grafana Tempo HTTP API — Tags. 2 operations. Lead operation: List Tag Values. Self-contained Naftiko capability
    covering one Tempo business surface.'
  tags:
  - Tempo
  - Tags
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TEMPO_API_KEY: TEMPO_API_KEY
capability:
  consumes:
  - type: http
    namespace: tempo-tags
    baseUri: http://localhost:3200
    description: Grafana Tempo HTTP API — Tags business capability. Self-contained, no shared references.
    resources:
    - name: api-search-tag-tagName-values
      path: /api/search/tag/{tagName}/values
      operations:
      - name: listtagvalues
        method: GET
        description: List Tag Values
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tagName
          in: path
          type: string
          description: Tag key name to retrieve values for
          required: true
        - name: q
          in: query
          type: string
          description: TraceQL query context for filtering tag values
        - name: start
          in: query
          type: integer
          description: Unix epoch start time
        - name: end
          in: query
          type: integer
          description: Unix epoch end time
    - name: api-search-tags
      path: /api/search/tags
      operations:
      - name: listtagkeys
        method: GET
        description: List Tag Keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: scope
          in: query
          type: string
          description: Attribute scope filter (span, resource, intrinsic)
        - name: start
          in: query
          type: integer
          description: Unix epoch start time
        - name: end
          in: query
          type: integer
          description: Unix epoch end time
  exposes:
  - type: rest
    namespace: tempo-tags-rest
    port: 8080
    description: REST adapter for Grafana Tempo HTTP API — Tags. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/search/tag/{tagname}/values
      name: api-search-tag-tagname-values
      description: REST surface for api-search-tag-tagName-values.
      operations:
      - method: GET
        name: listtagvalues
        description: List Tag Values
        call: tempo-tags.listtagvalues
        with:
          tagName: rest.tagName
          q: rest.q
          start: rest.start
          end: rest.end
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/search/tags
      name: api-search-tags
      description: REST surface for api-search-tags.
      operations:
      - method: GET
        name: listtagkeys
        description: List Tag Keys
        call: tempo-tags.listtagkeys
        with:
          scope: rest.scope
          start: rest.start
          end: rest.end
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tempo-tags-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grafana Tempo HTTP API — Tags. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-tag-values
      description: List Tag Values
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tempo-tags.listtagvalues
      with:
        tagName: tools.tagName
        q: tools.q
        start: tools.start
        end: tools.end
      outputParameters:
      - type: object
        mapping: $.
    - name: list-tag-keys
      description: List Tag Keys
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tempo-tags.listtagkeys
      with:
        scope: tools.scope
        start: tools.start
        end: tools.end
      outputParameters:
      - type: object
        mapping: $.