Microsoft Outlook · Capability

Microsoft Outlook Microsoft Graph Mail API — Attachments

Microsoft Outlook Microsoft Graph Mail API — Attachments. 5 operations. Lead operation: Microsoft Outlook List Attachments. Self-contained Naftiko capability covering one Microsoft Outlook business surface.

Run with Naftiko Microsoft OutlookAttachments

What You Can Do

GET
Listattachments — Microsoft Outlook List Attachments
/v1/me/messages/{message-id}/attachments
POST
Addattachment — Microsoft Outlook Add Attachment
/v1/me/messages/{message-id}/attachments
POST
Createattachmentuploadsession — Microsoft Outlook Create Upload Session for Large Attachment
/v1/me/messages/{message-id}/attachments/createuploadsession
GET
Getattachment — Microsoft Outlook Get Attachment
/v1/me/messages/{message-id}/attachments/{attachment-id}
DELETE
Deleteattachment — Microsoft Outlook Delete Attachment
/v1/me/messages/{message-id}/attachments/{attachment-id}

MCP Tools

microsoft-outlook-list-attachments

Microsoft Outlook List Attachments

read-only idempotent
microsoft-outlook-add-attachment

Microsoft Outlook Add Attachment

microsoft-outlook-create-upload-session

Microsoft Outlook Create Upload Session for Large Attachment

microsoft-outlook-get-attachment

Microsoft Outlook Get Attachment

read-only idempotent
microsoft-outlook-delete-attachment

Microsoft Outlook Delete Attachment

idempotent

Capability Spec

microsoft-graph-mail-attachments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Outlook Microsoft Graph Mail API — Attachments
  description: 'Microsoft Outlook Microsoft Graph Mail API — Attachments. 5 operations. Lead operation: Microsoft Outlook
    List Attachments. Self-contained Naftiko capability covering one Microsoft Outlook business surface.'
  tags:
  - Microsoft Outlook
  - Attachments
  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-attachments
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Outlook 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: listattachments
        method: GET
        description: Microsoft Outlook List Attachments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addattachment
        method: POST
        description: Microsoft Outlook Add Attachment
        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-attachments-createUploadSession
      path: /me/messages/{message-id}/attachments/createUploadSession
      operations:
      - name: createattachmentuploadsession
        method: POST
        description: Microsoft Outlook Create Upload Session for Large Attachment
        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-attachments-attachment-id
      path: /me/messages/{message-id}/attachments/{attachment-id}
      operations:
      - name: getattachment
        method: GET
        description: Microsoft Outlook Get Attachment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteattachment
        method: DELETE
        description: Microsoft Outlook Delete Attachment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_OUTLOOK_API_KEY}}'
  exposes:
  - type: rest
    namespace: microsoft-graph-mail-attachments-rest
    port: 8080
    description: REST adapter for Microsoft Outlook 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: listattachments
        description: Microsoft Outlook List Attachments
        call: microsoft-graph-mail-attachments.listattachments
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addattachment
        description: Microsoft Outlook Add Attachment
        call: microsoft-graph-mail-attachments.addattachment
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/me/messages/{message-id}/attachments/createuploadsession
      name: me-messages-message-id-attachments-createuploadsession
      description: REST surface for me-messages-message-id-attachments-createUploadSession.
      operations:
      - method: POST
        name: createattachmentuploadsession
        description: Microsoft Outlook Create Upload Session for Large Attachment
        call: microsoft-graph-mail-attachments.createattachmentuploadsession
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/me/messages/{message-id}/attachments/{attachment-id}
      name: me-messages-message-id-attachments-attachment-id
      description: REST surface for me-messages-message-id-attachments-attachment-id.
      operations:
      - method: GET
        name: getattachment
        description: Microsoft Outlook Get Attachment
        call: microsoft-graph-mail-attachments.getattachment
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteattachment
        description: Microsoft Outlook Delete Attachment
        call: microsoft-graph-mail-attachments.deleteattachment
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-graph-mail-attachments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Outlook Microsoft Graph Mail API — Attachments. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: microsoft-outlook-list-attachments
      description: Microsoft Outlook List Attachments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-mail-attachments.listattachments
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-outlook-add-attachment
      description: Microsoft Outlook Add Attachment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-graph-mail-attachments.addattachment
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-outlook-create-upload-session
      description: Microsoft Outlook Create Upload Session for Large Attachment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-graph-mail-attachments.createattachmentuploadsession
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-outlook-get-attachment
      description: Microsoft Outlook Get Attachment
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-mail-attachments.getattachment
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-outlook-delete-attachment
      description: Microsoft Outlook Delete Attachment
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-graph-mail-attachments.deleteattachment
      outputParameters:
      - type: object
        mapping: $.