Microsoft Graph · Capability

Microsoft Graph Shares — shares.driveItem

Microsoft Graph Shares — shares.driveItem. 14 operations. Lead operation: Microsoft Graph Accessing shared DriveItems. Self-contained Naftiko capability covering one Microsoft Graph business surface.

Run with Naftiko Microsoft Graphshares.driveItem

What You Can Do

GET
Sharesgetdriveitem — Microsoft Graph Accessing shared DriveItems
/v1/shares/{shareddriveitem-id}/driveitem
GET
Sharesgetdriveitemcontent — Microsoft Graph Get content for the navigation property driveItem from shares
/v1/shares/{shareddriveitem-id}/driveitem/content
PUT
Sharesupdatedriveitemcontent — Microsoft Graph Update content for the navigation property driveItem in shares
/v1/shares/{shareddriveitem-id}/driveitem/content
DELETE
Sharesdeletedriveitemcontent — Microsoft Graph Delete content for the navigation property driveItem in shares
/v1/shares/{shareddriveitem-id}/driveitem/content
GET
Shareslistitems — Microsoft Graph Get items from shares
/v1/shares/{shareddriveitem-id}/items
GET
Sharesitemsgetcount245c — Microsoft Graph Get the number of the resource
/v1/shares/{shareddriveitem-id}/items/count
GET
Sharesgetitems — Microsoft Graph Get items from shares
/v1/shares/{shareddriveitem-id}/items/{driveitem-id}
GET
Sharesgetitemscontent — Microsoft Graph Get content for the navigation property items from shares
/v1/shares/{shareddriveitem-id}/items/{driveitem-id}/content
PUT
Sharesupdateitemscontent — Microsoft Graph Update content for the navigation property items in shares
/v1/shares/{shareddriveitem-id}/items/{driveitem-id}/content
DELETE
Sharesdeleteitemscontent — Microsoft Graph Delete content for the navigation property items in shares
/v1/shares/{shareddriveitem-id}/items/{driveitem-id}/content
GET
Sharesgetroot — Microsoft Graph Get root from shares
/v1/shares/{shareddriveitem-id}/root
GET
Sharesgetrootcontent — Microsoft Graph Get content for the navigation property root from shares
/v1/shares/{shareddriveitem-id}/root/content
PUT
Sharesupdaterootcontent — Microsoft Graph Update content for the navigation property root in shares
/v1/shares/{shareddriveitem-id}/root/content
DELETE
Sharesdeleterootcontent — Microsoft Graph Delete content for the navigation property root in shares
/v1/shares/{shareddriveitem-id}/root/content

MCP Tools

microsoft-graph-accessing-shared-driveitems

Microsoft Graph Accessing shared DriveItems

read-only idempotent
microsoft-graph-get-content-navigation

Microsoft Graph Get content for the navigation property driveItem from shares

read-only idempotent
microsoft-graph-update-content-navigation

Microsoft Graph Update content for the navigation property driveItem in shares

idempotent
microsoft-graph-delete-content-navigation

Microsoft Graph Delete content for the navigation property driveItem in shares

idempotent
microsoft-graph-get-items-shares

Microsoft Graph Get items from shares

read-only idempotent
microsoft-graph-get-number-resource

Microsoft Graph Get the number of the resource

read-only idempotent
microsoft-graph-get-items-shares-2

Microsoft Graph Get items from shares

read-only idempotent
microsoft-graph-get-content-navigation-2

Microsoft Graph Get content for the navigation property items from shares

read-only idempotent
microsoft-graph-update-content-navigation-2

Microsoft Graph Update content for the navigation property items in shares

idempotent
microsoft-graph-delete-content-navigation-2

Microsoft Graph Delete content for the navigation property items in shares

idempotent
microsoft-graph-get-root-shares

Microsoft Graph Get root from shares

read-only idempotent
microsoft-graph-get-content-navigation-3

Microsoft Graph Get content for the navigation property root from shares

read-only idempotent
microsoft-graph-update-content-navigation-3

Microsoft Graph Update content for the navigation property root in shares

idempotent
microsoft-graph-delete-content-navigation-3

Microsoft Graph Delete content for the navigation property root in shares

idempotent

Capability Spec

shares-shares-driveitem.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph Shares — shares.driveItem
  description: 'Microsoft Graph Shares — shares.driveItem. 14 operations. Lead operation: Microsoft Graph Accessing shared
    DriveItems. Self-contained Naftiko capability covering one Microsoft Graph business surface.'
  tags:
  - Microsoft Graph
  - shares.driveItem
  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: shares-shares-driveitem
    baseUri: ''
    description: Microsoft Graph Shares — shares.driveItem business capability. Self-contained, no shared references.
    resources:
    - name: shares-sharedDriveItem-id-driveItem
      path: /shares/{sharedDriveItem-id}/driveItem
      operations:
      - name: sharesgetdriveitem
        method: GET
        description: Microsoft Graph Accessing shared DriveItems
        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: shares-sharedDriveItem-id-driveItem-content
      path: /shares/{sharedDriveItem-id}/driveItem/content
      operations:
      - name: sharesgetdriveitemcontent
        method: GET
        description: Microsoft Graph Get content for the navigation property driveItem from shares
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: $format
          in: query
          type: string
          description: Format of the content
      - name: sharesupdatedriveitemcontent
        method: PUT
        description: Microsoft Graph Update content for the navigation property driveItem in shares
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: sharesdeletedriveitemcontent
        method: DELETE
        description: Microsoft Graph Delete content for the navigation property driveItem in shares
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
    - name: shares-sharedDriveItem-id-items
      path: /shares/{sharedDriveItem-id}/items
      operations:
      - name: shareslistitems
        method: GET
        description: Microsoft Graph Get items from shares
        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: shares-sharedDriveItem-id-items-$count
      path: /shares/{sharedDriveItem-id}/items/$count
      operations:
      - name: sharesitemsgetcount245c
        method: GET
        description: Microsoft Graph Get the number of the resource
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: shares-sharedDriveItem-id-items-driveItem-id
      path: /shares/{sharedDriveItem-id}/items/{driveItem-id}
      operations:
      - name: sharesgetitems
        method: GET
        description: Microsoft Graph Get items from shares
        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: shares-sharedDriveItem-id-items-driveItem-id-content
      path: /shares/{sharedDriveItem-id}/items/{driveItem-id}/content
      operations:
      - name: sharesgetitemscontent
        method: GET
        description: Microsoft Graph Get content for the navigation property items from shares
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: $format
          in: query
          type: string
          description: Format of the content
      - name: sharesupdateitemscontent
        method: PUT
        description: Microsoft Graph Update content for the navigation property items in shares
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: sharesdeleteitemscontent
        method: DELETE
        description: Microsoft Graph Delete content for the navigation property items in shares
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
    - name: shares-sharedDriveItem-id-root
      path: /shares/{sharedDriveItem-id}/root
      operations:
      - name: sharesgetroot
        method: GET
        description: Microsoft Graph Get root from shares
        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: shares-sharedDriveItem-id-root-content
      path: /shares/{sharedDriveItem-id}/root/content
      operations:
      - name: sharesgetrootcontent
        method: GET
        description: Microsoft Graph Get content for the navigation property root from shares
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: $format
          in: query
          type: string
          description: Format of the content
      - name: sharesupdaterootcontent
        method: PUT
        description: Microsoft Graph Update content for the navigation property root in shares
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: sharesdeleterootcontent
        method: DELETE
        description: Microsoft Graph Delete content for the navigation property root in shares
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: If-Match
          in: header
          type: string
          description: ETag
  exposes:
  - type: rest
    namespace: shares-shares-driveitem-rest
    port: 8080
    description: REST adapter for Microsoft Graph Shares — shares.driveItem. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/shares/{shareddriveitem-id}/driveitem
      name: shares-shareddriveitem-id-driveitem
      description: REST surface for shares-sharedDriveItem-id-driveItem.
      operations:
      - method: GET
        name: sharesgetdriveitem
        description: Microsoft Graph Accessing shared DriveItems
        call: shares-shares-driveitem.sharesgetdriveitem
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/shares/{shareddriveitem-id}/driveitem/content
      name: shares-shareddriveitem-id-driveitem-content
      description: REST surface for shares-sharedDriveItem-id-driveItem-content.
      operations:
      - method: GET
        name: sharesgetdriveitemcontent
        description: Microsoft Graph Get content for the navigation property driveItem from shares
        call: shares-shares-driveitem.sharesgetdriveitemcontent
        with:
          $format: rest.$format
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: sharesupdatedriveitemcontent
        description: Microsoft Graph Update content for the navigation property driveItem in shares
        call: shares-shares-driveitem.sharesupdatedriveitemcontent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: sharesdeletedriveitemcontent
        description: Microsoft Graph Delete content for the navigation property driveItem in shares
        call: shares-shares-driveitem.sharesdeletedriveitemcontent
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/shares/{shareddriveitem-id}/items
      name: shares-shareddriveitem-id-items
      description: REST surface for shares-sharedDriveItem-id-items.
      operations:
      - method: GET
        name: shareslistitems
        description: Microsoft Graph Get items from shares
        call: shares-shares-driveitem.shareslistitems
        with:
          $orderby: rest.$orderby
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/shares/{shareddriveitem-id}/items/count
      name: shares-shareddriveitem-id-items-count
      description: REST surface for shares-sharedDriveItem-id-items-$count.
      operations:
      - method: GET
        name: sharesitemsgetcount245c
        description: Microsoft Graph Get the number of the resource
        call: shares-shares-driveitem.sharesitemsgetcount245c
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/shares/{shareddriveitem-id}/items/{driveitem-id}
      name: shares-shareddriveitem-id-items-driveitem-id
      description: REST surface for shares-sharedDriveItem-id-items-driveItem-id.
      operations:
      - method: GET
        name: sharesgetitems
        description: Microsoft Graph Get items from shares
        call: shares-shares-driveitem.sharesgetitems
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/shares/{shareddriveitem-id}/items/{driveitem-id}/content
      name: shares-shareddriveitem-id-items-driveitem-id-content
      description: REST surface for shares-sharedDriveItem-id-items-driveItem-id-content.
      operations:
      - method: GET
        name: sharesgetitemscontent
        description: Microsoft Graph Get content for the navigation property items from shares
        call: shares-shares-driveitem.sharesgetitemscontent
        with:
          $format: rest.$format
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: sharesupdateitemscontent
        description: Microsoft Graph Update content for the navigation property items in shares
        call: shares-shares-driveitem.sharesupdateitemscontent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: sharesdeleteitemscontent
        description: Microsoft Graph Delete content for the navigation property items in shares
        call: shares-shares-driveitem.sharesdeleteitemscontent
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/shares/{shareddriveitem-id}/root
      name: shares-shareddriveitem-id-root
      description: REST surface for shares-sharedDriveItem-id-root.
      operations:
      - method: GET
        name: sharesgetroot
        description: Microsoft Graph Get root from shares
        call: shares-shares-driveitem.sharesgetroot
        with:
          $select: rest.$select
          $expand: rest.$expand
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/shares/{shareddriveitem-id}/root/content
      name: shares-shareddriveitem-id-root-content
      description: REST surface for shares-sharedDriveItem-id-root-content.
      operations:
      - method: GET
        name: sharesgetrootcontent
        description: Microsoft Graph Get content for the navigation property root from shares
        call: shares-shares-driveitem.sharesgetrootcontent
        with:
          $format: rest.$format
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: sharesupdaterootcontent
        description: Microsoft Graph Update content for the navigation property root in shares
        call: shares-shares-driveitem.sharesupdaterootcontent
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: sharesdeleterootcontent
        description: Microsoft Graph Delete content for the navigation property root in shares
        call: shares-shares-driveitem.sharesdeleterootcontent
        with:
          If-Match: rest.If-Match
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: shares-shares-driveitem-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph Shares — shares.driveItem. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: microsoft-graph-accessing-shared-driveitems
      description: Microsoft Graph Accessing shared DriveItems
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: shares-shares-driveitem.sharesgetdriveitem
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-content-navigation
      description: Microsoft Graph Get content for the navigation property driveItem from shares
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: shares-shares-driveitem.sharesgetdriveitemcontent
      with:
        $format: tools.$format
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-update-content-navigation
      description: Microsoft Graph Update content for the navigation property driveItem in shares
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: shares-shares-driveitem.sharesupdatedriveitemcontent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-delete-content-navigation
      description: Microsoft Graph Delete content for the navigation property driveItem in shares
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: shares-shares-driveitem.sharesdeletedriveitemcontent
      with:
        If-Match: tools.If-Match
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-items-shares
      description: Microsoft Graph Get items from shares
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: shares-shares-driveitem.shareslistitems
      with:
        $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: shares-shares-driveitem.sharesitemsgetcount245c
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-items-shares-2
      description: Microsoft Graph Get items from shares
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: shares-shares-driveitem.sharesgetitems
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-content-navigation-2
      description: Microsoft Graph Get content for the navigation property items from shares
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: shares-shares-driveitem.sharesgetitemscontent
      with:
        $format: tools.$format
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-update-content-navigation-2
      description: Microsoft Graph Update content for the navigation property items in shares
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: shares-shares-driveitem.sharesupdateitemscontent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-delete-content-navigation-2
      description: Microsoft Graph Delete content for the navigation property items in shares
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: shares-shares-driveitem.sharesdeleteitemscontent
      with:
        If-Match: tools.If-Match
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-root-shares
      description: Microsoft Graph Get root from shares
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: shares-shares-driveitem.sharesgetroot
      with:
        $select: tools.$select
        $expand: tools.$expand
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-get-content-navigation-3
      description: Microsoft Graph Get content for the navigation property root from shares
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: shares-shares-driveitem.sharesgetrootcontent
      with:
        $format: tools.$format
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-update-content-navigation-3
      description: Microsoft Graph Update content for the navigation property root in shares
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: shares-shares-driveitem.sharesupdaterootcontent
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-graph-delete-content-navigation-3
      description: Microsoft Graph Delete content for the navigation property root in shares
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: shares-shares-driveitem.sharesdeleterootcontent
      with:
        If-Match: tools.If-Match
      outputParameters:
      - type: object
        mapping: $.