naftiko: 1.0.0-alpha2 info: label: Microsoft Graph Shares — Shares.permission description: 'Microsoft Graph Shares — Shares.permission. 4 operations. Lead operation: Microsoft Graph Get permission from shares. Self-contained Naftiko capability covering one Microsoft Graph business surface.' tags: - Microsoft Graph - Shares.permission 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-permission baseUri: '' description: Microsoft Graph Shares — Shares.permission business capability. Self-contained, no shared references. resources: - name: shares-sharedDriveItem-id-permission path: /shares/{sharedDriveItem-id}/permission operations: - name: sharesgetpermission method: GET description: Microsoft Graph Get permission 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: sharesupdatepermission method: PATCH description: Microsoft Graph Update the navigation property permission in shares outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: sharesdeletepermission method: DELETE description: Microsoft Graph Delete navigation property permission for shares outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: If-Match in: header type: string description: ETag - name: shares-sharedDriveItem-id-permission-grant path: /shares/{sharedDriveItem-id}/permission/grant operations: - name: sharesshareddriveitempermissiongrant method: POST description: Microsoft Graph Invoke action grant outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true exposes: - type: rest namespace: shares-shares-permission-rest port: 8080 description: REST adapter for Microsoft Graph Shares — Shares.permission. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/shares/{shareddriveitem-id}/permission name: shares-shareddriveitem-id-permission description: REST surface for shares-sharedDriveItem-id-permission. operations: - method: GET name: sharesgetpermission description: Microsoft Graph Get permission from shares call: shares-shares-permission.sharesgetpermission with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: sharesupdatepermission description: Microsoft Graph Update the navigation property permission in shares call: shares-shares-permission.sharesupdatepermission with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: sharesdeletepermission description: Microsoft Graph Delete navigation property permission for shares call: shares-shares-permission.sharesdeletepermission with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - path: /v1/shares/{shareddriveitem-id}/permission/grant name: shares-shareddriveitem-id-permission-grant description: REST surface for shares-sharedDriveItem-id-permission-grant. operations: - method: POST name: sharesshareddriveitempermissiongrant description: Microsoft Graph Invoke action grant call: shares-shares-permission.sharesshareddriveitempermissiongrant with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: shares-shares-permission-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph Shares — Shares.permission. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-graph-get-permission-shares description: Microsoft Graph Get permission from shares hints: readOnly: true destructive: false idempotent: true call: shares-shares-permission.sharesgetpermission with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-update-navigation-property description: Microsoft Graph Update the navigation property permission in shares hints: readOnly: false destructive: false idempotent: true call: shares-shares-permission.sharesupdatepermission with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-delete-navigation-property description: Microsoft Graph Delete navigation property permission for shares hints: readOnly: false destructive: true idempotent: true call: shares-shares-permission.sharesdeletepermission with: If-Match: tools.If-Match outputParameters: - type: object mapping: $. - name: microsoft-graph-invoke-action-grant description: Microsoft Graph Invoke action grant hints: readOnly: false destructive: false idempotent: false call: shares-shares-permission.sharesshareddriveitempermissiongrant with: body: tools.body outputParameters: - type: object mapping: $.