segment · Capability

Segment HTTP Tracking API — Group

Segment HTTP Tracking API — Group. 1 operations. Lead operation: Associate user with a group. Self-contained Naftiko capability covering one Segment business surface.

Run with Naftiko SegmentGroup

What You Can Do

POST
Group — Associate user with a group
/v1/group

MCP Tools

associate-user-group

Associate user with a group

Capability Spec

http-tracking-group.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Segment HTTP Tracking API — Group
  description: 'Segment HTTP Tracking API — Group. 1 operations. Lead operation: Associate user with a group. Self-contained
    Naftiko capability covering one Segment business surface.'
  tags:
  - Segment
  - Group
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SEGMENT_API_KEY: SEGMENT_API_KEY
capability:
  consumes:
  - type: http
    namespace: http-tracking-group
    baseUri: https://api.segment.io/v1
    description: Segment HTTP Tracking API — Group business capability. Self-contained, no shared references.
    resources:
    - name: group
      path: /group
      operations:
      - name: group
        method: POST
        description: Associate user with a group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.SEGMENT_USER}}'
      password: '{{env.SEGMENT_PASS}}'
  exposes:
  - type: rest
    namespace: http-tracking-group-rest
    port: 8080
    description: REST adapter for Segment HTTP Tracking API — Group. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/group
      name: group
      description: REST surface for group.
      operations:
      - method: POST
        name: group
        description: Associate user with a group
        call: http-tracking-group.group
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: http-tracking-group-mcp
    port: 9090
    transport: http
    description: MCP adapter for Segment HTTP Tracking API — Group. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: associate-user-group
      description: Associate user with a group
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: http-tracking-group.group
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.