Microsoft Graph · Capability

Microsoft Graph OData Service for namespace microsoft.graph — Devices.device

Microsoft Graph OData Service for namespace microsoft.graph — Devices.device. 9 operations. Lead operation: Microsoft Graph List devices. Self-contained Naftiko capability covering one Microsoft Graph business surface.

Run with Naftiko Microsoft GraphDevices.device

What You Can Do

GET
Devicesdevicelistdevice — Microsoft Graph List devices
/v1/devices
POST
Devicesdevicecreatedevice — Microsoft Graph Create device
/v1/devices
GET
Devicesdevicegetdevicebydeviceid — Microsoft Graph Get device
/v1/devices-deviceid-deviceid
PATCH
Devicesdeviceupdatedevicebydeviceid — Microsoft Graph Update device
/v1/devices-deviceid-deviceid
DELETE
Devicesdevicedeletedevicebydeviceid — Microsoft Graph Delete device
/v1/devices-deviceid-deviceid
GET
Devicesgetcount3489 — Microsoft Graph Get the number of the resource
/v1/devices/count
GET
Devicesdevicegetdevice — Microsoft Graph Get device
/v1/devices/{device-id}
PATCH
Devicesdeviceupdatedevice — Microsoft Graph Update device
/v1/devices/{device-id}
DELETE
Devicesdevicedeletedevice — Microsoft Graph Delete device
/v1/devices/{device-id}

MCP Tools

microsoft-graph-list-devices

Microsoft Graph List devices

read-only idempotent
microsoft-graph-create-device

Microsoft Graph Create device

microsoft-graph-get-device

Microsoft Graph Get device

read-only idempotent
microsoft-graph-update-device

Microsoft Graph Update device

idempotent
microsoft-graph-delete-device

Microsoft Graph Delete device

idempotent
microsoft-graph-get-number-resource

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-get-device-2

Microsoft Graph Get device

read-only idempotent
microsoft-graph-update-device-2

Microsoft Graph Update device

idempotent
microsoft-graph-delete-device-2

Microsoft Graph Delete device

idempotent

Capability Spec

microsoft-graph-devices-device.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph OData Service for namespace microsoft.graph — Devices.device
  description: 'Microsoft Graph OData Service for namespace microsoft.graph — Devices.device. 9 operations. Lead operation:
    Microsoft Graph List devices. Self-contained Naftiko capability covering one Microsoft Graph business surface.'
  tags:
  - Microsoft Graph
  - Devices.device
  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-devices-device
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph OData Service for namespace microsoft.graph — Devices.device business capability. Self-contained,
      no shared references.
    resources:
    - name: devices
      path: /devices
      operations:
      - name: devicesdevicelistdevice
        method: GET
        description: Microsoft Graph List 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: $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: devicesdevicecreatedevice
        method: POST
        description: Microsoft Graph Create device
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: devices(deviceId='{deviceId}')
      path: /devices(deviceId='{deviceId}')
      operations:
      - name: devicesdevicegetdevicebydeviceid
        method: GET
        description: Microsoft Graph Get device
        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: devicesdeviceupdatedevicebydeviceid
        method: PATCH
        description: Microsoft Graph Update device
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: devicesdevicedeletedevicebydeviceid
        method: DELETE
        description: Microsoft Graph Delete device
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
    - name: devices-$count
      path: /devices/$count
      operations:
      - name: devicesgetcount3489
        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
      path: /devices/{device-id}
      operations:
      - name: devicesdevicegetdevice
        method: GET
        description: Microsoft Graph Get device
        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: devicesdeviceupdatedevice
        method: PATCH
        description: Microsoft Graph Update device
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: devicesdevicedeletedevice
        method: DELETE
        description: Microsoft Graph Delete device
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
  exposes:
  - type: rest
    namespace: microsoft-graph-devices-device-rest
    port: 8080
    description: REST adapter for Microsoft Graph OData Service for namespace microsoft.graph — Devices.device. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/devices
      name: devices
      description: REST surface for devices.
      operations:
      - method: GET
        name: devicesdevicelistdevice
        description: Microsoft Graph List devices
        call: microsoft-graph-devices-device.devicesdevicelistdevice
        with:
          ConsistencyLevel: rest.ConsistencyLevel
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: devicesdevicecreatedevice
        description: Microsoft Graph Create device
        call: microsoft-graph-devices-device.devicesdevicecreatedevice
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/devices-deviceid-deviceid
      name: devices-deviceid-deviceid
      description: REST surface for devices(deviceId='{deviceId}').
      operations:
      - method: GET
        name: devicesdevicegetdevicebydeviceid
        description: Microsoft Graph Get device
        call: microsoft-graph-devices-device.devicesdevicegetdevicebydeviceid
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: devicesdeviceupdatedevicebydeviceid
        description: Microsoft Graph Update device
        call: microsoft-graph-devices-device.devicesdeviceupdatedevicebydeviceid
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: devicesdevicedeletedevicebydeviceid
        description: Microsoft Graph Delete device
        call: microsoft-graph-devices-device.devicesdevicedeletedevicebydeviceid
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/devices/count
      name: devices-count
      description: REST surface for devices-$count.
      operations:
      - method: GET
        name: devicesgetcount3489
        description: Microsoft Graph Get the number of the resource
        call: microsoft-graph-devices-device.devicesgetcount3489
        with:
          ConsistencyLevel: rest.ConsistencyLevel
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/devices/{device-id}
      name: devices-device-id
      description: REST surface for devices-device-id.
      operations:
      - method: GET
        name: devicesdevicegetdevice
        description: Microsoft Graph Get device
        call: microsoft-graph-devices-device.devicesdevicegetdevice
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: devicesdeviceupdatedevice
        description: Microsoft Graph Update device
        call: microsoft-graph-devices-device.devicesdeviceupdatedevice
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: devicesdevicedeletedevice
        description: Microsoft Graph Delete device
        call: microsoft-graph-devices-device.devicesdevicedeletedevice
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-graph-devices-device-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph OData Service for namespace microsoft.graph — Devices.device. One tool per
      consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: microsoft-graph-list-devices
      description: Microsoft Graph List devices
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-devices-device.devicesdevicelistdevice
      with:
        ConsistencyLevel: tools.ConsistencyLevel
        $orderby: tools.$orderby
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-create-device
      description: Microsoft Graph Create device
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-graph-devices-device.devicesdevicecreatedevice
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-device
      description: Microsoft Graph Get device
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-devices-device.devicesdevicegetdevicebydeviceid
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-update-device
      description: Microsoft Graph Update device
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-graph-devices-device.devicesdeviceupdatedevicebydeviceid
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-delete-device
      description: Microsoft Graph Delete device
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-devices-device.devicesdevicedeletedevicebydeviceid
      with:
        If-Match: tools.If-Match
      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-devices-device.devicesgetcount3489
      with:
        ConsistencyLevel: tools.ConsistencyLevel
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-device-2
      description: Microsoft Graph Get device
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-devices-device.devicesdevicegetdevice
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-update-device-2
      description: Microsoft Graph Update device
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: microsoft-graph-devices-device.devicesdeviceupdatedevice
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-delete-device-2
      description: Microsoft Graph Delete device
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-devices-device.devicesdevicedeletedevice
      with:
        If-Match: tools.If-Match
      outputParameters:
      - type: object
        mapping: $.