Prefect · Capability

Prefect Cloud API — Managed Automations

Prefect Cloud API — Managed Automations. 7 operations. Lead operation: Delete All Managed Automations. Self-contained Naftiko capability covering one Prefect business surface.

Run with Naftiko PrefectManaged Automations

What You Can Do

DELETE
Deleteallmanagedautomationsapiaccountsaccountidmanagedautomationsdelete — Delete All Managed Automations
/v1/api/accounts/{account-id}/managed-automations
GET
Listmanagedautomationsbyworkspaceapiaccountsaccountidmanagedautomationsget — List Managed Automations By Workspace
/v1/api/accounts/{account-id}/managed-automations
POST
Quickenablemanagedautomationsapiaccountsaccountidmanagedautomationsquickenablepost — Quick Enable Managed Automations
/v1/api/accounts/{account-id}/managed-automations/quick-enable
GET
Listmanagedautomationsapiaccountsaccountidworkspacesworkspaceidautomationsmanagedget — List Managed Automations
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/automations/managed
GET
Listmanagedautomationtypesapiaccountsaccountidworkspacesworkspaceidautomationsmanagedtypesget — List Managed Automation Types
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/automations/managed/types
PUT
Createorupdatemanagedautomationapiaccountsaccountidworkspacesworkspaceidautomationsmanagedautomationtypeput — Create Or Update Managed Automation
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/automations/managed/{automation-type}
DELETE
Deletemanagedautomationapiaccountsaccountidworkspacesworkspaceidautomationsmanagedautomationtypedelete — Delete Managed Automation
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/automations/managed/{automation-type}

MCP Tools

delete-all-managed-automations

Delete All Managed Automations

idempotent
list-managed-automations-workspace

List Managed Automations By Workspace

read-only idempotent
quick-enable-managed-automations

Quick Enable Managed Automations

list-managed-automations

List Managed Automations

read-only idempotent
list-managed-automation-types

List Managed Automation Types

read-only idempotent
create-update-managed-automation

Create Or Update Managed Automation

idempotent
delete-managed-automation

Delete Managed Automation

idempotent

Capability Spec

prefect-managed-automations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Prefect Cloud API — Managed Automations
  description: 'Prefect Cloud API — Managed Automations. 7 operations. Lead operation: Delete All Managed Automations. Self-contained
    Naftiko capability covering one Prefect business surface.'
  tags:
  - Prefect
  - Managed Automations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PREFECT_API_KEY: PREFECT_API_KEY
capability:
  consumes:
  - type: http
    namespace: prefect-managed-automations
    baseUri: ''
    description: Prefect Cloud API — Managed Automations business capability. Self-contained, no shared references.
    resources:
    - name: api-accounts-account_id-managed-automations
      path: /api/accounts/{account_id}/managed-automations
      operations:
      - name: deleteallmanagedautomationsapiaccountsaccountidmanagedautomationsdelete
        method: DELETE
        description: Delete All Managed Automations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
    - name: api-accounts-account_id-managed-automations
      path: /api/accounts/{account_id}/managed-automations/
      operations:
      - name: listmanagedautomationsbyworkspaceapiaccountsaccountidmanagedautomationsget
        method: GET
        description: List Managed Automations By Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
    - name: api-accounts-account_id-managed-automations-quick-enable
      path: /api/accounts/{account_id}/managed-automations/quick-enable
      operations:
      - name: quickenablemanagedautomationsapiaccountsaccountidmanagedautomationsquickenablepost
        method: POST
        description: Quick Enable Managed Automations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-automations-managed
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/automations/managed/
      operations:
      - name: listmanagedautomationsapiaccountsaccountidworkspacesworkspaceidautomationsmanagedget
        method: GET
        description: List Managed Automations
        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: api-accounts-account_id-workspaces-workspace_id-automations-managed-types
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/automations/managed/types
      operations:
      - name: listmanagedautomationtypesapiaccountsaccountidworkspacesworkspaceidautomationsmanagedtypesget
        method: GET
        description: List Managed Automation Types
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-automations-managed-automation_t
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/automations/managed/{automation_type}
      operations:
      - name: createorupdatemanagedautomationapiaccountsaccountidworkspacesworkspaceidautomationsmanagedautomationtypeput
        method: PUT
        description: Create Or Update Managed Automation
        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: automation_type
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deletemanagedautomationapiaccountsaccountidworkspacesworkspaceidautomationsmanagedautomationtypedelete
        method: DELETE
        description: Delete Managed Automation
        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: automation_type
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: prefect-managed-automations-rest
    port: 8080
    description: REST adapter for Prefect Cloud API — Managed Automations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/accounts/{account-id}/managed-automations
      name: api-accounts-account-id-managed-automations
      description: REST surface for api-accounts-account_id-managed-automations.
      operations:
      - method: DELETE
        name: deleteallmanagedautomationsapiaccountsaccountidmanagedautomationsdelete
        description: Delete All Managed Automations
        call: prefect-managed-automations.deleteallmanagedautomationsapiaccountsaccountidmanagedautomationsdelete
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/managed-automations
      name: api-accounts-account-id-managed-automations
      description: REST surface for api-accounts-account_id-managed-automations.
      operations:
      - method: GET
        name: listmanagedautomationsbyworkspaceapiaccountsaccountidmanagedautomationsget
        description: List Managed Automations By Workspace
        call: prefect-managed-automations.listmanagedautomationsbyworkspaceapiaccountsaccountidmanagedautomationsget
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/managed-automations/quick-enable
      name: api-accounts-account-id-managed-automations-quick-enable
      description: REST surface for api-accounts-account_id-managed-automations-quick-enable.
      operations:
      - method: POST
        name: quickenablemanagedautomationsapiaccountsaccountidmanagedautomationsquickenablepost
        description: Quick Enable Managed Automations
        call: prefect-managed-automations.quickenablemanagedautomationsapiaccountsaccountidmanagedautomationsquickenablepost
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/automations/managed
      name: api-accounts-account-id-workspaces-workspace-id-automations-managed
      description: REST surface for api-accounts-account_id-workspaces-workspace_id-automations-managed.
      operations:
      - method: GET
        name: listmanagedautomationsapiaccountsaccountidworkspacesworkspaceidautomationsmanagedget
        description: List Managed Automations
        call: prefect-managed-automations.listmanagedautomationsapiaccountsaccountidworkspacesworkspaceidautomationsmanagedget
        with:
          account_id: rest.account_id
          workspace_id: rest.workspace_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/automations/managed/types
      name: api-accounts-account-id-workspaces-workspace-id-automations-managed-types
      description: REST surface for api-accounts-account_id-workspaces-workspace_id-automations-managed-types.
      operations:
      - method: GET
        name: listmanagedautomationtypesapiaccountsaccountidworkspacesworkspaceidautomationsmanagedtypesget
        description: List Managed Automation Types
        call: prefect-managed-automations.listmanagedautomationtypesapiaccountsaccountidworkspacesworkspaceidautomationsmanagedtypesget
        with:
          workspace_id: rest.workspace_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/automations/managed/{automation-type}
      name: api-accounts-account-id-workspaces-workspace-id-automations-managed-automation-t
      description: REST surface for api-accounts-account_id-workspaces-workspace_id-automations-managed-automation_t.
      operations:
      - method: PUT
        name: createorupdatemanagedautomationapiaccountsaccountidworkspacesworkspaceidautomationsmanagedautomationtypeput
        description: Create Or Update Managed Automation
        call: prefect-managed-automations.createorupdatemanagedautomationapiaccountsaccountidworkspacesworkspaceidautomationsmanagedautomationtypeput
        with:
          account_id: rest.account_id
          workspace_id: rest.workspace_id
          automation_type: rest.automation_type
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletemanagedautomationapiaccountsaccountidworkspacesworkspaceidautomationsmanagedautomationtypedelete
        description: Delete Managed Automation
        call: prefect-managed-automations.deletemanagedautomationapiaccountsaccountidworkspacesworkspaceidautomationsmanagedautomationtypedelete
        with:
          account_id: rest.account_id
          workspace_id: rest.workspace_id
          automation_type: rest.automation_type
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: prefect-managed-automations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Prefect Cloud API — Managed Automations. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: delete-all-managed-automations
      description: Delete All Managed Automations
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: prefect-managed-automations.deleteallmanagedautomationsapiaccountsaccountidmanagedautomationsdelete
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: list-managed-automations-workspace
      description: List Managed Automations By Workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-managed-automations.listmanagedautomationsbyworkspaceapiaccountsaccountidmanagedautomationsget
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: quick-enable-managed-automations
      description: Quick Enable Managed Automations
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: prefect-managed-automations.quickenablemanagedautomationsapiaccountsaccountidmanagedautomationsquickenablepost
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: list-managed-automations
      description: List Managed Automations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-managed-automations.listmanagedautomationsapiaccountsaccountidworkspacesworkspaceidautomationsmanagedget
      with:
        account_id: tools.account_id
        workspace_id: tools.workspace_id
      outputParameters:
      - type: object
        mapping: $.
    - name: list-managed-automation-types
      description: List Managed Automation Types
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-managed-automations.listmanagedautomationtypesapiaccountsaccountidworkspacesworkspaceidautomationsmanagedtypesget
      with:
        workspace_id: tools.workspace_id
      outputParameters:
      - type: object
        mapping: $.
    - name: create-update-managed-automation
      description: Create Or Update Managed Automation
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: prefect-managed-automations.createorupdatemanagedautomationapiaccountsaccountidworkspacesworkspaceidautomationsmanagedautomationtypeput
      with:
        account_id: tools.account_id
        workspace_id: tools.workspace_id
        automation_type: tools.automation_type
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-managed-automation
      description: Delete Managed Automation
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: prefect-managed-automations.deletemanagedautomationapiaccountsaccountidworkspacesworkspaceidautomationsmanagedautomationtypedelete
      with:
        account_id: tools.account_id
        workspace_id: tools.workspace_id
        automation_type: tools.automation_type
      outputParameters:
      - type: object
        mapping: $.