Advanced Excel · Capability

Microsoft Graph Excel API — Worksheets

Microsoft Graph Excel API — Worksheets. 2 operations. Lead operation: Microsoft Excel List Worksheets. Self-contained Naftiko capability covering one Advanced Excel business surface.

Run with Naftiko Advanced ExcelWorksheets

What You Can Do

GET
Listworksheets — Microsoft Excel List Worksheets
/v1/me/drive/items/{driveitemid}/workbook/worksheets
POST
Addworksheet — Microsoft Excel Add Worksheet
/v1/me/drive/items/{driveitemid}/workbook/worksheets

MCP Tools

microsoft-excel-list-worksheets

Microsoft Excel List Worksheets

read-only idempotent
microsoft-excel-add-worksheet

Microsoft Excel Add Worksheet

Capability Spec

microsoft-graph-excel-worksheets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph Excel API — Worksheets
  description: 'Microsoft Graph Excel API — Worksheets. 2 operations. Lead operation: Microsoft Excel List Worksheets. Self-contained
    Naftiko capability covering one Advanced Excel business surface.'
  tags:
  - Advanced Excel
  - Worksheets
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ADVANCED_EXCEL_API_KEY: ADVANCED_EXCEL_API_KEY
capability:
  consumes:
  - type: http
    namespace: microsoft-graph-excel-worksheets
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph Excel API — Worksheets business capability. Self-contained, no shared references.
    resources:
    - name: me-drive-items-driveItemId-workbook-worksheets
      path: /me/drive/items/{driveItemId}/workbook/worksheets
      operations:
      - name: listworksheets
        method: GET
        description: Microsoft Excel List Worksheets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: driveItemId
          in: path
          type: string
          description: OneDrive item ID of the Excel workbook.
          required: true
      - name: addworksheet
        method: POST
        description: Microsoft Excel Add Worksheet
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: driveItemId
          in: path
          type: string
          description: OneDrive item ID of the Excel workbook.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.ADVANCED_EXCEL_API_KEY}}'
  exposes:
  - type: rest
    namespace: microsoft-graph-excel-worksheets-rest
    port: 8080
    description: REST adapter for Microsoft Graph Excel API — Worksheets. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/me/drive/items/{driveitemid}/workbook/worksheets
      name: me-drive-items-driveitemid-workbook-worksheets
      description: REST surface for me-drive-items-driveItemId-workbook-worksheets.
      operations:
      - method: GET
        name: listworksheets
        description: Microsoft Excel List Worksheets
        call: microsoft-graph-excel-worksheets.listworksheets
        with:
          driveItemId: rest.driveItemId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addworksheet
        description: Microsoft Excel Add Worksheet
        call: microsoft-graph-excel-worksheets.addworksheet
        with:
          driveItemId: rest.driveItemId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-graph-excel-worksheets-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph Excel API — Worksheets. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: microsoft-excel-list-worksheets
      description: Microsoft Excel List Worksheets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-graph-excel-worksheets.listworksheets
      with:
        driveItemId: tools.driveItemId
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-excel-add-worksheet
      description: Microsoft Excel Add Worksheet
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-graph-excel-worksheets.addworksheet
      with:
        driveItemId: tools.driveItemId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.