Thanos · Capability

Thanos Compact API — Blocks

Thanos Compact API — Blocks. 1 operations. Lead operation: Thanos List Blocks in Object Storage. Self-contained Naftiko capability covering one Thanos business surface.

Run with Naftiko ThanosBlocks

What You Can Do

GET
Listcompactblocks — Thanos List Blocks in Object Storage
/v1/api/v1/blocks

MCP Tools

thanos-list-blocks-object-storage

Thanos List Blocks in Object Storage

read-only idempotent

Capability Spec

compact-blocks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Thanos Compact API — Blocks
  description: 'Thanos Compact API — Blocks. 1 operations. Lead operation: Thanos List Blocks in Object Storage. Self-contained
    Naftiko capability covering one Thanos business surface.'
  tags:
  - Thanos
  - Blocks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    THANOS_API_KEY: THANOS_API_KEY
capability:
  consumes:
  - type: http
    namespace: compact-blocks
    baseUri: http://localhost:10902
    description: Thanos Compact API — Blocks business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-blocks
      path: /api/v1/blocks
      operations:
      - name: listcompactblocks
        method: GET
        description: Thanos List Blocks in Object Storage
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: view
          in: query
          type: string
          description: Specifies which blocks to include in the response. Use 'all' to see all tracked blocks, or filter by
            compaction state.
  exposes:
  - type: rest
    namespace: compact-blocks-rest
    port: 8080
    description: REST adapter for Thanos Compact API — Blocks. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v1/blocks
      name: api-v1-blocks
      description: REST surface for api-v1-blocks.
      operations:
      - method: GET
        name: listcompactblocks
        description: Thanos List Blocks in Object Storage
        call: compact-blocks.listcompactblocks
        with:
          view: rest.view
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: compact-blocks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Thanos Compact API — Blocks. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: thanos-list-blocks-object-storage
      description: Thanos List Blocks in Object Storage
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: compact-blocks.listcompactblocks
      with:
        view: tools.view
      outputParameters:
      - type: object
        mapping: $.