Prometheus · Capability

Prometheus HTTP API — TSDB

Prometheus HTTP API — TSDB. 2 operations. Lead operation: Prometheus Delete series. Self-contained Naftiko capability covering one Prometheus business surface.

Run with Naftiko PrometheusTSDB

What You Can Do

DELETE
Deleteseries — Prometheus Delete series
/v1/api/v1/series
GET
Gettsdbstatus — Prometheus Get TSDB statistics
/v1/api/v1/status/tsdb

MCP Tools

prometheus-delete-series

Prometheus Delete series

idempotent
prometheus-get-tsdb-statistics

Prometheus Get TSDB statistics

read-only idempotent

Capability Spec

http-tsdb.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Prometheus HTTP API — TSDB
  description: 'Prometheus HTTP API — TSDB. 2 operations. Lead operation: Prometheus Delete series. Self-contained Naftiko
    capability covering one Prometheus business surface.'
  tags:
  - Prometheus
  - TSDB
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PROMETHEUS_API_KEY: PROMETHEUS_API_KEY
capability:
  consumes:
  - type: http
    namespace: http-tsdb
    baseUri: http://{host}:{port}
    description: Prometheus HTTP API — TSDB business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-series
      path: /api/v1/series
      operations:
      - name: deleteseries
        method: DELETE
        description: Prometheus Delete series
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: match[]
          in: query
          type: array
          description: Series selector(s) to delete. At least one required.
          required: true
        - name: start
          in: query
          type: string
          description: Start of the time range. Defaults to minimum possible time.
        - name: end
          in: query
          type: string
          description: End of the time range. Defaults to maximum possible time.
    - name: api-v1-status-tsdb
      path: /api/v1/status/tsdb
      operations:
      - name: gettsdbstatus
        method: GET
        description: Prometheus Get TSDB statistics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: http-tsdb-rest
    port: 8080
    description: REST adapter for Prometheus HTTP API — TSDB. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v1/series
      name: api-v1-series
      description: REST surface for api-v1-series.
      operations:
      - method: DELETE
        name: deleteseries
        description: Prometheus Delete series
        call: http-tsdb.deleteseries
        with:
          match[]: rest.match[]
          start: rest.start
          end: rest.end
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/status/tsdb
      name: api-v1-status-tsdb
      description: REST surface for api-v1-status-tsdb.
      operations:
      - method: GET
        name: gettsdbstatus
        description: Prometheus Get TSDB statistics
        call: http-tsdb.gettsdbstatus
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: http-tsdb-mcp
    port: 9090
    transport: http
    description: MCP adapter for Prometheus HTTP API — TSDB. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: prometheus-delete-series
      description: Prometheus Delete series
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: http-tsdb.deleteseries
      with:
        match[]: tools.match[]
        start: tools.start
        end: tools.end
      outputParameters:
      - type: object
        mapping: $.
    - name: prometheus-get-tsdb-statistics
      description: Prometheus Get TSDB statistics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: http-tsdb.gettsdbstatus
      outputParameters:
      - type: object
        mapping: $.