Microsoft OneDrive · Capability

Microsoft OneDrive API (Microsoft Graph) — Drives

Microsoft OneDrive API (Microsoft Graph) — Drives. 4 operations. Lead operation: Get a specific drive. Self-contained Naftiko capability covering one Microsoft Onedrive business surface.

Run with Naftiko Microsoft OnedriveDrives

What You Can Do

GET
Getdrive — Get a specific drive
/v1/drives/{driveid}
GET
Getmydrive — Get the user's default OneDrive
/v1/me/drive
GET
Listmydrives — List drives available to the user
/v1/me/drives
GET
Getsitedrive — Get default drive for SharePoint site
/v1/sites/{siteid}/drive

MCP Tools

get-specific-drive

Get a specific drive

read-only idempotent
get-user-s-default-onedrive

Get the user's default OneDrive

read-only idempotent
list-drives-available-user

List drives available to the user

read-only idempotent
get-default-drive-sharepoint-site

Get default drive for SharePoint site

read-only idempotent

Capability Spec

microsoft-onedrive-drives.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft OneDrive API (Microsoft Graph) — Drives
  description: 'Microsoft OneDrive API (Microsoft Graph) — Drives. 4 operations. Lead operation: Get a specific drive. Self-contained
    Naftiko capability covering one Microsoft Onedrive business surface.'
  tags:
  - Microsoft Onedrive
  - Drives
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_ONEDRIVE_API_KEY: MICROSOFT_ONEDRIVE_API_KEY
capability:
  consumes:
  - type: http
    namespace: microsoft-onedrive-drives
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft OneDrive API (Microsoft Graph) — Drives business capability. Self-contained, no shared references.
    resources:
    - name: drives-driveId
      path: /drives/{driveId}
      operations:
      - name: getdrive
        method: GET
        description: Get a specific drive
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: me-drive
      path: /me/drive
      operations:
      - name: getmydrive
        method: GET
        description: Get the user's default OneDrive
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: me-drives
      path: /me/drives
      operations:
      - name: listmydrives
        method: GET
        description: List drives available to the user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: sites-siteId-drive
      path: /sites/{siteId}/drive
      operations:
      - name: getsitedrive
        method: GET
        description: Get default drive for SharePoint site
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_ONEDRIVE_API_KEY}}'
  exposes:
  - type: rest
    namespace: microsoft-onedrive-drives-rest
    port: 8080
    description: REST adapter for Microsoft OneDrive API (Microsoft Graph) — Drives. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/drives/{driveid}
      name: drives-driveid
      description: REST surface for drives-driveId.
      operations:
      - method: GET
        name: getdrive
        description: Get a specific drive
        call: microsoft-onedrive-drives.getdrive
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/me/drive
      name: me-drive
      description: REST surface for me-drive.
      operations:
      - method: GET
        name: getmydrive
        description: Get the user's default OneDrive
        call: microsoft-onedrive-drives.getmydrive
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/me/drives
      name: me-drives
      description: REST surface for me-drives.
      operations:
      - method: GET
        name: listmydrives
        description: List drives available to the user
        call: microsoft-onedrive-drives.listmydrives
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/sites/{siteid}/drive
      name: sites-siteid-drive
      description: REST surface for sites-siteId-drive.
      operations:
      - method: GET
        name: getsitedrive
        description: Get default drive for SharePoint site
        call: microsoft-onedrive-drives.getsitedrive
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-onedrive-drives-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft OneDrive API (Microsoft Graph) — Drives. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get-specific-drive
      description: Get a specific drive
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-onedrive-drives.getdrive
      outputParameters:
      - type: object
        mapping: $.
    - name: get-user-s-default-onedrive
      description: Get the user's default OneDrive
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-onedrive-drives.getmydrive
      outputParameters:
      - type: object
        mapping: $.
    - name: list-drives-available-user
      description: List drives available to the user
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-onedrive-drives.listmydrives
      outputParameters:
      - type: object
        mapping: $.
    - name: get-default-drive-sharepoint-site
      description: Get default drive for SharePoint site
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-onedrive-drives.getsitedrive
      outputParameters:
      - type: object
        mapping: $.