naftiko: 1.0.0-alpha2 info: label: Microsoft Graph Me — servicePrincipals.directoryObject description: 'Microsoft Graph Me — servicePrincipals.directoryObject. 12 operations. Lead operation: Microsoft Graph List servicePrincipal memberOf. Self-contained Naftiko capability covering one Microsoft Graph business surface.' tags: - Microsoft Graph - servicePrincipals.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-serviceprincipals-directoryobject baseUri: '' description: Microsoft Graph Me — servicePrincipals.directoryObject business capability. Self-contained, no shared references. resources: - name: servicePrincipals-servicePrincipal-id-memberOf path: /servicePrincipals/{servicePrincipal-id}/memberOf operations: - name: serviceprincipalslistmemberof method: GET description: Microsoft Graph List servicePrincipal memberOf 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: servicePrincipals-servicePrincipal-id-memberOf-$count path: /servicePrincipals/{servicePrincipal-id}/memberOf/$count operations: - name: serviceprincipalsmemberofgetcountbe11 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: servicePrincipals-servicePrincipal-id-memberOf-graph.administrativeUnit path: /servicePrincipals/{servicePrincipal-id}/memberOf/graph.administrativeUnit operations: - name: serviceprincipalslistmemberofasadministrativeunit 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: servicePrincipals-servicePrincipal-id-memberOf-graph.administrativeUnit-$count path: /servicePrincipals/{servicePrincipal-id}/memberOf/graph.administrativeUnit/$count operations: - name: serviceprincipalsmemberofgetcountasadministrativeunit472e 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: servicePrincipals-servicePrincipal-id-memberOf-graph.directoryRole path: /servicePrincipals/{servicePrincipal-id}/memberOf/graph.directoryRole operations: - name: serviceprincipalslistmemberofasdirectoryrole method: GET description: Microsoft Graph Get the items of type microsoft.graph.directoryRole 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: servicePrincipals-servicePrincipal-id-memberOf-graph.directoryRole-$count path: /servicePrincipals/{servicePrincipal-id}/memberOf/graph.directoryRole/$count operations: - name: serviceprincipalsmemberofgetcountasdirectoryrolefa4e 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: servicePrincipals-servicePrincipal-id-memberOf-graph.group path: /servicePrincipals/{servicePrincipal-id}/memberOf/graph.group operations: - name: serviceprincipalslistmemberofasgroup method: GET description: Microsoft Graph Get the items of type microsoft.graph.group 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: servicePrincipals-servicePrincipal-id-memberOf-graph.group-$count path: /servicePrincipals/{servicePrincipal-id}/memberOf/graph.group/$count operations: - name: serviceprincipalsmemberofgetcountasgroup96d9 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: servicePrincipals-servicePrincipal-id-memberOf-directoryObject-id path: /servicePrincipals/{servicePrincipal-id}/memberOf/{directoryObject-id} operations: - name: serviceprincipalsgetmemberof method: GET description: Microsoft Graph Get memberOf from servicePrincipals 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: servicePrincipals-servicePrincipal-id-memberOf-directoryObject-id-graph.administ path: /servicePrincipals/{servicePrincipal-id}/memberOf/{directoryObject-id}/graph.administrativeUnit operations: - name: serviceprincipalsgetmemberofasadministrativeunit 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: servicePrincipals-servicePrincipal-id-memberOf-directoryObject-id-graph.director path: /servicePrincipals/{servicePrincipal-id}/memberOf/{directoryObject-id}/graph.directoryRole operations: - name: serviceprincipalsgetmemberofasdirectoryrole method: GET description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole 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: servicePrincipals-servicePrincipal-id-memberOf-directoryObject-id-graph.group path: /servicePrincipals/{servicePrincipal-id}/memberOf/{directoryObject-id}/graph.group operations: - name: serviceprincipalsgetmemberofasgroup method: GET description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.group 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-serviceprincipals-directoryobject-rest port: 8080 description: REST adapter for Microsoft Graph Me — servicePrincipals.directoryObject. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof name: serviceprincipals-serviceprincipal-id-memberof description: REST surface for servicePrincipals-servicePrincipal-id-memberOf. operations: - method: GET name: serviceprincipalslistmemberof description: Microsoft Graph List servicePrincipal memberOf call: me-serviceprincipals-directoryobject.serviceprincipalslistmemberof with: ConsistencyLevel: rest.ConsistencyLevel $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof/count name: serviceprincipals-serviceprincipal-id-memberof-count description: REST surface for servicePrincipals-servicePrincipal-id-memberOf-$count. operations: - method: GET name: serviceprincipalsmemberofgetcountbe11 description: Microsoft Graph Get the number of the resource call: me-serviceprincipals-directoryobject.serviceprincipalsmemberofgetcountbe11 with: ConsistencyLevel: rest.ConsistencyLevel outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof/graph-administrativeunit name: serviceprincipals-serviceprincipal-id-memberof-graph-administrativeunit description: REST surface for servicePrincipals-servicePrincipal-id-memberOf-graph.administrativeUnit. operations: - method: GET name: serviceprincipalslistmemberofasadministrativeunit description: Microsoft Graph Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection call: me-serviceprincipals-directoryobject.serviceprincipalslistmemberofasadministrativeunit with: ConsistencyLevel: rest.ConsistencyLevel $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof/graph-administrativeunit/count name: serviceprincipals-serviceprincipal-id-memberof-graph-administrativeunit-count description: REST surface for servicePrincipals-servicePrincipal-id-memberOf-graph.administrativeUnit-$count. operations: - method: GET name: serviceprincipalsmemberofgetcountasadministrativeunit472e description: Microsoft Graph Get the number of the resource call: me-serviceprincipals-directoryobject.serviceprincipalsmemberofgetcountasadministrativeunit472e with: ConsistencyLevel: rest.ConsistencyLevel outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof/graph-directoryrole name: serviceprincipals-serviceprincipal-id-memberof-graph-directoryrole description: REST surface for servicePrincipals-servicePrincipal-id-memberOf-graph.directoryRole. operations: - method: GET name: serviceprincipalslistmemberofasdirectoryrole description: Microsoft Graph Get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection call: me-serviceprincipals-directoryobject.serviceprincipalslistmemberofasdirectoryrole with: ConsistencyLevel: rest.ConsistencyLevel $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof/graph-directoryrole/count name: serviceprincipals-serviceprincipal-id-memberof-graph-directoryrole-count description: REST surface for servicePrincipals-servicePrincipal-id-memberOf-graph.directoryRole-$count. operations: - method: GET name: serviceprincipalsmemberofgetcountasdirectoryrolefa4e description: Microsoft Graph Get the number of the resource call: me-serviceprincipals-directoryobject.serviceprincipalsmemberofgetcountasdirectoryrolefa4e with: ConsistencyLevel: rest.ConsistencyLevel outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof/graph-group name: serviceprincipals-serviceprincipal-id-memberof-graph-group description: REST surface for servicePrincipals-servicePrincipal-id-memberOf-graph.group. operations: - method: GET name: serviceprincipalslistmemberofasgroup description: Microsoft Graph Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection call: me-serviceprincipals-directoryobject.serviceprincipalslistmemberofasgroup with: ConsistencyLevel: rest.ConsistencyLevel $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof/graph-group/count name: serviceprincipals-serviceprincipal-id-memberof-graph-group-count description: REST surface for servicePrincipals-servicePrincipal-id-memberOf-graph.group-$count. operations: - method: GET name: serviceprincipalsmemberofgetcountasgroup96d9 description: Microsoft Graph Get the number of the resource call: me-serviceprincipals-directoryobject.serviceprincipalsmemberofgetcountasgroup96d9 with: ConsistencyLevel: rest.ConsistencyLevel outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof/{directoryobject-id} name: serviceprincipals-serviceprincipal-id-memberof-directoryobject-id description: REST surface for servicePrincipals-servicePrincipal-id-memberOf-directoryObject-id. operations: - method: GET name: serviceprincipalsgetmemberof description: Microsoft Graph Get memberOf from servicePrincipals call: me-serviceprincipals-directoryobject.serviceprincipalsgetmemberof with: ConsistencyLevel: rest.ConsistencyLevel $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof/{directoryobject-id}/graph-administrativeunit name: serviceprincipals-serviceprincipal-id-memberof-directoryobject-id-graph-administ description: REST surface for servicePrincipals-servicePrincipal-id-memberOf-directoryObject-id-graph.administ. operations: - method: GET name: serviceprincipalsgetmemberofasadministrativeunit description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit call: me-serviceprincipals-directoryobject.serviceprincipalsgetmemberofasadministrativeunit with: ConsistencyLevel: rest.ConsistencyLevel $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof/{directoryobject-id}/graph-directoryrole name: serviceprincipals-serviceprincipal-id-memberof-directoryobject-id-graph-director description: REST surface for servicePrincipals-servicePrincipal-id-memberOf-directoryObject-id-graph.director. operations: - method: GET name: serviceprincipalsgetmemberofasdirectoryrole description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole call: me-serviceprincipals-directoryobject.serviceprincipalsgetmemberofasdirectoryrole with: ConsistencyLevel: rest.ConsistencyLevel $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/serviceprincipals/{serviceprincipal-id}/memberof/{directoryobject-id}/graph-group name: serviceprincipals-serviceprincipal-id-memberof-directoryobject-id-graph-group description: REST surface for servicePrincipals-servicePrincipal-id-memberOf-directoryObject-id-graph.group. operations: - method: GET name: serviceprincipalsgetmemberofasgroup description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.group call: me-serviceprincipals-directoryobject.serviceprincipalsgetmemberofasgroup with: ConsistencyLevel: rest.ConsistencyLevel $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - type: mcp namespace: me-serviceprincipals-directoryobject-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph Me — servicePrincipals.directoryObject. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-graph-list-serviceprincipal-memberof description: Microsoft Graph List servicePrincipal memberOf hints: readOnly: true destructive: false idempotent: true call: me-serviceprincipals-directoryobject.serviceprincipalslistmemberof 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-serviceprincipals-directoryobject.serviceprincipalsmemberofgetcountbe11 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-serviceprincipals-directoryobject.serviceprincipalslistmemberofasadministrativeunit 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-serviceprincipals-directoryobject.serviceprincipalsmemberofgetcountasadministrativeunit472e with: ConsistencyLevel: tools.ConsistencyLevel outputParameters: - type: object mapping: $. - name: microsoft-graph-get-items-type-2 description: Microsoft Graph Get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection hints: readOnly: true destructive: false idempotent: true call: me-serviceprincipals-directoryobject.serviceprincipalslistmemberofasdirectoryrole 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-serviceprincipals-directoryobject.serviceprincipalsmemberofgetcountasdirectoryrolefa4e with: ConsistencyLevel: tools.ConsistencyLevel outputParameters: - type: object mapping: $. - name: microsoft-graph-get-items-type-3 description: Microsoft Graph Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection hints: readOnly: true destructive: false idempotent: true call: me-serviceprincipals-directoryobject.serviceprincipalslistmemberofasgroup with: ConsistencyLevel: tools.ConsistencyLevel $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-get-number-resource-4 description: Microsoft Graph Get the number of the resource hints: readOnly: true destructive: false idempotent: true call: me-serviceprincipals-directoryobject.serviceprincipalsmemberofgetcountasgroup96d9 with: ConsistencyLevel: tools.ConsistencyLevel outputParameters: - type: object mapping: $. - name: microsoft-graph-get-memberof-serviceprincipals description: Microsoft Graph Get memberOf from servicePrincipals hints: readOnly: true destructive: false idempotent: true call: me-serviceprincipals-directoryobject.serviceprincipalsgetmemberof 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-serviceprincipals-directoryobject.serviceprincipalsgetmemberofasadministrativeunit with: ConsistencyLevel: tools.ConsistencyLevel $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-get-item-type-2 description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole hints: readOnly: true destructive: false idempotent: true call: me-serviceprincipals-directoryobject.serviceprincipalsgetmemberofasdirectoryrole with: ConsistencyLevel: tools.ConsistencyLevel $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-get-item-type-3 description: Microsoft Graph Get the item of type microsoft.graph.directoryObject as microsoft.graph.group hints: readOnly: true destructive: false idempotent: true call: me-serviceprincipals-directoryobject.serviceprincipalsgetmemberofasgroup with: ConsistencyLevel: tools.ConsistencyLevel $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $.