naftiko: 1.0.0-alpha2 info: label: Unleash Admin API — Search description: 'Unleash Admin API — Search. 1 operations. Lead operation: Search and Filter Features. Self-contained Naftiko capability covering one Unleash business surface.' tags: - Unleash - Search created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: UNLEASH_API_KEY: UNLEASH_API_KEY capability: consumes: - type: http namespace: admin-search baseUri: https://app.unleash-instance.example.com description: Unleash Admin API — Search business capability. Self-contained, no shared references. resources: - name: api-admin-search-features path: /api/admin/search/features operations: - name: searchfeatures method: GET description: Search and Filter Features outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: query in: query type: string description: The search query for the feature name or tag - name: project in: query type: string description: Id of the project where search and filter is performed. The project id can be specified with an operator. The supported operators are IS, IS_NOT, IS_ANY_OF, IS_ - name: state in: query type: string description: The state of the feature active/stale. The state can be specified with an operator. The supported operators are IS, IS_NOT, IS_ANY_OF, IS_NONE_OF. - name: lifecycle in: query type: string description: The lifecycle stage of the feature. The stagee can be specified with an operator. The supported operators are IS, IS_NOT, IS_ANY_OF, IS_NONE_OF. - name: type in: query type: string description: The feature flag type to filter by. The type can be specified with an operator. The supported operators are IS, IS_NOT, IS_ANY_OF, IS_NONE_OF. - name: createdBy in: query type: string description: The feature flag creator to filter by. The creators can be specified with an operator. The supported operators are IS, IS_NOT, IS_ANY_OF, IS_NONE_OF. - name: tag in: query type: string description: The list of feature tags to filter by. Feature tag has to specify a type and a value joined with a colon. - name: segment in: query type: string description: The list of segments with operators to filter by. The segment valid operators are INCLUDE, DO_NOT_INCLUDE, INCLUDE_ALL_OF, INCLUDE_ANY_OF, EXCLUDE_IF_ANY_OF, EX - name: status in: query type: array description: The list of feature environment status to filter by. Feature environment has to specify a name and a status joined with a colon. - name: offset in: query type: string description: The number of features to skip when returning a page. By default it is set to 0. - name: limit in: query type: string description: The number of feature environments to return in a page. By default it is set to 50. - name: sortBy in: query type: string description: The field to sort the results by. By default it is set to "createdAt". - name: sortOrder in: query type: string description: The sort order for the sortBy. By default it is det to "asc". - name: favoritesFirst in: query type: string description: The flag to indicate if the favorite features should be returned first. By default it is set to false. - name: archived in: query type: string description: 'Whether to get results for archived feature flags or active feature flags. If `IS:true`, Unleash will return only archived flags. If `IS:false`, it will return ' - name: createdAt in: query type: string description: The date the feature was created. The date can be specified with an operator. The supported operators are IS_BEFORE, IS_ON_OR_AFTER. - name: lastSeenAt in: query type: string description: The date the feature was last seen from metrics. The date can be specified with an operator. The supported operators are IS_BEFORE, IS_ON_OR_AFTER. authentication: type: bearer token: '{{env.UNLEASH_API_KEY}}' exposes: - type: rest namespace: admin-search-rest port: 8080 description: REST adapter for Unleash Admin API — Search. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/admin/search/features name: api-admin-search-features description: REST surface for api-admin-search-features. operations: - method: GET name: searchfeatures description: Search and Filter Features call: admin-search.searchfeatures with: query: rest.query project: rest.project state: rest.state lifecycle: rest.lifecycle type: rest.type createdBy: rest.createdBy tag: rest.tag segment: rest.segment status: rest.status offset: rest.offset limit: rest.limit sortBy: rest.sortBy sortOrder: rest.sortOrder favoritesFirst: rest.favoritesFirst archived: rest.archived createdAt: rest.createdAt lastSeenAt: rest.lastSeenAt outputParameters: - type: object mapping: $. - type: mcp namespace: admin-search-mcp port: 9090 transport: http description: MCP adapter for Unleash Admin API — Search. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: search-and-filter-features description: Search and Filter Features hints: readOnly: true destructive: false idempotent: true call: admin-search.searchfeatures with: query: tools.query project: tools.project state: tools.state lifecycle: tools.lifecycle type: tools.type createdBy: tools.createdBy tag: tools.tag segment: tools.segment status: tools.status offset: tools.offset limit: tools.limit sortBy: tools.sortBy sortOrder: tools.sortOrder favoritesFirst: tools.favoritesFirst archived: tools.archived createdAt: tools.createdAt lastSeenAt: tools.lastSeenAt outputParameters: - type: object mapping: $.