naftiko: 1.0.0-alpha2 info: label: Microsoft Graph API — Users description: 'Microsoft Graph API — Users. 8 operations. Lead operation: Microsoft List users. Self-contained Naftiko capability covering one Microsoft business surface.' tags: - Microsoft - Users created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_API_KEY: MICROSOFT_API_KEY capability: consumes: - type: http namespace: graph-users baseUri: https://graph.microsoft.com/v1.0 description: Microsoft Graph API — Users business capability. Self-contained, no shared references. resources: - name: users path: /users operations: - name: listusers method: GET description: Microsoft List users outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createuser method: POST description: Microsoft Create user outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: users-user-id path: /users/{user-id} operations: - name: getuser method: GET description: Microsoft Get user outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateuser method: PATCH description: Microsoft Update user outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteuser method: DELETE description: Microsoft Delete user outputRawFormat: json outputParameters: - name: result type: object value: $. - name: users-user-id-directReports path: /users/{user-id}/directReports operations: - name: listuserdirectreports method: GET description: Microsoft List user's direct reports outputRawFormat: json outputParameters: - name: result type: object value: $. - name: users-user-id-manager path: /users/{user-id}/manager operations: - name: getusermanager method: GET description: Microsoft Get user's manager outputRawFormat: json outputParameters: - name: result type: object value: $. - name: users-user-id-memberOf path: /users/{user-id}/memberOf operations: - name: listusermemberof method: GET description: Microsoft List user's group memberships outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.MICROSOFT_API_KEY}}' exposes: - type: rest namespace: graph-users-rest port: 8080 description: REST adapter for Microsoft Graph API — Users. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/users name: users description: REST surface for users. operations: - method: GET name: listusers description: Microsoft List users call: graph-users.listusers outputParameters: - type: object mapping: $. - method: POST name: createuser description: Microsoft Create user call: graph-users.createuser with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/users/{user-id} name: users-user-id description: REST surface for users-user-id. operations: - method: GET name: getuser description: Microsoft Get user call: graph-users.getuser outputParameters: - type: object mapping: $. - method: PATCH name: updateuser description: Microsoft Update user call: graph-users.updateuser with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteuser description: Microsoft Delete user call: graph-users.deleteuser outputParameters: - type: object mapping: $. - path: /v1/users/{user-id}/directreports name: users-user-id-directreports description: REST surface for users-user-id-directReports. operations: - method: GET name: listuserdirectreports description: Microsoft List user's direct reports call: graph-users.listuserdirectreports outputParameters: - type: object mapping: $. - path: /v1/users/{user-id}/manager name: users-user-id-manager description: REST surface for users-user-id-manager. operations: - method: GET name: getusermanager description: Microsoft Get user's manager call: graph-users.getusermanager outputParameters: - type: object mapping: $. - path: /v1/users/{user-id}/memberof name: users-user-id-memberof description: REST surface for users-user-id-memberOf. operations: - method: GET name: listusermemberof description: Microsoft List user's group memberships call: graph-users.listusermemberof outputParameters: - type: object mapping: $. - type: mcp namespace: graph-users-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph API — Users. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-list-users description: Microsoft List users hints: readOnly: true destructive: false idempotent: true call: graph-users.listusers outputParameters: - type: object mapping: $. - name: microsoft-create-user description: Microsoft Create user hints: readOnly: false destructive: false idempotent: false call: graph-users.createuser with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-get-user description: Microsoft Get user hints: readOnly: true destructive: false idempotent: true call: graph-users.getuser outputParameters: - type: object mapping: $. - name: microsoft-update-user description: Microsoft Update user hints: readOnly: false destructive: false idempotent: true call: graph-users.updateuser with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-delete-user description: Microsoft Delete user hints: readOnly: false destructive: true idempotent: true call: graph-users.deleteuser outputParameters: - type: object mapping: $. - name: microsoft-list-user-s-direct-reports description: Microsoft List user's direct reports hints: readOnly: true destructive: false idempotent: true call: graph-users.listuserdirectreports outputParameters: - type: object mapping: $. - name: microsoft-get-user-s-manager description: Microsoft Get user's manager hints: readOnly: true destructive: false idempotent: true call: graph-users.getusermanager outputParameters: - type: object mapping: $. - name: microsoft-list-user-s-group-memberships description: Microsoft List user's group memberships hints: readOnly: true destructive: false idempotent: true call: graph-users.listusermemberof outputParameters: - type: object mapping: $.