Microsoft Excel · Capability

Microsoft Graph Excel API — Ranges

Microsoft Graph Excel API — Ranges. 2 operations. Lead operation: Microsoft Excel Get Range. Self-contained Naftiko capability covering one Microsoft Excel business surface.

Run with Naftiko Microsoft ExcelRanges

What You Can Do

GET
Getrange — Microsoft Excel Get Range
/v1/me/drive/items/{item-id}/workbook/worksheets/{worksheet-id-or-name}/range-address-address
PATCH
Updaterange — Microsoft Excel Update Range
/v1/me/drive/items/{item-id}/workbook/worksheets/{worksheet-id-or-name}/range-address-address

MCP Tools

microsoft-excel-get-range

Microsoft Excel Get Range

read-only idempotent
microsoft-excel-update-range

Microsoft Excel Update Range

idempotent

Capability Spec

graph-ranges.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph Excel API — Ranges
  description: 'Microsoft Graph Excel API — Ranges. 2 operations. Lead operation: Microsoft Excel Get Range. Self-contained
    Naftiko capability covering one Microsoft Excel business surface.'
  tags:
  - Microsoft Excel
  - Ranges
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_EXCEL_API_KEY: MICROSOFT_EXCEL_API_KEY
capability:
  consumes:
  - type: http
    namespace: graph-ranges
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph Excel API — Ranges business capability. Self-contained, no shared references.
    resources:
    - name: me-drive-items-item-id-workbook-worksheets-worksheet-id-or-name-range(address='{
      path: /me/drive/items/{item-id}/workbook/worksheets/{worksheet-id-or-name}/range(address='{address}')
      operations:
      - name: getrange
        method: GET
        description: Microsoft Excel Get Range
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: item-id
          in: path
          type: string
          description: The ID of the workbook file.
          required: true
        - name: worksheet-id-or-name
          in: path
          type: string
          description: Worksheet ID or name.
          required: true
        - name: address
          in: path
          type: string
          description: Cell range address in A1 notation.
          required: true
        - name: workbook-session-id
          in: header
          type: string
          description: Workbook session ID.
      - name: updaterange
        method: PATCH
        description: Microsoft Excel Update Range
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: item-id
          in: path
          type: string
          description: The ID of the workbook file.
          required: true
        - name: worksheet-id-or-name
          in: path
          type: string
          description: Worksheet ID or name.
          required: true
        - name: address
          in: path
          type: string
          description: Cell range address in A1 notation.
          required: true
        - name: workbook-session-id
          in: header
          type: string
          description: Workbook session ID.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_EXCEL_API_KEY}}'
  exposes:
  - type: rest
    namespace: graph-ranges-rest
    port: 8080
    description: REST adapter for Microsoft Graph Excel API — Ranges. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/me/drive/items/{item-id}/workbook/worksheets/{worksheet-id-or-name}/range-address-address
      name: me-drive-items-item-id-workbook-worksheets-worksheet-id-or-name-range-address
      description: REST surface for me-drive-items-item-id-workbook-worksheets-worksheet-id-or-name-range(address='{.
      operations:
      - method: GET
        name: getrange
        description: Microsoft Excel Get Range
        call: graph-ranges.getrange
        with:
          item-id: rest.item-id
          worksheet-id-or-name: rest.worksheet-id-or-name
          address: rest.address
          workbook-session-id: rest.workbook-session-id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updaterange
        description: Microsoft Excel Update Range
        call: graph-ranges.updaterange
        with:
          item-id: rest.item-id
          worksheet-id-or-name: rest.worksheet-id-or-name
          address: rest.address
          workbook-session-id: rest.workbook-session-id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: graph-ranges-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph Excel API — Ranges. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: microsoft-excel-get-range
      description: Microsoft Excel Get Range
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: graph-ranges.getrange
      with:
        item-id: tools.item-id
        worksheet-id-or-name: tools.worksheet-id-or-name
        address: tools.address
        workbook-session-id: tools.workbook-session-id
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-excel-update-range
      description: Microsoft Excel Update Range
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: graph-ranges.updaterange
      with:
        item-id: tools.item-id
        worksheet-id-or-name: tools.worksheet-id-or-name
        address: tools.address
        workbook-session-id: tools.workbook-session-id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.