Prefect · Capability

Prefect Cloud API — Task Workers

Prefect Cloud API — Task Workers. 1 operations. Lead operation: Read Task Workers. Self-contained Naftiko capability covering one Prefect business surface.

Run with Naftiko PrefectTask Workers

What You Can Do

POST
Readtaskworkersapiaccountsaccountidworkspacesworkspaceidtaskworkersfilterpost — Read Task Workers
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/task-workers/filter

MCP Tools

read-task-workers

Read Task Workers

Capability Spec

prefect-task-workers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Prefect Cloud API — Task Workers
  description: 'Prefect Cloud API — Task Workers. 1 operations. Lead operation: Read Task Workers. Self-contained Naftiko
    capability covering one Prefect business surface.'
  tags:
  - Prefect
  - Task Workers
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PREFECT_API_KEY: PREFECT_API_KEY
capability:
  consumes:
  - type: http
    namespace: prefect-task-workers
    baseUri: ''
    description: Prefect Cloud API — Task Workers business capability. Self-contained, no shared references.
    resources:
    - name: api-accounts-account_id-workspaces-workspace_id-task_workers-filter
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/task_workers/filter
      operations:
      - name: readtaskworkersapiaccountsaccountidworkspacesworkspaceidtaskworkersfilterpost
        method: POST
        description: Read Task Workers
        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: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: prefect-task-workers-rest
    port: 8080
    description: REST adapter for Prefect Cloud API — Task Workers. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/task-workers/filter
      name: api-accounts-account-id-workspaces-workspace-id-task-workers-filter
      description: REST surface for api-accounts-account_id-workspaces-workspace_id-task_workers-filter.
      operations:
      - method: POST
        name: readtaskworkersapiaccountsaccountidworkspacesworkspaceidtaskworkersfilterpost
        description: Read Task Workers
        call: prefect-task-workers.readtaskworkersapiaccountsaccountidworkspacesworkspaceidtaskworkersfilterpost
        with:
          workspace_id: rest.workspace_id
          account_id: rest.account_id
          x-prefect-api-version: rest.x-prefect-api-version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: prefect-task-workers-mcp
    port: 9090
    transport: http
    description: MCP adapter for Prefect Cloud API — Task Workers. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: read-task-workers
      description: Read Task Workers
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: prefect-task-workers.readtaskworkersapiaccountsaccountidworkspacesworkspaceidtaskworkersfilterpost
      with:
        workspace_id: tools.workspace_id
        account_id: tools.account_id
        x-prefect-api-version: tools.x-prefect-api-version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.