Prefect · Capability

Prefect Cloud API — Event Publications

Prefect Cloud API — Event Publications. 6 operations. Lead operation: Create Publication. Self-contained Naftiko capability covering one Prefect business surface.

Run with Naftiko PrefectEvent Publications

What You Can Do

POST
Createpublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspost — Create Publication
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/event-publications
GET
Listpublicationsapiaccountsaccountidworkspacesworkspaceideventpublicationsget — List Publications
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/event-publications
GET
Readpublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidget — Read Publication
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/event-publications/{publication-id}
PATCH
Updatepublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidpatch — Update Publication
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/event-publications/{publication-id}
DELETE
Deletepublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationiddelete — Delete Publication
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/event-publications/{publication-id}
GET
Listpublicationsubscribersapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidsubscriptionsget — List Publication Subscribers
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/event-publications/{publication-id}/subscriptions

MCP Tools

create-publication

Create Publication

list-publications

List Publications

read-only idempotent
read-publication

Read Publication

read-only idempotent
update-publication

Update Publication

idempotent
delete-publication

Delete Publication

idempotent
list-publication-subscribers

List Publication Subscribers

read-only idempotent

Capability Spec

prefect-event-publications.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Prefect Cloud API — Event Publications
  description: 'Prefect Cloud API — Event Publications. 6 operations. Lead operation: Create Publication. Self-contained Naftiko
    capability covering one Prefect business surface.'
  tags:
  - Prefect
  - Event Publications
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PREFECT_API_KEY: PREFECT_API_KEY
capability:
  consumes:
  - type: http
    namespace: prefect-event-publications
    baseUri: ''
    description: Prefect Cloud API — Event Publications business capability. Self-contained, no shared references.
    resources:
    - name: api-accounts-account_id-workspaces-workspace_id-event-publications
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/event-publications/
      operations:
      - name: createpublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspost
        method: POST
        description: Create Publication
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listpublicationsapiaccountsaccountidworkspacesworkspaceideventpublicationsget
        method: GET
        description: List Publications
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: resource_id
          in: query
          type: string
        - name: limit
          in: query
          type: integer
        - name: cursor
          in: query
          type: string
    - name: api-accounts-account_id-workspaces-workspace_id-event-publications-publication_i
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/event-publications/{publication_id}
      operations:
      - name: readpublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidget
        method: GET
        description: Read Publication
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: publication_id
          in: path
          type: string
          required: true
      - name: updatepublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidpatch
        method: PATCH
        description: Update Publication
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: publication_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletepublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationiddelete
        method: DELETE
        description: Delete Publication
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: publication_id
          in: path
          type: string
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-event-publications-publication_i
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/event-publications/{publication_id}/subscriptions
      operations:
      - name: listpublicationsubscribersapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidsubscriptionsget
        method: GET
        description: List Publication Subscribers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: publication_id
          in: path
          type: string
          required: true
        - name: limit
          in: query
          type: integer
        - name: cursor
          in: query
          type: string
  exposes:
  - type: rest
    namespace: prefect-event-publications-rest
    port: 8080
    description: REST adapter for Prefect Cloud API — Event Publications. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/event-publications
      name: api-accounts-account-id-workspaces-workspace-id-event-publications
      description: REST surface for api-accounts-account_id-workspaces-workspace_id-event-publications.
      operations:
      - method: POST
        name: createpublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspost
        description: Create Publication
        call: prefect-event-publications.createpublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspost
        with:
          account_id: rest.account_id
          workspace_id: rest.workspace_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listpublicationsapiaccountsaccountidworkspacesworkspaceideventpublicationsget
        description: List Publications
        call: prefect-event-publications.listpublicationsapiaccountsaccountidworkspacesworkspaceideventpublicationsget
        with:
          account_id: rest.account_id
          workspace_id: rest.workspace_id
          resource_id: rest.resource_id
          limit: rest.limit
          cursor: rest.cursor
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/event-publications/{publication-id}
      name: api-accounts-account-id-workspaces-workspace-id-event-publications-publication-i
      description: REST surface for api-accounts-account_id-workspaces-workspace_id-event-publications-publication_i.
      operations:
      - method: GET
        name: readpublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidget
        description: Read Publication
        call: prefect-event-publications.readpublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidget
        with:
          account_id: rest.account_id
          workspace_id: rest.workspace_id
          publication_id: rest.publication_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatepublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidpatch
        description: Update Publication
        call: prefect-event-publications.updatepublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidpatch
        with:
          account_id: rest.account_id
          workspace_id: rest.workspace_id
          publication_id: rest.publication_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletepublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationiddelete
        description: Delete Publication
        call: prefect-event-publications.deletepublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationiddelete
        with:
          account_id: rest.account_id
          workspace_id: rest.workspace_id
          publication_id: rest.publication_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/event-publications/{publication-id}/subscriptions
      name: api-accounts-account-id-workspaces-workspace-id-event-publications-publication-i
      description: REST surface for api-accounts-account_id-workspaces-workspace_id-event-publications-publication_i.
      operations:
      - method: GET
        name: listpublicationsubscribersapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidsubscriptionsget
        description: List Publication Subscribers
        call: prefect-event-publications.listpublicationsubscribersapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidsubscriptionsget
        with:
          account_id: rest.account_id
          workspace_id: rest.workspace_id
          publication_id: rest.publication_id
          limit: rest.limit
          cursor: rest.cursor
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: prefect-event-publications-mcp
    port: 9090
    transport: http
    description: MCP adapter for Prefect Cloud API — Event Publications. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: create-publication
      description: Create Publication
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: prefect-event-publications.createpublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspost
      with:
        account_id: tools.account_id
        workspace_id: tools.workspace_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-publications
      description: List Publications
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-event-publications.listpublicationsapiaccountsaccountidworkspacesworkspaceideventpublicationsget
      with:
        account_id: tools.account_id
        workspace_id: tools.workspace_id
        resource_id: tools.resource_id
        limit: tools.limit
        cursor: tools.cursor
      outputParameters:
      - type: object
        mapping: $.
    - name: read-publication
      description: Read Publication
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-event-publications.readpublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidget
      with:
        account_id: tools.account_id
        workspace_id: tools.workspace_id
        publication_id: tools.publication_id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-publication
      description: Update Publication
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: prefect-event-publications.updatepublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidpatch
      with:
        account_id: tools.account_id
        workspace_id: tools.workspace_id
        publication_id: tools.publication_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-publication
      description: Delete Publication
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: prefect-event-publications.deletepublicationapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationiddelete
      with:
        account_id: tools.account_id
        workspace_id: tools.workspace_id
        publication_id: tools.publication_id
      outputParameters:
      - type: object
        mapping: $.
    - name: list-publication-subscribers
      description: List Publication Subscribers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-event-publications.listpublicationsubscribersapiaccountsaccountidworkspacesworkspaceideventpublicationspublicationidsubscriptionsget
      with:
        account_id: tools.account_id
        workspace_id: tools.workspace_id
        publication_id: tools.publication_id
        limit: tools.limit
        cursor: tools.cursor
      outputParameters:
      - type: object
        mapping: $.