Mixpanel · Capability

Mixpanel Query API — Cohorts

Mixpanel Query API — Cohorts. 1 operations. Lead operation: Mixpanel List cohorts. Self-contained Naftiko capability covering one Mixpanel business surface.

Run with Naftiko MixpanelCohorts

What You Can Do

GET
Listcohorts — Mixpanel List cohorts
/v1/cohorts/list

MCP Tools

mixpanel-list-cohorts

Mixpanel List cohorts

read-only idempotent

Capability Spec

query-cohorts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mixpanel Query API — Cohorts
  description: 'Mixpanel Query API — Cohorts. 1 operations. Lead operation: Mixpanel List cohorts. Self-contained Naftiko
    capability covering one Mixpanel business surface.'
  tags:
  - Mixpanel
  - Cohorts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MIXPANEL_API_KEY: MIXPANEL_API_KEY
capability:
  consumes:
  - type: http
    namespace: query-cohorts
    baseUri: https://mixpanel.com/api/2.0
    description: Mixpanel Query API — Cohorts business capability. Self-contained, no shared references.
    resources:
    - name: cohorts-list
      path: /cohorts/list
      operations:
      - name: listcohorts
        method: GET
        description: Mixpanel List cohorts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project_id
          in: query
          type: integer
          description: The Mixpanel project ID
          required: true
    authentication:
      type: basic
      username: '{{env.MIXPANEL_USER}}'
      password: '{{env.MIXPANEL_PASS}}'
  exposes:
  - type: rest
    namespace: query-cohorts-rest
    port: 8080
    description: REST adapter for Mixpanel Query API — Cohorts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/cohorts/list
      name: cohorts-list
      description: REST surface for cohorts-list.
      operations:
      - method: GET
        name: listcohorts
        description: Mixpanel List cohorts
        call: query-cohorts.listcohorts
        with:
          project_id: rest.project_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: query-cohorts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Mixpanel Query API — Cohorts. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: mixpanel-list-cohorts
      description: Mixpanel List cohorts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: query-cohorts.listcohorts
      with:
        project_id: tools.project_id
      outputParameters:
      - type: object
        mapping: $.