naftiko: 1.0.0-alpha2 info: label: Microsoft Exchange Microsoft Graph Mail API — Attachments description: 'Microsoft Exchange Microsoft Graph Mail API — Attachments. 2 operations. Lead operation: Microsoft Exchange List message attachments. Self-contained Naftiko capability covering one Microsoft Exchange business surface.' tags: - Microsoft Exchange - Attachments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_EXCHANGE_API_KEY: MICROSOFT_EXCHANGE_API_KEY capability: consumes: - type: http namespace: graph-mail-attachments baseUri: https://graph.microsoft.com/v1.0 description: Microsoft Exchange Microsoft Graph Mail API — Attachments business capability. Self-contained, no shared references. resources: - name: me-messages-message-id-attachments path: /me/messages/{message-id}/attachments operations: - name: listmessageattachments method: GET description: Microsoft Exchange List message attachments outputRawFormat: json outputParameters: - name: result type: object value: $. - name: addmessageattachment method: POST description: Microsoft Exchange Add attachment to message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.MICROSOFT_EXCHANGE_API_KEY}}' exposes: - type: rest namespace: graph-mail-attachments-rest port: 8080 description: REST adapter for Microsoft Exchange Microsoft Graph Mail API — Attachments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/me/messages/{message-id}/attachments name: me-messages-message-id-attachments description: REST surface for me-messages-message-id-attachments. operations: - method: GET name: listmessageattachments description: Microsoft Exchange List message attachments call: graph-mail-attachments.listmessageattachments outputParameters: - type: object mapping: $. - method: POST name: addmessageattachment description: Microsoft Exchange Add attachment to message call: graph-mail-attachments.addmessageattachment with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: graph-mail-attachments-mcp port: 9090 transport: http description: MCP adapter for Microsoft Exchange Microsoft Graph Mail API — Attachments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-exchange-list-message-attachments description: Microsoft Exchange List message attachments hints: readOnly: true destructive: false idempotent: true call: graph-mail-attachments.listmessageattachments outputParameters: - type: object mapping: $. - name: microsoft-exchange-add-attachment-message description: Microsoft Exchange Add attachment to message hints: readOnly: false destructive: false idempotent: false call: graph-mail-attachments.addmessageattachment with: body: tools.body outputParameters: - type: object mapping: $.