Microsoft Exchange · Capability

Microsoft Exchange Microsoft Graph Mail API — Messages

Microsoft Exchange Microsoft Graph Mail API — Messages. 17 operations. Lead operation: Microsoft Exchange List messages in mail folder. Self-contained Naftiko capability covering one Microsoft Exchange business surface.

Run with Naftiko Microsoft ExchangeMessages

What You Can Do

GET
Listmailfoldermessages — Microsoft Exchange List messages in mail folder
/v1/me/mailfolders/{mailfolder-id}/messages
POST
Createmessageinfolder — Microsoft Exchange Create message in folder
/v1/me/mailfolders/{mailfolder-id}/messages
GET
Listmessages — Microsoft Exchange List messages
/v1/me/messages
POST
Createdraftmessage — Microsoft Exchange Create draft message
/v1/me/messages
GET
Getmessage — Microsoft Exchange Get message
/v1/me/messages/{message-id}
PATCH
Updatemessage — Microsoft Exchange Update message
/v1/me/messages/{message-id}
DELETE
Deletemessage — Microsoft Exchange Delete message
/v1/me/messages/{message-id}
POST
Copymessage — Microsoft Exchange Copy message
/v1/me/messages/{message-id}/copy
POST
Createforwarddraft — Microsoft Exchange Create forward draft
/v1/me/messages/{message-id}/createforward
POST
Createreplydraft — Microsoft Exchange Create reply draft
/v1/me/messages/{message-id}/createreply
POST
Createreplyalldraft — Microsoft Exchange Create reply-all draft
/v1/me/messages/{message-id}/createreplyall
POST
Forwardmessage — Microsoft Exchange Forward message
/v1/me/messages/{message-id}/forward
POST
Movemessage — Microsoft Exchange Move message
/v1/me/messages/{message-id}/move
POST
Replytomessage — Microsoft Exchange Reply to message
/v1/me/messages/{message-id}/reply
POST
Replyalltomessage — Microsoft Exchange Reply all to message
/v1/me/messages/{message-id}/replyall
POST
Senddraftmessage — Microsoft Exchange Send draft message
/v1/me/messages/{message-id}/send
POST
Sendmail — Microsoft Exchange Send mail
/v1/me/sendmail

MCP Tools

microsoft-exchange-list-messages-mail

Microsoft Exchange List messages in mail folder

read-only idempotent
microsoft-exchange-create-message-folder

Microsoft Exchange Create message in folder

microsoft-exchange-list-messages

Microsoft Exchange List messages

read-only idempotent
microsoft-exchange-create-draft-message

Microsoft Exchange Create draft message

microsoft-exchange-get-message

Microsoft Exchange Get message

read-only idempotent
microsoft-exchange-update-message

Microsoft Exchange Update message

idempotent
microsoft-exchange-delete-message

Microsoft Exchange Delete message

idempotent
microsoft-exchange-copy-message

Microsoft Exchange Copy message

microsoft-exchange-create-forward-draft

Microsoft Exchange Create forward draft

microsoft-exchange-create-reply-draft

Microsoft Exchange Create reply draft

microsoft-exchange-create-reply-all

Microsoft Exchange Create reply-all draft

microsoft-exchange-forward-message

Microsoft Exchange Forward message

microsoft-exchange-move-message

Microsoft Exchange Move message

microsoft-exchange-reply-message

Microsoft Exchange Reply to message

microsoft-exchange-reply-all-message

Microsoft Exchange Reply all to message

microsoft-exchange-send-draft-message

Microsoft Exchange Send draft message

microsoft-exchange-send-mail

Microsoft Exchange Send mail

Capability Spec

graph-mail-messages.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Exchange Microsoft Graph Mail API — Messages
  description: 'Microsoft Exchange Microsoft Graph Mail API — Messages. 17 operations. Lead operation: Microsoft Exchange
    List messages in mail folder. Self-contained Naftiko capability covering one Microsoft Exchange business surface.'
  tags:
  - Microsoft Exchange
  - Messages
  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-messages
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Exchange 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: listmailfoldermessages
        method: GET
        description: Microsoft Exchange List messages in mail folder
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createmessageinfolder
        method: POST
        description: Microsoft Exchange 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 Exchange List messages
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createdraftmessage
        method: POST
        description: Microsoft Exchange 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 Exchange Get message
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatemessage
        method: PATCH
        description: Microsoft Exchange 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 Exchange 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 Exchange 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 Exchange Create forward draft
        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 Exchange Create reply draft
        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 Exchange Create reply-all draft
        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 Exchange 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 Exchange 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 Exchange 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 Exchange 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 Exchange Send draft message
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: me-sendMail
      path: /me/sendMail
      operations:
      - name: sendmail
        method: POST
        description: Microsoft Exchange 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_EXCHANGE_API_KEY}}'
  exposes:
  - type: rest
    namespace: graph-mail-messages-rest
    port: 8080
    description: REST adapter for Microsoft Exchange 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: listmailfoldermessages
        description: Microsoft Exchange List messages in mail folder
        call: graph-mail-messages.listmailfoldermessages
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createmessageinfolder
        description: Microsoft Exchange Create message in folder
        call: 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 Exchange List messages
        call: graph-mail-messages.listmessages
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createdraftmessage
        description: Microsoft Exchange Create draft message
        call: 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 Exchange Get message
        call: graph-mail-messages.getmessage
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updatemessage
        description: Microsoft Exchange Update message
        call: graph-mail-messages.updatemessage
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletemessage
        description: Microsoft Exchange Delete message
        call: 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 Exchange Copy message
        call: 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 Exchange Create forward draft
        call: 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 Exchange Create reply draft
        call: 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 Exchange Create reply-all draft
        call: 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 Exchange Forward message
        call: 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 Exchange Move message
        call: 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 Exchange Reply to message
        call: 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 Exchange Reply all to message
        call: 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 Exchange Send draft message
        call: 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 Exchange Send mail
        call: graph-mail-messages.sendmail
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: graph-mail-messages-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Exchange Microsoft Graph Mail API — Messages. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: microsoft-exchange-list-messages-mail
      description: Microsoft Exchange List messages in mail folder
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: graph-mail-messages.listmailfoldermessages
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-create-message-folder
      description: Microsoft Exchange Create message in folder
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.createmessageinfolder
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-list-messages
      description: Microsoft Exchange List messages
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: graph-mail-messages.listmessages
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-create-draft-message
      description: Microsoft Exchange Create draft message
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.createdraftmessage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-get-message
      description: Microsoft Exchange Get message
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: graph-mail-messages.getmessage
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-update-message
      description: Microsoft Exchange Update message
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: graph-mail-messages.updatemessage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-delete-message
      description: Microsoft Exchange Delete message
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: graph-mail-messages.deletemessage
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-copy-message
      description: Microsoft Exchange Copy message
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.copymessage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-create-forward-draft
      description: Microsoft Exchange Create forward draft
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.createforwarddraft
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-create-reply-draft
      description: Microsoft Exchange Create reply draft
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.createreplydraft
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-create-reply-all
      description: Microsoft Exchange Create reply-all draft
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.createreplyalldraft
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-forward-message
      description: Microsoft Exchange Forward message
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.forwardmessage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-move-message
      description: Microsoft Exchange Move message
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.movemessage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-reply-message
      description: Microsoft Exchange Reply to message
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.replytomessage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-reply-all-message
      description: Microsoft Exchange Reply all to message
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.replyalltomessage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-send-draft-message
      description: Microsoft Exchange Send draft message
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.senddraftmessage
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-exchange-send-mail
      description: Microsoft Exchange Send mail
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-mail-messages.sendmail
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.