naftiko: 1.0.0-alpha2 info: label: Microsoft Graph Word API — Drive Items description: 'Microsoft Graph Word API — Drive Items. 9 operations. Lead operation: Microsoft Word Get Drive Item. Self-contained Naftiko capability covering one Microsoft Word business surface.' tags: - Microsoft Word - Drive Items created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_WORD_API_KEY: MICROSOFT_WORD_API_KEY capability: consumes: - type: http namespace: graph-drive-items baseUri: https://graph.microsoft.com/v1.0 description: Microsoft Graph Word API — Drive Items business capability. Self-contained, no shared references. resources: - name: me-drive-items-item-id path: /me/drive/items/{item-id} operations: - name: getdriveitem method: GET description: Microsoft Word Get Drive Item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $select in: query type: string description: Select specific properties to return. - name: $expand in: query type: string description: Expand related entities inline. - name: updatedriveitem method: PATCH description: Microsoft Word Update Drive Item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletedriveitem method: DELETE description: Microsoft Word Delete Drive Item outputRawFormat: json outputParameters: - name: result type: object value: $. - name: me-drive-items-item-id-children path: /me/drive/items/{item-id}/children operations: - name: listchildren method: GET description: Microsoft Word List Children outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $top in: query type: integer description: The number of items to return in a result set. - name: $orderby in: query type: string description: Sort order for the result set. - name: $select in: query type: string description: Select specific properties to return. - name: $skipToken in: query type: string description: Paging token for the next page of results. - name: createfolder method: POST description: Microsoft Word Create Folder outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: me-drive-items-item-id-copy path: /me/drive/items/{item-id}/copy operations: - name: copydriveitem method: POST description: Microsoft Word Copy Drive Item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: me-drive-items-item-id-delta path: /me/drive/items/{item-id}/delta operations: - name: trackchanges method: GET description: Microsoft Word Track Changes outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $token in: query type: string description: Delta token for tracking changes since last query. - name: me-drive-items-item-id-move path: /me/drive/items/{item-id}/move operations: - name: movedriveitem method: PATCH description: Microsoft Word Move Drive Item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: me-drive-items-item-id-preview path: /me/drive/items/{item-id}/preview operations: - name: previewdriveitem method: POST description: Microsoft Word Preview Drive Item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.MICROSOFT_WORD_API_KEY}}' exposes: - type: rest namespace: graph-drive-items-rest port: 8080 description: REST adapter for Microsoft Graph Word API — Drive Items. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/me/drive/items/{item-id} name: me-drive-items-item-id description: REST surface for me-drive-items-item-id. operations: - method: GET name: getdriveitem description: Microsoft Word Get Drive Item call: graph-drive-items.getdriveitem with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: updatedriveitem description: Microsoft Word Update Drive Item call: graph-drive-items.updatedriveitem with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletedriveitem description: Microsoft Word Delete Drive Item call: graph-drive-items.deletedriveitem outputParameters: - type: object mapping: $. - path: /v1/me/drive/items/{item-id}/children name: me-drive-items-item-id-children description: REST surface for me-drive-items-item-id-children. operations: - method: GET name: listchildren description: Microsoft Word List Children call: graph-drive-items.listchildren with: $top: rest.$top $orderby: rest.$orderby $select: rest.$select $skipToken: rest.$skipToken outputParameters: - type: object mapping: $. - method: POST name: createfolder description: Microsoft Word Create Folder call: graph-drive-items.createfolder with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/drive/items/{item-id}/copy name: me-drive-items-item-id-copy description: REST surface for me-drive-items-item-id-copy. operations: - method: POST name: copydriveitem description: Microsoft Word Copy Drive Item call: graph-drive-items.copydriveitem with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/drive/items/{item-id}/delta name: me-drive-items-item-id-delta description: REST surface for me-drive-items-item-id-delta. operations: - method: GET name: trackchanges description: Microsoft Word Track Changes call: graph-drive-items.trackchanges with: $token: rest.$token outputParameters: - type: object mapping: $. - path: /v1/me/drive/items/{item-id}/move name: me-drive-items-item-id-move description: REST surface for me-drive-items-item-id-move. operations: - method: PATCH name: movedriveitem description: Microsoft Word Move Drive Item call: graph-drive-items.movedriveitem with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/drive/items/{item-id}/preview name: me-drive-items-item-id-preview description: REST surface for me-drive-items-item-id-preview. operations: - method: POST name: previewdriveitem description: Microsoft Word Preview Drive Item call: graph-drive-items.previewdriveitem with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: graph-drive-items-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph Word API — Drive Items. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-word-get-drive-item description: Microsoft Word Get Drive Item hints: readOnly: true destructive: false idempotent: true call: graph-drive-items.getdriveitem with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-word-update-drive-item description: Microsoft Word Update Drive Item hints: readOnly: false destructive: false idempotent: true call: graph-drive-items.updatedriveitem with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-word-delete-drive-item description: Microsoft Word Delete Drive Item hints: readOnly: false destructive: true idempotent: true call: graph-drive-items.deletedriveitem outputParameters: - type: object mapping: $. - name: microsoft-word-list-children description: Microsoft Word List Children hints: readOnly: true destructive: false idempotent: true call: graph-drive-items.listchildren with: $top: tools.$top $orderby: tools.$orderby $select: tools.$select $skipToken: tools.$skipToken outputParameters: - type: object mapping: $. - name: microsoft-word-create-folder description: Microsoft Word Create Folder hints: readOnly: false destructive: false idempotent: false call: graph-drive-items.createfolder with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-word-copy-drive-item description: Microsoft Word Copy Drive Item hints: readOnly: false destructive: false idempotent: false call: graph-drive-items.copydriveitem with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-word-track-changes description: Microsoft Word Track Changes hints: readOnly: true destructive: false idempotent: true call: graph-drive-items.trackchanges with: $token: tools.$token outputParameters: - type: object mapping: $. - name: microsoft-word-move-drive-item description: Microsoft Word Move Drive Item hints: readOnly: false destructive: false idempotent: true call: graph-drive-items.movedriveitem with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-word-preview-drive-item description: Microsoft Word Preview Drive Item hints: readOnly: false destructive: false idempotent: false call: graph-drive-items.previewdriveitem with: body: tools.body outputParameters: - type: object mapping: $.