Prefect · Capability

Prefect Cloud API — Collections

Prefect Cloud API — Collections. 2 operations. Lead operation: Read Available Work Pool Types. Self-contained Naftiko capability covering one Prefect business surface.

Run with Naftiko PrefectCollections

What You Can Do

GET
Readavailableworkpooltypesapiaccountsaccountidworkspacesworkspaceidcollectionsworkpooltypesget — Read Available Work Pool Types
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/collections/work-pool-types
GET
Readviewcontentapicollectionsviewsviewget — Read View Content
/v1/api/collections/views/{view}

MCP Tools

read-available-work-pool-types

Read Available Work Pool Types

read-only idempotent
read-view-content

Read View Content

read-only idempotent

Capability Spec

prefect-collections.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Prefect Cloud API — Collections
  description: 'Prefect Cloud API — Collections. 2 operations. Lead operation: Read Available Work Pool Types. Self-contained
    Naftiko capability covering one Prefect business surface.'
  tags:
  - Prefect
  - Collections
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PREFECT_API_KEY: PREFECT_API_KEY
capability:
  consumes:
  - type: http
    namespace: prefect-collections
    baseUri: ''
    description: Prefect Cloud API — Collections business capability. Self-contained, no shared references.
    resources:
    - name: api-accounts-account_id-workspaces-workspace_id-collections-work_pool_types
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/collections/work_pool_types
      operations:
      - name: readavailableworkpooltypesapiaccountsaccountidworkspacesworkspaceidcollectionsworkpooltypesget
        method: GET
        description: Read Available Work Pool Types
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
    - name: api-collections-views-view
      path: /api/collections/views/{view}
      operations:
      - name: readviewcontentapicollectionsviewsviewget
        method: GET
        description: Read View Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: view
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: prefect-collections-rest
    port: 8080
    description: REST adapter for Prefect Cloud API — Collections. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/collections/work-pool-types
      name: api-accounts-account-id-workspaces-workspace-id-collections-work-pool-types
      description: REST surface for api-accounts-account_id-workspaces-workspace_id-collections-work_pool_types.
      operations:
      - method: GET
        name: readavailableworkpooltypesapiaccountsaccountidworkspacesworkspaceidcollectionsworkpooltypesget
        description: Read Available Work Pool Types
        call: prefect-collections.readavailableworkpooltypesapiaccountsaccountidworkspacesworkspaceidcollectionsworkpooltypesget
        with:
          workspace_id: rest.workspace_id
          account_id: rest.account_id
          x-prefect-api-version: rest.x-prefect-api-version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/collections/views/{view}
      name: api-collections-views-view
      description: REST surface for api-collections-views-view.
      operations:
      - method: GET
        name: readviewcontentapicollectionsviewsviewget
        description: Read View Content
        call: prefect-collections.readviewcontentapicollectionsviewsviewget
        with:
          view: rest.view
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: prefect-collections-mcp
    port: 9090
    transport: http
    description: MCP adapter for Prefect Cloud API — Collections. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: read-available-work-pool-types
      description: Read Available Work Pool Types
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-collections.readavailableworkpooltypesapiaccountsaccountidworkspacesworkspaceidcollectionsworkpooltypesget
      with:
        workspace_id: tools.workspace_id
        account_id: tools.account_id
        x-prefect-api-version: tools.x-prefect-api-version
      outputParameters:
      - type: object
        mapping: $.
    - name: read-view-content
      description: Read View Content
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-collections.readviewcontentapicollectionsviewsviewget
      with:
        view: tools.view
      outputParameters:
      - type: object
        mapping: $.