naftiko: 1.0.0-alpha2 info: label: Microsoft Graph API (v1.0) — Groups description: 'Microsoft Graph API (v1.0) — Groups. 3 operations. Lead operation: List groups in the directory. Self-contained Naftiko capability covering one Ms Products business surface.' tags: - Ms Products - Groups created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MS_PRODUCTS_API_KEY: MS_PRODUCTS_API_KEY capability: consumes: - type: http namespace: ms-products-groups baseUri: https://graph.microsoft.com/v1.0 description: Microsoft Graph API (v1.0) — Groups business capability. Self-contained, no shared references. resources: - name: groups path: /groups operations: - name: listgroups method: GET description: List groups in the directory outputRawFormat: json outputParameters: - name: result type: object value: $. - name: groups-groupId path: /groups/{groupId} operations: - name: getgroup method: GET description: Get a group by id outputRawFormat: json outputParameters: - name: result type: object value: $. - name: groups-groupId-members path: /groups/{groupId}/members operations: - name: listgroupmembers method: GET description: List members of a group outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.MS_PRODUCTS_API_KEY}}' exposes: - type: rest namespace: ms-products-groups-rest port: 8080 description: REST adapter for Microsoft Graph API (v1.0) — Groups. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/groups name: groups description: REST surface for groups. operations: - method: GET name: listgroups description: List groups in the directory call: ms-products-groups.listgroups outputParameters: - type: object mapping: $. - path: /v1/groups/{groupid} name: groups-groupid description: REST surface for groups-groupId. operations: - method: GET name: getgroup description: Get a group by id call: ms-products-groups.getgroup outputParameters: - type: object mapping: $. - path: /v1/groups/{groupid}/members name: groups-groupid-members description: REST surface for groups-groupId-members. operations: - method: GET name: listgroupmembers description: List members of a group call: ms-products-groups.listgroupmembers outputParameters: - type: object mapping: $. - type: mcp namespace: ms-products-groups-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph API (v1.0) — Groups. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-groups-directory description: List groups in the directory hints: readOnly: true destructive: false idempotent: true call: ms-products-groups.listgroups outputParameters: - type: object mapping: $. - name: get-group-id description: Get a group by id hints: readOnly: true destructive: false idempotent: true call: ms-products-groups.getgroup outputParameters: - type: object mapping: $. - name: list-members-group description: List members of a group hints: readOnly: true destructive: false idempotent: true call: ms-products-groups.listgroupmembers outputParameters: - type: object mapping: $.