naftiko: 1.0.0-alpha2 info: label: fabric PIM — Categories description: 'fabric PIM — Categories. 8 operations. Lead operation: Create Category. Self-contained Naftiko capability covering one fabric business surface.' tags: - Fabric - Categories created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: FABRIC_ACCESS_TOKEN: FABRIC_ACCESS_TOKEN capability: consumes: - type: http namespace: pim-categories baseUri: https://live.copilot.fabric.inc description: fabric PIM — Categories consumed operations from fabric-pim-openapi.yml. resources: - name: api-category-v1-category path: /api-category/v1/category operations: - name: create-category method: POST description: 'Create Category' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: get-categories method: GET description: 'Get Categories' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-category-v1-category-nodeid path: /api-category/v1/category/{nodeId} operations: - name: modify-category method: PUT description: 'Modify Category' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: nodeId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: api-category-v1-category-search path: /api-category/v1/category/search operations: - name: find-categories method: GET description: 'Find Categories' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-category-v1-category-tree path: /api-category/v1/category/tree operations: - name: get-category-tree method: GET description: 'Get Category Tree' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-category-v1-category-sku path: /api-category/v1/category/sku operations: - name: get-skus-in-a-category method: GET description: 'Get Skus in a Category' outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-category-v1-category-attribute path: /api-category/v1/category/attribute operations: - name: assign-and-unassign-category-attributes method: POST description: 'Assign and Unassign Category Attributes' outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: get-assigned-category-attributes method: GET description: 'Get Assigned Category Attributes' outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer value: '{{env.FABRIC_ACCESS_TOKEN}}' placement: header exposes: - type: rest namespace: pim-categories-rest port: 8080 description: REST adapter for fabric PIM — Categories. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api-category/v1/category name: api-category-v1-category description: REST surface for api-category-v1-category. operations: - method: POST name: create-category description: 'Create Category' call: pim-categories.create-category with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: get-categories description: 'Get Categories' call: pim-categories.get-categories outputParameters: - type: object mapping: $. - path: /v1/api-category/v1/category/{nodeId} name: api-category-v1-category-nodeid description: REST surface for api-category-v1-category-nodeid. operations: - method: PUT name: modify-category description: 'Modify Category' call: pim-categories.modify-category with: nodeId: rest.path.nodeId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api-category/v1/category/search name: api-category-v1-category-search description: REST surface for api-category-v1-category-search. operations: - method: GET name: find-categories description: 'Find Categories' call: pim-categories.find-categories outputParameters: - type: object mapping: $. - path: /v1/api-category/v1/category/tree name: api-category-v1-category-tree description: REST surface for api-category-v1-category-tree. operations: - method: GET name: get-category-tree description: 'Get Category Tree' call: pim-categories.get-category-tree outputParameters: - type: object mapping: $. - path: /v1/api-category/v1/category/sku name: api-category-v1-category-sku description: REST surface for api-category-v1-category-sku. operations: - method: GET name: get-skus-in-a-category description: 'Get Skus in a Category' call: pim-categories.get-skus-in-a-category outputParameters: - type: object mapping: $. - path: /v1/api-category/v1/category/attribute name: api-category-v1-category-attribute description: REST surface for api-category-v1-category-attribute. operations: - method: POST name: assign-and-unassign-category-attributes description: 'Assign and Unassign Category Attributes' call: pim-categories.assign-and-unassign-category-attributes with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: get-assigned-category-attributes description: 'Get Assigned Category Attributes' call: pim-categories.get-assigned-category-attributes outputParameters: - type: object mapping: $. - type: mcp namespace: pim-categories-mcp port: 9090 transport: http description: MCP adapter for fabric PIM — Categories. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: fabric-create-category description: 'Create Category' hints: readOnly: false destructive: false idempotent: false call: pim-categories.create-category with: body: tools.body outputParameters: - type: object mapping: $. - name: fabric-get-categories description: 'Get Categories' hints: readOnly: true destructive: false idempotent: true call: pim-categories.get-categories outputParameters: - type: object mapping: $. - name: fabric-modify-category description: 'Modify Category' hints: readOnly: false destructive: false idempotent: true call: pim-categories.modify-category with: nodeId: tools.nodeId body: tools.body outputParameters: - type: object mapping: $. - name: fabric-find-categories description: 'Find Categories' hints: readOnly: true destructive: false idempotent: true call: pim-categories.find-categories outputParameters: - type: object mapping: $. - name: fabric-get-category-tree description: 'Get Category Tree' hints: readOnly: true destructive: false idempotent: true call: pim-categories.get-category-tree outputParameters: - type: object mapping: $. - name: fabric-get-skus-in-a-category description: 'Get Skus in a Category' hints: readOnly: true destructive: false idempotent: true call: pim-categories.get-skus-in-a-category outputParameters: - type: object mapping: $. - name: fabric-assign-and-unassign-category-attributes description: 'Assign and Unassign Category Attributes' hints: readOnly: false destructive: false idempotent: false call: pim-categories.assign-and-unassign-category-attributes with: body: tools.body outputParameters: - type: object mapping: $. - name: fabric-get-assigned-category-attributes description: 'Get Assigned Category Attributes' hints: readOnly: true destructive: false idempotent: true call: pim-categories.get-assigned-category-attributes outputParameters: - type: object mapping: $.