Thanos · Capability

Thanos Store Gateway API — Blocks

Thanos Store Gateway 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
Liststoreblocks — 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

store-gateway-blocks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Thanos Store Gateway API — Blocks
  description: 'Thanos Store Gateway 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: store-gateway-blocks
    baseUri: http://localhost:10902
    description: Thanos Store Gateway API — Blocks business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-blocks
      path: /api/v1/blocks
      operations:
      - name: liststoreblocks
        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: Controls the level of detail in the response. Use 'loaded' to see only blocks currently loaded, or
            'all' to include blocks being synced.
  exposes:
  - type: rest
    namespace: store-gateway-blocks-rest
    port: 8080
    description: REST adapter for Thanos Store Gateway 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: liststoreblocks
        description: Thanos List Blocks in Object Storage
        call: store-gateway-blocks.liststoreblocks
        with:
          view: rest.view
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: store-gateway-blocks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Thanos Store Gateway 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: store-gateway-blocks.liststoreblocks
      with:
        view: tools.view
      outputParameters:
      - type: object
        mapping: $.