naftiko: 1.0.0-alpha2 info: label: Microsoft Graph OData Service for namespace microsoft.graph — deviceManagement.roleDefinition description: 'Microsoft Graph OData Service for namespace microsoft.graph — deviceManagement.roleDefinition. 13 operations. Lead operation: Microsoft Graph Get roleDefinitions from deviceManagement. Self-contained Naftiko capability covering one Microsoft Graph business surface.' tags: - Microsoft Graph - deviceManagement.roleDefinition 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: microsoft-graph-devicemanagement-roledefinition baseUri: https://graph.microsoft.com/v1.0 description: Microsoft Graph OData Service for namespace microsoft.graph — deviceManagement.roleDefinition business capability. Self-contained, no shared references. resources: - name: deviceManagement-roleDefinitions path: /deviceManagement/roleDefinitions operations: - name: devicemanagementlistroledefinitions method: GET description: Microsoft Graph Get roleDefinitions from deviceManagement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - 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: devicemanagementcreateroledefinitions method: POST description: Microsoft Graph Create new navigation property to roleDefinitions for deviceManagement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deviceManagement-roleDefinitions-$count path: /deviceManagement/roleDefinitions/$count operations: - name: devicemanagementroledefinitionsgetcount031b method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deviceManagement-roleDefinitions-roleDefinition-id path: /deviceManagement/roleDefinitions/{roleDefinition-id} operations: - name: devicemanagementgetroledefinitions method: GET description: Microsoft Graph Get roleDefinitions from deviceManagement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: devicemanagementupdateroledefinitions method: PATCH description: Microsoft Graph Update the navigation property roleDefinitions in deviceManagement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: devicemanagementdeleteroledefinitions method: DELETE description: Microsoft Graph Delete navigation property roleDefinitions for deviceManagement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: If-Match in: header type: string description: ETag - name: deviceManagement-roleDefinitions-roleDefinition-id-roleAssignments path: /deviceManagement/roleDefinitions/{roleDefinition-id}/roleAssignments operations: - name: devicemanagementroledefinitionslistroleassignments method: GET description: Microsoft Graph Get roleAssignments from deviceManagement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - 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: devicemanagementroledefinitionscreateroleassignments method: POST description: Microsoft Graph Create new navigation property to roleAssignments for deviceManagement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deviceManagement-roleDefinitions-roleDefinition-id-roleAssignments-$count path: /deviceManagement/roleDefinitions/{roleDefinition-id}/roleAssignments/$count operations: - name: devicemanagementroledefinitionsroleassignmentsgetcount3dca method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deviceManagement-roleDefinitions-roleDefinition-id-roleAssignments-roleAssignmen path: /deviceManagement/roleDefinitions/{roleDefinition-id}/roleAssignments/{roleAssignment-id} operations: - name: devicemanagementroledefinitionsgetroleassignments method: GET description: Microsoft Graph Get roleAssignments from deviceManagement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: devicemanagementroledefinitionsupdateroleassignments method: PATCH description: Microsoft Graph Update the navigation property roleAssignments in deviceManagement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: devicemanagementroledefinitionsdeleteroleassignments method: DELETE description: Microsoft Graph Delete navigation property roleAssignments for deviceManagement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: If-Match in: header type: string description: ETag - name: deviceManagement-roleDefinitions-roleDefinition-id-roleAssignments-roleAssignmen path: /deviceManagement/roleDefinitions/{roleDefinition-id}/roleAssignments/{roleAssignment-id}/roleDefinition operations: - name: devicemanagementroledefinitionsroleassignmentsgetroledefinition method: GET description: Microsoft Graph Get roleDefinition from deviceManagement outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - 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: microsoft-graph-devicemanagement-roledefinition-rest port: 8080 description: REST adapter for Microsoft Graph OData Service for namespace microsoft.graph — deviceManagement.roleDefinition. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/devicemanagement/roledefinitions name: devicemanagement-roledefinitions description: REST surface for deviceManagement-roleDefinitions. operations: - method: GET name: devicemanagementlistroledefinitions description: Microsoft Graph Get roleDefinitions from deviceManagement call: microsoft-graph-devicemanagement-roledefinition.devicemanagementlistroledefinitions with: $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: POST name: devicemanagementcreateroledefinitions description: Microsoft Graph Create new navigation property to roleDefinitions for deviceManagement call: microsoft-graph-devicemanagement-roledefinition.devicemanagementcreateroledefinitions with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/devicemanagement/roledefinitions/count name: devicemanagement-roledefinitions-count description: REST surface for deviceManagement-roleDefinitions-$count. operations: - method: GET name: devicemanagementroledefinitionsgetcount031b description: Microsoft Graph Get the number of the resource call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsgetcount031b outputParameters: - type: object mapping: $. - path: /v1/devicemanagement/roledefinitions/{roledefinition-id} name: devicemanagement-roledefinitions-roledefinition-id description: REST surface for deviceManagement-roleDefinitions-roleDefinition-id. operations: - method: GET name: devicemanagementgetroledefinitions description: Microsoft Graph Get roleDefinitions from deviceManagement call: microsoft-graph-devicemanagement-roledefinition.devicemanagementgetroledefinitions with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: devicemanagementupdateroledefinitions description: Microsoft Graph Update the navigation property roleDefinitions in deviceManagement call: microsoft-graph-devicemanagement-roledefinition.devicemanagementupdateroledefinitions with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: devicemanagementdeleteroledefinitions description: Microsoft Graph Delete navigation property roleDefinitions for deviceManagement call: microsoft-graph-devicemanagement-roledefinition.devicemanagementdeleteroledefinitions with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - path: /v1/devicemanagement/roledefinitions/{roledefinition-id}/roleassignments name: devicemanagement-roledefinitions-roledefinition-id-roleassignments description: REST surface for deviceManagement-roleDefinitions-roleDefinition-id-roleAssignments. operations: - method: GET name: devicemanagementroledefinitionslistroleassignments description: Microsoft Graph Get roleAssignments from deviceManagement call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionslistroleassignments with: $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: POST name: devicemanagementroledefinitionscreateroleassignments description: Microsoft Graph Create new navigation property to roleAssignments for deviceManagement call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionscreateroleassignments with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/devicemanagement/roledefinitions/{roledefinition-id}/roleassignments/count name: devicemanagement-roledefinitions-roledefinition-id-roleassignments-count description: REST surface for deviceManagement-roleDefinitions-roleDefinition-id-roleAssignments-$count. operations: - method: GET name: devicemanagementroledefinitionsroleassignmentsgetcount3dca description: Microsoft Graph Get the number of the resource call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsroleassignmentsgetcount3dca outputParameters: - type: object mapping: $. - path: /v1/devicemanagement/roledefinitions/{roledefinition-id}/roleassignments/{roleassignment-id} name: devicemanagement-roledefinitions-roledefinition-id-roleassignments-roleassignmen description: REST surface for deviceManagement-roleDefinitions-roleDefinition-id-roleAssignments-roleAssignmen. operations: - method: GET name: devicemanagementroledefinitionsgetroleassignments description: Microsoft Graph Get roleAssignments from deviceManagement call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsgetroleassignments with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: devicemanagementroledefinitionsupdateroleassignments description: Microsoft Graph Update the navigation property roleAssignments in deviceManagement call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsupdateroleassignments with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: devicemanagementroledefinitionsdeleteroleassignments description: Microsoft Graph Delete navigation property roleAssignments for deviceManagement call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsdeleteroleassignments with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - path: /v1/devicemanagement/roledefinitions/{roledefinition-id}/roleassignments/{roleassignment-id}/roledefinition name: devicemanagement-roledefinitions-roledefinition-id-roleassignments-roleassignmen description: REST surface for deviceManagement-roleDefinitions-roleDefinition-id-roleAssignments-roleAssignmen. operations: - method: GET name: devicemanagementroledefinitionsroleassignmentsgetroledefinition description: Microsoft Graph Get roleDefinition from deviceManagement call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsroleassignmentsgetroledefinition with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - type: mcp namespace: microsoft-graph-devicemanagement-roledefinition-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph OData Service for namespace microsoft.graph — deviceManagement.roleDefinition. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-graph-get-roledefinitions-devicemanagement description: Microsoft Graph Get roleDefinitions from deviceManagement hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-devicemanagement-roledefinition.devicemanagementlistroledefinitions with: $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-create-new-navigation description: Microsoft Graph Create new navigation property to roleDefinitions for deviceManagement hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-devicemanagement-roledefinition.devicemanagementcreateroledefinitions with: body: tools.body 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: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsgetcount031b outputParameters: - type: object mapping: $. - name: microsoft-graph-get-roledefinitions-devicemanagement-2 description: Microsoft Graph Get roleDefinitions from deviceManagement hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-devicemanagement-roledefinition.devicemanagementgetroledefinitions with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-update-navigation-property description: Microsoft Graph Update the navigation property roleDefinitions in deviceManagement hints: readOnly: false destructive: false idempotent: true call: microsoft-graph-devicemanagement-roledefinition.devicemanagementupdateroledefinitions with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-delete-navigation-property description: Microsoft Graph Delete navigation property roleDefinitions for deviceManagement hints: readOnly: false destructive: true idempotent: true call: microsoft-graph-devicemanagement-roledefinition.devicemanagementdeleteroledefinitions with: If-Match: tools.If-Match outputParameters: - type: object mapping: $. - name: microsoft-graph-get-roleassignments-devicemanagement description: Microsoft Graph Get roleAssignments from deviceManagement hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionslistroleassignments with: $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-create-new-navigation-2 description: Microsoft Graph Create new navigation property to roleAssignments for deviceManagement hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionscreateroleassignments with: body: tools.body 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: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsroleassignmentsgetcount3dca outputParameters: - type: object mapping: $. - name: microsoft-graph-get-roleassignments-devicemanagement-2 description: Microsoft Graph Get roleAssignments from deviceManagement hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsgetroleassignments with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-update-navigation-property-2 description: Microsoft Graph Update the navigation property roleAssignments in deviceManagement hints: readOnly: false destructive: false idempotent: true call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsupdateroleassignments with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-delete-navigation-property-2 description: Microsoft Graph Delete navigation property roleAssignments for deviceManagement hints: readOnly: false destructive: true idempotent: true call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsdeleteroleassignments with: If-Match: tools.If-Match outputParameters: - type: object mapping: $. - name: microsoft-graph-get-roledefinition-devicemanagement description: Microsoft Graph Get roleDefinition from deviceManagement hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-devicemanagement-roledefinition.devicemanagementroledefinitionsroleassignmentsgetroledefinition with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $.