naftiko: 1.0.0-alpha2 info: label: Microsoft Outlook Microsoft Graph Mail API — Messages description: 'Microsoft Outlook Microsoft Graph Mail API — Messages. 17 operations. Lead operation: Microsoft Outlook List Messages in Folder. Self-contained Naftiko capability covering one Microsoft Outlook business surface.' tags: - Microsoft Outlook - Messages created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_OUTLOOK_API_KEY: MICROSOFT_OUTLOOK_API_KEY capability: consumes: - type: http namespace: microsoft-graph-mail-messages baseUri: https://graph.microsoft.com/v1.0 description: Microsoft Outlook Microsoft Graph Mail API — Messages business capability. Self-contained, no shared references. resources: - name: me-mailFolders-mailFolder-id-messages path: /me/mailFolders/{mailFolder-id}/messages operations: - name: listmessagesinfolder method: GET description: Microsoft Outlook List Messages in Folder outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createmessageinfolder method: POST description: Microsoft Outlook Create Message in Folder outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: me-messages path: /me/messages operations: - name: listmessages method: GET description: Microsoft Outlook List Messages outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createdraftmessage method: POST description: Microsoft Outlook Create Draft Message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: me-messages-message-id path: /me/messages/{message-id} operations: - name: getmessage method: GET description: Microsoft Outlook Get Message outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatemessage method: PATCH description: Microsoft Outlook Update Message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletemessage method: DELETE description: Microsoft Outlook Delete Message outputRawFormat: json outputParameters: - name: result type: object value: $. - name: me-messages-message-id-copy path: /me/messages/{message-id}/copy operations: - name: copymessage method: POST description: Microsoft Outlook Copy Message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: me-messages-message-id-createForward path: /me/messages/{message-id}/createForward operations: - name: createforwarddraft method: POST description: Microsoft Outlook Create Draft to Forward Message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: me-messages-message-id-createReply path: /me/messages/{message-id}/createReply operations: - name: createreplydraft method: POST description: Microsoft Outlook Create Draft to Reply outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: me-messages-message-id-createReplyAll path: /me/messages/{message-id}/createReplyAll operations: - name: createreplyalldraft method: POST description: Microsoft Outlook Create Draft to Reply All outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: me-messages-message-id-forward path: /me/messages/{message-id}/forward operations: - name: forwardmessage method: POST description: Microsoft Outlook Forward Message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: me-messages-message-id-move path: /me/messages/{message-id}/move operations: - name: movemessage method: POST description: Microsoft Outlook Move Message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: me-messages-message-id-reply path: /me/messages/{message-id}/reply operations: - name: replytomessage method: POST description: Microsoft Outlook Reply to Message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: me-messages-message-id-replyAll path: /me/messages/{message-id}/replyAll operations: - name: replyalltomessage method: POST description: Microsoft Outlook Reply All to Message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: me-messages-message-id-send path: /me/messages/{message-id}/send operations: - name: senddraftmessage method: POST description: Microsoft Outlook Send Draft Message outputRawFormat: json outputParameters: - name: result type: object value: $. - name: me-sendMail path: /me/sendMail operations: - name: sendmail method: POST description: Microsoft Outlook Send Mail 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_OUTLOOK_API_KEY}}' exposes: - type: rest namespace: microsoft-graph-mail-messages-rest port: 8080 description: REST adapter for Microsoft Outlook Microsoft Graph Mail API — Messages. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/me/mailfolders/{mailfolder-id}/messages name: me-mailfolders-mailfolder-id-messages description: REST surface for me-mailFolders-mailFolder-id-messages. operations: - method: GET name: listmessagesinfolder description: Microsoft Outlook List Messages in Folder call: microsoft-graph-mail-messages.listmessagesinfolder outputParameters: - type: object mapping: $. - method: POST name: createmessageinfolder description: Microsoft Outlook Create Message in Folder call: microsoft-graph-mail-messages.createmessageinfolder with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/messages name: me-messages description: REST surface for me-messages. operations: - method: GET name: listmessages description: Microsoft Outlook List Messages call: microsoft-graph-mail-messages.listmessages outputParameters: - type: object mapping: $. - method: POST name: createdraftmessage description: Microsoft Outlook Create Draft Message call: microsoft-graph-mail-messages.createdraftmessage with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/messages/{message-id} name: me-messages-message-id description: REST surface for me-messages-message-id. operations: - method: GET name: getmessage description: Microsoft Outlook Get Message call: microsoft-graph-mail-messages.getmessage outputParameters: - type: object mapping: $. - method: PATCH name: updatemessage description: Microsoft Outlook Update Message call: microsoft-graph-mail-messages.updatemessage with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletemessage description: Microsoft Outlook Delete Message call: microsoft-graph-mail-messages.deletemessage outputParameters: - type: object mapping: $. - path: /v1/me/messages/{message-id}/copy name: me-messages-message-id-copy description: REST surface for me-messages-message-id-copy. operations: - method: POST name: copymessage description: Microsoft Outlook Copy Message call: microsoft-graph-mail-messages.copymessage with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/messages/{message-id}/createforward name: me-messages-message-id-createforward description: REST surface for me-messages-message-id-createForward. operations: - method: POST name: createforwarddraft description: Microsoft Outlook Create Draft to Forward Message call: microsoft-graph-mail-messages.createforwarddraft with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/messages/{message-id}/createreply name: me-messages-message-id-createreply description: REST surface for me-messages-message-id-createReply. operations: - method: POST name: createreplydraft description: Microsoft Outlook Create Draft to Reply call: microsoft-graph-mail-messages.createreplydraft with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/messages/{message-id}/createreplyall name: me-messages-message-id-createreplyall description: REST surface for me-messages-message-id-createReplyAll. operations: - method: POST name: createreplyalldraft description: Microsoft Outlook Create Draft to Reply All call: microsoft-graph-mail-messages.createreplyalldraft with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/messages/{message-id}/forward name: me-messages-message-id-forward description: REST surface for me-messages-message-id-forward. operations: - method: POST name: forwardmessage description: Microsoft Outlook Forward Message call: microsoft-graph-mail-messages.forwardmessage with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/messages/{message-id}/move name: me-messages-message-id-move description: REST surface for me-messages-message-id-move. operations: - method: POST name: movemessage description: Microsoft Outlook Move Message call: microsoft-graph-mail-messages.movemessage with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/messages/{message-id}/reply name: me-messages-message-id-reply description: REST surface for me-messages-message-id-reply. operations: - method: POST name: replytomessage description: Microsoft Outlook Reply to Message call: microsoft-graph-mail-messages.replytomessage with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/messages/{message-id}/replyall name: me-messages-message-id-replyall description: REST surface for me-messages-message-id-replyAll. operations: - method: POST name: replyalltomessage description: Microsoft Outlook Reply All to Message call: microsoft-graph-mail-messages.replyalltomessage with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/me/messages/{message-id}/send name: me-messages-message-id-send description: REST surface for me-messages-message-id-send. operations: - method: POST name: senddraftmessage description: Microsoft Outlook Send Draft Message call: microsoft-graph-mail-messages.senddraftmessage outputParameters: - type: object mapping: $. - path: /v1/me/sendmail name: me-sendmail description: REST surface for me-sendMail. operations: - method: POST name: sendmail description: Microsoft Outlook Send Mail call: microsoft-graph-mail-messages.sendmail with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: microsoft-graph-mail-messages-mcp port: 9090 transport: http description: MCP adapter for Microsoft Outlook Microsoft Graph Mail API — Messages. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-outlook-list-messages-folder description: Microsoft Outlook List Messages in Folder hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-mail-messages.listmessagesinfolder outputParameters: - type: object mapping: $. - name: microsoft-outlook-create-message-folder description: Microsoft Outlook Create Message in Folder hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.createmessageinfolder with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-outlook-list-messages description: Microsoft Outlook List Messages hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-mail-messages.listmessages outputParameters: - type: object mapping: $. - name: microsoft-outlook-create-draft-message description: Microsoft Outlook Create Draft Message hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.createdraftmessage with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-outlook-get-message description: Microsoft Outlook Get Message hints: readOnly: true destructive: false idempotent: true call: microsoft-graph-mail-messages.getmessage outputParameters: - type: object mapping: $. - name: microsoft-outlook-update-message description: Microsoft Outlook Update Message hints: readOnly: false destructive: false idempotent: true call: microsoft-graph-mail-messages.updatemessage with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-outlook-delete-message description: Microsoft Outlook Delete Message hints: readOnly: false destructive: true idempotent: true call: microsoft-graph-mail-messages.deletemessage outputParameters: - type: object mapping: $. - name: microsoft-outlook-copy-message description: Microsoft Outlook Copy Message hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.copymessage with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-outlook-create-draft-forward description: Microsoft Outlook Create Draft to Forward Message hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.createforwarddraft with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-outlook-create-draft-reply description: Microsoft Outlook Create Draft to Reply hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.createreplydraft with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-outlook-create-draft-reply-2 description: Microsoft Outlook Create Draft to Reply All hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.createreplyalldraft with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-outlook-forward-message description: Microsoft Outlook Forward Message hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.forwardmessage with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-outlook-move-message description: Microsoft Outlook Move Message hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.movemessage with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-outlook-reply-message description: Microsoft Outlook Reply to Message hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.replytomessage with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-outlook-reply-all-message description: Microsoft Outlook Reply All to Message hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.replyalltomessage with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-outlook-send-draft-message description: Microsoft Outlook Send Draft Message hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.senddraftmessage outputParameters: - type: object mapping: $. - name: microsoft-outlook-send-mail description: Microsoft Outlook Send Mail hints: readOnly: false destructive: false idempotent: false call: microsoft-graph-mail-messages.sendmail with: body: tools.body outputParameters: - type: object mapping: $.