naftiko: 1.0.0-alpha2 info: label: GrowthBook REST API — saved-groups description: 'GrowthBook REST API — saved-groups. 5 operations. Lead operation: Get all saved group. Self-contained Naftiko capability covering one Growthbook business surface.' tags: - Growthbook - saved-groups created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GROWTHBOOK_API_KEY: GROWTHBOOK_API_KEY capability: consumes: - type: http namespace: growthbook-saved-groups baseUri: https://api.growthbook.io/api description: GrowthBook REST API — saved-groups business capability. Self-contained, no shared references. resources: - name: v1-saved-groups path: /v1/saved-groups operations: - name: listsavedgroups method: GET description: Get all saved group outputRawFormat: json outputParameters: - name: result type: object value: $. - name: postsavedgroup method: POST description: Create a single saved group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-saved-groups-id path: /v1/saved-groups/{id} operations: - name: getsavedgroup method: GET description: Get a single saved group outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatesavedgroup method: POST description: Partially update a single saved group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletesavedgroup method: DELETE description: Deletes a single saved group outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GROWTHBOOK_API_KEY}}' exposes: - type: rest namespace: growthbook-saved-groups-rest port: 8080 description: REST adapter for GrowthBook REST API — saved-groups. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/saved-groups name: v1-saved-groups description: REST surface for v1-saved-groups. operations: - method: GET name: listsavedgroups description: Get all saved group call: growthbook-saved-groups.listsavedgroups outputParameters: - type: object mapping: $. - method: POST name: postsavedgroup description: Create a single saved group call: growthbook-saved-groups.postsavedgroup with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/saved-groups/{id} name: v1-saved-groups-id description: REST surface for v1-saved-groups-id. operations: - method: GET name: getsavedgroup description: Get a single saved group call: growthbook-saved-groups.getsavedgroup outputParameters: - type: object mapping: $. - method: POST name: updatesavedgroup description: Partially update a single saved group call: growthbook-saved-groups.updatesavedgroup with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletesavedgroup description: Deletes a single saved group call: growthbook-saved-groups.deletesavedgroup outputParameters: - type: object mapping: $. - type: mcp namespace: growthbook-saved-groups-mcp port: 9090 transport: http description: MCP adapter for GrowthBook REST API — saved-groups. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-all-saved-group description: Get all saved group hints: readOnly: true destructive: false idempotent: true call: growthbook-saved-groups.listsavedgroups outputParameters: - type: object mapping: $. - name: create-single-saved-group description: Create a single saved group hints: readOnly: false destructive: false idempotent: false call: growthbook-saved-groups.postsavedgroup with: body: tools.body outputParameters: - type: object mapping: $. - name: get-single-saved-group description: Get a single saved group hints: readOnly: true destructive: false idempotent: true call: growthbook-saved-groups.getsavedgroup outputParameters: - type: object mapping: $. - name: partially-update-single-saved-group description: Partially update a single saved group hints: readOnly: false destructive: false idempotent: false call: growthbook-saved-groups.updatesavedgroup with: body: tools.body outputParameters: - type: object mapping: $. - name: deletes-single-saved-group description: Deletes a single saved group hints: readOnly: false destructive: true idempotent: true call: growthbook-saved-groups.deletesavedgroup outputParameters: - type: object mapping: $.