StackOne · Capability

Marketing — Accounts

Marketing — Accounts. 6 operations. Lead operation: List Accounts. Self-contained Naftiko capability covering one Stackone business surface.

Run with Naftiko StackoneAccounts

What You Can Do

GET
Stackonelistlinkedaccounts — List Accounts
/v1/accounts
GET
Stackonegetaccount — Get Account
/v1/accounts/{id}
DELETE
Stackonedeleteaccount — Delete Account
/v1/accounts/{id}
GET
Stackonegetaccountmetainfo — Get meta information of the account
/v1/accounts/{id}/meta
GET
Crmlistaccounts — List Accounts
/v1/unified/crm/accounts
GET
Crmgetaccount — Get Account
/v1/unified/crm/accounts/{id}

MCP Tools

list-accounts

List Accounts

read-only idempotent
get-account

Get Account

read-only idempotent
delete-account

Delete Account

idempotent
get-meta-information-account

Get meta information of the account

read-only idempotent
list-accounts-2

List Accounts

read-only idempotent
get-account-2

Get Account

read-only idempotent

Capability Spec

stackone-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Marketing — Accounts
  description: 'Marketing — Accounts. 6 operations. Lead operation: List Accounts. Self-contained Naftiko capability covering
    one Stackone business surface.'
  tags:
  - Stackone
  - Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STACKONE_API_KEY: STACKONE_API_KEY
capability:
  consumes:
  - type: http
    namespace: stackone-accounts
    baseUri: https://api.stackone.com
    description: Marketing — Accounts business capability. Self-contained, no shared references.
    resources:
    - name: accounts
      path: /accounts
      operations:
      - name: stackonelistlinkedaccounts
        method: GET
        description: List Accounts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: provider
          in: query
          type: string
          description: The provider of the results to fetch
        - name: origin_owner_id
          in: query
          type: string
          description: The origin owner identifier of the results to fetch
    - name: accounts-id
      path: /accounts/{id}
      operations:
      - name: stackonegetaccount
        method: GET
        description: Get Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: stackonedeleteaccount
        method: DELETE
        description: Delete Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: accounts-id-meta
      path: /accounts/{id}/meta
      operations:
      - name: stackonegetaccountmetainfo
        method: GET
        description: Get meta information of the account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: unified-crm-accounts
      path: /unified/crm/accounts
      operations:
      - name: crmlistaccounts
        method: GET
        description: List Accounts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: string
          description: The page number of the results to fetch
        - name: page_size
          in: query
          type: string
          description: The number of results per page
        - name: raw
          in: query
          type: boolean
          description: Indicates that the raw request result is returned
        - name: fields
          in: query
          type: string
          description: The comma separated list of fields to return in the response (if empty, all fields are returned)
        - name: sync_token
          in: query
          type: string
          description: The sync token to select the only updated results
        - name: updated_after
          in: query
          type: string
          description: Use a string with a date to only select results updated after that given date
        - name: proxy
          in: query
          type: object
          description: Query parameters that can be used to pass through parameters to the underlying provider request by
            surrounding them with "proxy" key
        - name: x-account-id
          in: header
          type: string
          description: The account identifier
          required: true
    - name: unified-crm-accounts-id
      path: /unified/crm/accounts/{id}
      operations:
      - name: crmgetaccount
        method: GET
        description: Get Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: page
          in: query
          type: string
          description: The page number of the results to fetch
        - name: page_size
          in: query
          type: string
          description: The number of results per page
        - name: raw
          in: query
          type: boolean
          description: Indicates that the raw request result is returned
        - name: fields
          in: query
          type: string
          description: The comma separated list of fields to return in the response (if empty, all fields are returned)
        - name: sync_token
          in: query
          type: string
          description: The sync token to select the only updated results
        - name: updated_after
          in: query
          type: string
          description: Use a string with a date to only select results updated after that given date
        - name: proxy
          in: query
          type: object
          description: Query parameters that can be used to pass through parameters to the underlying provider request by
            surrounding them with "proxy" key
        - name: x-account-id
          in: header
          type: string
          description: The account identifier
          required: true
    authentication:
      type: basic
      username: '{{env.STACKONE_USER}}'
      password: '{{env.STACKONE_PASS}}'
  exposes:
  - type: rest
    namespace: stackone-accounts-rest
    port: 8080
    description: REST adapter for Marketing — Accounts. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/accounts
      name: accounts
      description: REST surface for accounts.
      operations:
      - method: GET
        name: stackonelistlinkedaccounts
        description: List Accounts
        call: stackone-accounts.stackonelistlinkedaccounts
        with:
          provider: rest.provider
          origin_owner_id: rest.origin_owner_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{id}
      name: accounts-id
      description: REST surface for accounts-id.
      operations:
      - method: GET
        name: stackonegetaccount
        description: Get Account
        call: stackone-accounts.stackonegetaccount
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: stackonedeleteaccount
        description: Delete Account
        call: stackone-accounts.stackonedeleteaccount
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/accounts/{id}/meta
      name: accounts-id-meta
      description: REST surface for accounts-id-meta.
      operations:
      - method: GET
        name: stackonegetaccountmetainfo
        description: Get meta information of the account
        call: stackone-accounts.stackonegetaccountmetainfo
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/unified/crm/accounts
      name: unified-crm-accounts
      description: REST surface for unified-crm-accounts.
      operations:
      - method: GET
        name: crmlistaccounts
        description: List Accounts
        call: stackone-accounts.crmlistaccounts
        with:
          page: rest.page
          page_size: rest.page_size
          raw: rest.raw
          fields: rest.fields
          sync_token: rest.sync_token
          updated_after: rest.updated_after
          proxy: rest.proxy
          x-account-id: rest.x-account-id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/unified/crm/accounts/{id}
      name: unified-crm-accounts-id
      description: REST surface for unified-crm-accounts-id.
      operations:
      - method: GET
        name: crmgetaccount
        description: Get Account
        call: stackone-accounts.crmgetaccount
        with:
          id: rest.id
          page: rest.page
          page_size: rest.page_size
          raw: rest.raw
          fields: rest.fields
          sync_token: rest.sync_token
          updated_after: rest.updated_after
          proxy: rest.proxy
          x-account-id: rest.x-account-id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stackone-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Marketing — Accounts. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-accounts
      description: List Accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackone-accounts.stackonelistlinkedaccounts
      with:
        provider: tools.provider
        origin_owner_id: tools.origin_owner_id
      outputParameters:
      - type: object
        mapping: $.
    - name: get-account
      description: Get Account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackone-accounts.stackonegetaccount
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-account
      description: Delete Account
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: stackone-accounts.stackonedeleteaccount
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: get-meta-information-account
      description: Get meta information of the account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackone-accounts.stackonegetaccountmetainfo
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: list-accounts-2
      description: List Accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackone-accounts.crmlistaccounts
      with:
        page: tools.page
        page_size: tools.page_size
        raw: tools.raw
        fields: tools.fields
        sync_token: tools.sync_token
        updated_after: tools.updated_after
        proxy: tools.proxy
        x-account-id: tools.x-account-id
      outputParameters:
      - type: object
        mapping: $.
    - name: get-account-2
      description: Get Account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stackone-accounts.crmgetaccount
      with:
        id: tools.id
        page: tools.page
        page_size: tools.page_size
        raw: tools.raw
        fields: tools.fields
        sync_token: tools.sync_token
        updated_after: tools.updated_after
        proxy: tools.proxy
        x-account-id: tools.x-account-id
      outputParameters:
      - type: object
        mapping: $.