naftiko: 1.0.0-alpha2 info: label: Microsoft Graph Me — devices.directoryObject description: 'Microsoft Graph Me — devices.directoryObject. 9 operations. Lead operation: Microsoft Graph List device memberships. Self-contained Naftiko capability covering one Microsoft Graph business surface.' tags: - Microsoft Graph - devices.directoryObject created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_GRAPH_API_KEY: MICROSOFT_GRAPH_API_KEY capability: consumes: - type: http namespace: me-devices-directoryobject baseUri: '' description: Microsoft Graph Me — devices.directoryObject business capability. Self-contained, no shared references. resources: - name: devices-device-id-memberOf path: /devices/{device-id}/memberOf operations: - name: deviceslistmemberof method: GET description: Microsoft Graph List device memberships outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ConsistencyLevel in: header type: string description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - name: $orderby in: query type: array description: Order items by property values - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: devices-device-id-memberOf-$count path: /devices/{device-id}/memberOf/$count operations: - name: devicesmemberofgetcountbd14 method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ConsistencyLevel in: header type: string description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - name: devices-device-id-memberOf-graph.administrativeUnit path: /devices/{device-id}/memberOf/graph.administrativeUnit operations: - name: deviceslistmemberofasadministrativeunit method: GET description: Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ConsistencyLevel in: header type: string description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - name: $orderby in: query type: array description: Order items by property values - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: devices-device-id-memberOf-graph.administrativeUnit-$count path: /devices/{device-id}/memberOf/graph.administrativeUnit/$count operations: - name: devicesmemberofgetcountasadministrativeunitdd3f method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ConsistencyLevel in: header type: string description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - name: devices-device-id-memberOf-graph.group path: /devices/{device-id}/memberOf/graph.group operations: - name: deviceslistmemberofasgroup method: GET description: Microsoft Graph List device memberships outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ConsistencyLevel in: header type: string description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - name: $orderby in: query type: array description: Order items by property values - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: devices-device-id-memberOf-graph.group-$count path: /devices/{device-id}/memberOf/graph.group/$count operations: - name: devicesmemberofgetcountasgroup3872 method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ConsistencyLevel in: header type: string description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - name: devices-device-id-memberOf-directoryObject-id path: /devices/{device-id}/memberOf/{directoryObject-id} operations: - name: devicesgetmemberof method: GET description: Microsoft Graph Get memberOf from devices outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ConsistencyLevel in: header type: string description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: devices-device-id-memberOf-directoryObject-id-graph.administrativeUnit path: /devices/{device-id}/memberOf/{directoryObject-id}/graph.administrativeUnit operations: - name: devicesgetmemberofasadministrativeunit method: GET description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ConsistencyLevel in: header type: string description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: devices-device-id-memberOf-directoryObject-id-graph.group path: /devices/{device-id}/memberOf/{directoryObject-id}/graph.group operations: - name: devicesgetmemberofasgroup method: GET description: Microsoft Graph List device memberships outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ConsistencyLevel in: header type: string description: 'Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries' - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities exposes: - type: rest namespace: me-devices-directoryobject-rest port: 8080 description: REST adapter for Microsoft Graph Me — devices.directoryObject. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/devices/{device-id}/memberof name: devices-device-id-memberof description: REST surface for devices-device-id-memberOf. operations: - method: GET name: deviceslistmemberof description: Microsoft Graph List device memberships call: me-devices-directoryobject.deviceslistmemberof with: ConsistencyLevel: rest.ConsistencyLevel $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/devices/{device-id}/memberof/count name: devices-device-id-memberof-count description: REST surface for devices-device-id-memberOf-$count. operations: - method: GET name: devicesmemberofgetcountbd14 description: Microsoft Graph Get the number of the resource call: me-devices-directoryobject.devicesmemberofgetcountbd14 with: ConsistencyLevel: rest.ConsistencyLevel outputParameters: - type: object mapping: $. - path: /v1/devices/{device-id}/memberof/graph-administrativeunit name: devices-device-id-memberof-graph-administrativeunit description: REST surface for devices-device-id-memberOf-graph.administrativeUnit. operations: - method: GET name: deviceslistmemberofasadministrativeunit description: Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection call: me-devices-directoryobject.deviceslistmemberofasadministrativeunit with: ConsistencyLevel: rest.ConsistencyLevel $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/devices/{device-id}/memberof/graph-administrativeunit/count name: devices-device-id-memberof-graph-administrativeunit-count description: REST surface for devices-device-id-memberOf-graph.administrativeUnit-$count. operations: - method: GET name: devicesmemberofgetcountasadministrativeunitdd3f description: Microsoft Graph Get the number of the resource call: me-devices-directoryobject.devicesmemberofgetcountasadministrativeunitdd3f with: ConsistencyLevel: rest.ConsistencyLevel outputParameters: - type: object mapping: $. - path: /v1/devices/{device-id}/memberof/graph-group name: devices-device-id-memberof-graph-group description: REST surface for devices-device-id-memberOf-graph.group. operations: - method: GET name: deviceslistmemberofasgroup description: Microsoft Graph List device memberships call: me-devices-directoryobject.deviceslistmemberofasgroup with: ConsistencyLevel: rest.ConsistencyLevel $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/devices/{device-id}/memberof/graph-group/count name: devices-device-id-memberof-graph-group-count description: REST surface for devices-device-id-memberOf-graph.group-$count. operations: - method: GET name: devicesmemberofgetcountasgroup3872 description: Microsoft Graph Get the number of the resource call: me-devices-directoryobject.devicesmemberofgetcountasgroup3872 with: ConsistencyLevel: rest.ConsistencyLevel outputParameters: - type: object mapping: $. - path: /v1/devices/{device-id}/memberof/{directoryobject-id} name: devices-device-id-memberof-directoryobject-id description: REST surface for devices-device-id-memberOf-directoryObject-id. operations: - method: GET name: devicesgetmemberof description: Microsoft Graph Get memberOf from devices call: me-devices-directoryobject.devicesgetmemberof with: ConsistencyLevel: rest.ConsistencyLevel $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/devices/{device-id}/memberof/{directoryobject-id}/graph-administrativeunit name: devices-device-id-memberof-directoryobject-id-graph-administrativeunit description: REST surface for devices-device-id-memberOf-directoryObject-id-graph.administrativeUnit. operations: - method: GET name: devicesgetmemberofasadministrativeunit description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit call: me-devices-directoryobject.devicesgetmemberofasadministrativeunit with: ConsistencyLevel: rest.ConsistencyLevel $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/devices/{device-id}/memberof/{directoryobject-id}/graph-group name: devices-device-id-memberof-directoryobject-id-graph-group description: REST surface for devices-device-id-memberOf-directoryObject-id-graph.group. operations: - method: GET name: devicesgetmemberofasgroup description: Microsoft Graph List device memberships call: me-devices-directoryobject.devicesgetmemberofasgroup with: ConsistencyLevel: rest.ConsistencyLevel $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - type: mcp namespace: me-devices-directoryobject-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph Me — devices.directoryObject. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-graph-list-device-memberships description: Microsoft Graph List device memberships hints: readOnly: true destructive: false idempotent: true call: me-devices-directoryobject.deviceslistmemberof with: ConsistencyLevel: tools.ConsistencyLevel $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-get-number-resource description: Microsoft Graph Get the number of the resource hints: readOnly: true destructive: false idempotent: true call: me-devices-directoryobject.devicesmemberofgetcountbd14 with: ConsistencyLevel: tools.ConsistencyLevel outputParameters: - type: object mapping: $. - name: microsoft-graph-get-items-type description: Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection hints: readOnly: true destructive: false idempotent: true call: me-devices-directoryobject.deviceslistmemberofasadministrativeunit with: ConsistencyLevel: tools.ConsistencyLevel $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-get-number-resource-2 description: Microsoft Graph Get the number of the resource hints: readOnly: true destructive: false idempotent: true call: me-devices-directoryobject.devicesmemberofgetcountasadministrativeunitdd3f with: ConsistencyLevel: tools.ConsistencyLevel outputParameters: - type: object mapping: $. - name: microsoft-graph-list-device-memberships-2 description: Microsoft Graph List device memberships hints: readOnly: true destructive: false idempotent: true call: me-devices-directoryobject.deviceslistmemberofasgroup with: ConsistencyLevel: tools.ConsistencyLevel $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-get-number-resource-3 description: Microsoft Graph Get the number of the resource hints: readOnly: true destructive: false idempotent: true call: me-devices-directoryobject.devicesmemberofgetcountasgroup3872 with: ConsistencyLevel: tools.ConsistencyLevel outputParameters: - type: object mapping: $. - name: microsoft-graph-get-memberof-devices description: Microsoft Graph Get memberOf from devices hints: readOnly: true destructive: false idempotent: true call: me-devices-directoryobject.devicesgetmemberof with: ConsistencyLevel: tools.ConsistencyLevel $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-get-item-type description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit hints: readOnly: true destructive: false idempotent: true call: me-devices-directoryobject.devicesgetmemberofasadministrativeunit with: ConsistencyLevel: tools.ConsistencyLevel $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-list-device-memberships-3 description: Microsoft Graph List device memberships hints: readOnly: true destructive: false idempotent: true call: me-devices-directoryobject.devicesgetmemberofasgroup with: ConsistencyLevel: tools.ConsistencyLevel $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $.