Prefect · Capability

Prefect Cloud API — Accounts

Prefect Cloud API — Accounts. 10 operations. Lead operation: List Permissions. Self-contained Naftiko capability covering one Prefect business surface.

Run with Naftiko PrefectAccounts

What You Can Do

GET
Listpermissionsapiaccountspermissionsget — List Permissions
/v1/api/accounts/permissions
GET
Readaccountapiaccountsaccountidget — Read Account
/v1/api/accounts/{account-id}
PATCH
Updateaccountapiaccountsaccountidpatch — Update Account
/v1/api/accounts/{account-id}
DELETE
Deleteaccountapiaccountsaccountiddelete — Delete Account
/v1/api/accounts/{account-id}
GET
Readaccountdomainsapiaccountsaccountiddomainsget — Read Account Domains
/v1/api/accounts/{account-id}/domains
PATCH
Updateaccountdomainsapiaccountsaccountiddomainspatch — Update Account Domains
/v1/api/accounts/{account-id}/domains
GET
Readaccountsettingsapiaccountsaccountidsettingsget — Read Account Settings
/v1/api/accounts/{account-id}/settings
PATCH
Updateaccountsettingsapiaccountsaccountidsettingspatch — Update Account Settings
/v1/api/accounts/{account-id}/settings
GET
Readaccountusageapiaccountsaccountidusageget — Read Account Usage
/v1/api/accounts/{account-id}/usage
GET
Readaccountusagelimitsapiaccountsaccountidusagelimitsget — Read Account Usage Limits
/v1/api/accounts/{account-id}/usage-limits

MCP Tools

list-permissions

List Permissions

read-only idempotent
read-account

Read Account

read-only idempotent
update-account

Update Account

idempotent
delete-account

Delete Account

idempotent
read-account-domains

Read Account Domains

read-only idempotent
update-account-domains

Update Account Domains

idempotent
read-account-settings

Read Account Settings

read-only idempotent
update-account-settings

Update Account Settings

idempotent
read-account-usage

Read Account Usage

read-only idempotent
read-account-usage-limits

Read Account Usage Limits

read-only idempotent

Capability Spec

prefect-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Prefect Cloud API — Accounts
  description: 'Prefect Cloud API — Accounts. 10 operations. Lead operation: List Permissions. Self-contained Naftiko capability
    covering one Prefect business surface.'
  tags:
  - Prefect
  - Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PREFECT_API_KEY: PREFECT_API_KEY
capability:
  consumes:
  - type: http
    namespace: prefect-accounts
    baseUri: ''
    description: Prefect Cloud API — Accounts business capability. Self-contained, no shared references.
    resources:
    - name: api-accounts-permissions
      path: /api/accounts/permissions
      operations:
      - name: listpermissionsapiaccountspermissionsget
        method: GET
        description: List Permissions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-accounts-account_id
      path: /api/accounts/{account_id}
      operations:
      - name: readaccountapiaccountsaccountidget
        method: GET
        description: Read Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
      - name: updateaccountapiaccountsaccountidpatch
        method: PATCH
        description: Update Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteaccountapiaccountsaccountiddelete
        method: DELETE
        description: Delete Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
    - name: api-accounts-account_id-domains
      path: /api/accounts/{account_id}/domains
      operations:
      - name: readaccountdomainsapiaccountsaccountiddomainsget
        method: GET
        description: Read Account Domains
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
      - name: updateaccountdomainsapiaccountsaccountiddomainspatch
        method: PATCH
        description: Update Account Domains
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-accounts-account_id-settings
      path: /api/accounts/{account_id}/settings
      operations:
      - name: readaccountsettingsapiaccountsaccountidsettingsget
        method: GET
        description: Read Account Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
      - name: updateaccountsettingsapiaccountsaccountidsettingspatch
        method: PATCH
        description: Update Account Settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-accounts-account_id-usage
      path: /api/accounts/{account_id}/usage
      operations:
      - name: readaccountusageapiaccountsaccountidusageget
        method: GET
        description: Read Account Usage
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
    - name: api-accounts-account_id-usage_limits
      path: /api/accounts/{account_id}/usage_limits
      operations:
      - name: readaccountusagelimitsapiaccountsaccountidusagelimitsget
        method: GET
        description: Read Account Usage Limits
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: prefect-accounts-rest
    port: 8080
    description: REST adapter for Prefect Cloud API — Accounts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/accounts/permissions
      name: api-accounts-permissions
      description: REST surface for api-accounts-permissions.
      operations:
      - method: GET
        name: listpermissionsapiaccountspermissionsget
        description: List Permissions
        call: prefect-accounts.listpermissionsapiaccountspermissionsget
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}
      name: api-accounts-account-id
      description: REST surface for api-accounts-account_id.
      operations:
      - method: GET
        name: readaccountapiaccountsaccountidget
        description: Read Account
        call: prefect-accounts.readaccountapiaccountsaccountidget
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateaccountapiaccountsaccountidpatch
        description: Update Account
        call: prefect-accounts.updateaccountapiaccountsaccountidpatch
        with:
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteaccountapiaccountsaccountiddelete
        description: Delete Account
        call: prefect-accounts.deleteaccountapiaccountsaccountiddelete
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/domains
      name: api-accounts-account-id-domains
      description: REST surface for api-accounts-account_id-domains.
      operations:
      - method: GET
        name: readaccountdomainsapiaccountsaccountiddomainsget
        description: Read Account Domains
        call: prefect-accounts.readaccountdomainsapiaccountsaccountiddomainsget
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateaccountdomainsapiaccountsaccountiddomainspatch
        description: Update Account Domains
        call: prefect-accounts.updateaccountdomainsapiaccountsaccountiddomainspatch
        with:
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/settings
      name: api-accounts-account-id-settings
      description: REST surface for api-accounts-account_id-settings.
      operations:
      - method: GET
        name: readaccountsettingsapiaccountsaccountidsettingsget
        description: Read Account Settings
        call: prefect-accounts.readaccountsettingsapiaccountsaccountidsettingsget
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateaccountsettingsapiaccountsaccountidsettingspatch
        description: Update Account Settings
        call: prefect-accounts.updateaccountsettingsapiaccountsaccountidsettingspatch
        with:
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/usage
      name: api-accounts-account-id-usage
      description: REST surface for api-accounts-account_id-usage.
      operations:
      - method: GET
        name: readaccountusageapiaccountsaccountidusageget
        description: Read Account Usage
        call: prefect-accounts.readaccountusageapiaccountsaccountidusageget
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/usage-limits
      name: api-accounts-account-id-usage-limits
      description: REST surface for api-accounts-account_id-usage_limits.
      operations:
      - method: GET
        name: readaccountusagelimitsapiaccountsaccountidusagelimitsget
        description: Read Account Usage Limits
        call: prefect-accounts.readaccountusagelimitsapiaccountsaccountidusagelimitsget
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: prefect-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Prefect Cloud API — Accounts. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-permissions
      description: List Permissions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-accounts.listpermissionsapiaccountspermissionsget
      outputParameters:
      - type: object
        mapping: $.
    - name: read-account
      description: Read Account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-accounts.readaccountapiaccountsaccountidget
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-account
      description: Update Account
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: prefect-accounts.updateaccountapiaccountsaccountidpatch
      with:
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-account
      description: Delete Account
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: prefect-accounts.deleteaccountapiaccountsaccountiddelete
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: read-account-domains
      description: Read Account Domains
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-accounts.readaccountdomainsapiaccountsaccountiddomainsget
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-account-domains
      description: Update Account Domains
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: prefect-accounts.updateaccountdomainsapiaccountsaccountiddomainspatch
      with:
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: read-account-settings
      description: Read Account Settings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-accounts.readaccountsettingsapiaccountsaccountidsettingsget
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-account-settings
      description: Update Account Settings
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: prefect-accounts.updateaccountsettingsapiaccountsaccountidsettingspatch
      with:
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: read-account-usage
      description: Read Account Usage
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-accounts.readaccountusageapiaccountsaccountidusageget
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: read-account-usage-limits
      description: Read Account Usage Limits
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prefect-accounts.readaccountusagelimitsapiaccountsaccountidusagelimitsget
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.