naftiko: 1.0.0-alpha2 info: label: Segment Config API — Tracking Plans description: 'Segment Config API — Tracking Plans. 2 operations. Lead operation: List tracking plans. Self-contained Naftiko capability covering one Segment business surface.' tags: - Segment - Tracking Plans created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SEGMENT_API_KEY: SEGMENT_API_KEY capability: consumes: - type: http namespace: config-tracking-plans baseUri: https://platform.segmentapis.com/v1beta description: Segment Config API — Tracking Plans business capability. Self-contained, no shared references. resources: - name: workspaces-workspaceName-tracking-plans path: /workspaces/{workspaceName}/tracking-plans operations: - name: listtrackingplans method: GET description: List tracking plans outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createtrackingplan method: POST description: Create tracking plan outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.SEGMENT_API_KEY}}' exposes: - type: rest namespace: config-tracking-plans-rest port: 8080 description: REST adapter for Segment Config API — Tracking Plans. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/workspaces/{workspacename}/tracking-plans name: workspaces-workspacename-tracking-plans description: REST surface for workspaces-workspaceName-tracking-plans. operations: - method: GET name: listtrackingplans description: List tracking plans call: config-tracking-plans.listtrackingplans outputParameters: - type: object mapping: $. - method: POST name: createtrackingplan description: Create tracking plan call: config-tracking-plans.createtrackingplan with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: config-tracking-plans-mcp port: 9090 transport: http description: MCP adapter for Segment Config API — Tracking Plans. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-tracking-plans description: List tracking plans hints: readOnly: true destructive: false idempotent: true call: config-tracking-plans.listtrackingplans outputParameters: - type: object mapping: $. - name: create-tracking-plan description: Create tracking plan hints: readOnly: false destructive: false idempotent: false call: config-tracking-plans.createtrackingplan with: body: tools.body outputParameters: - type: object mapping: $.