naftiko: 1.0.0-alpha2 info: label: Swetrix Admin API — Funnels description: 'Swetrix Admin API — Funnels. 4 operations. Lead operation: Create Funnel. Self-contained Naftiko capability covering one Swetrix business surface.' tags: - Swetrix - Funnels created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SWETRIX_API_KEY: SWETRIX_API_KEY capability: consumes: - type: http namespace: admin-funnels baseUri: https://api.swetrix.com description: Swetrix Admin API — Funnels business capability. Self-contained, no shared references. resources: - name: v1-project-funnel path: /v1/project/funnel operations: - name: createfunnel method: POST description: Create Funnel outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: updatefunnel method: PATCH description: Update Funnel outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-project-funnel-id-pid path: /v1/project/funnel/{id}/{pid} operations: - name: deletefunnel method: DELETE description: Delete Funnel outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Funnel ID required: true - name: pid in: path type: string description: Project ID required: true - name: v1-project-funnels-pid path: /v1/project/funnels/{pid} operations: - name: listfunnels method: GET description: List Funnels outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: pid in: path type: string description: Project ID required: true authentication: type: apikey key: X-Api-Key value: '{{env.SWETRIX_API_KEY}}' placement: header exposes: - type: rest namespace: admin-funnels-rest port: 8080 description: REST adapter for Swetrix Admin API — Funnels. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/project/funnel name: v1-project-funnel description: REST surface for v1-project-funnel. operations: - method: POST name: createfunnel description: Create Funnel call: admin-funnels.createfunnel with: body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: updatefunnel description: Update Funnel call: admin-funnels.updatefunnel with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/project/funnel/{id}/{pid} name: v1-project-funnel-id-pid description: REST surface for v1-project-funnel-id-pid. operations: - method: DELETE name: deletefunnel description: Delete Funnel call: admin-funnels.deletefunnel with: id: rest.id pid: rest.pid outputParameters: - type: object mapping: $. - path: /v1/v1/project/funnels/{pid} name: v1-project-funnels-pid description: REST surface for v1-project-funnels-pid. operations: - method: GET name: listfunnels description: List Funnels call: admin-funnels.listfunnels with: pid: rest.pid outputParameters: - type: object mapping: $. - type: mcp namespace: admin-funnels-mcp port: 9090 transport: http description: MCP adapter for Swetrix Admin API — Funnels. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-funnel description: Create Funnel hints: readOnly: false destructive: false idempotent: false call: admin-funnels.createfunnel with: body: tools.body outputParameters: - type: object mapping: $. - name: update-funnel description: Update Funnel hints: readOnly: false destructive: false idempotent: true call: admin-funnels.updatefunnel with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-funnel description: Delete Funnel hints: readOnly: false destructive: true idempotent: true call: admin-funnels.deletefunnel with: id: tools.id pid: tools.pid outputParameters: - type: object mapping: $. - name: list-funnels description: List Funnels hints: readOnly: true destructive: false idempotent: true call: admin-funnels.listfunnels with: pid: tools.pid outputParameters: - type: object mapping: $.