Microsoft SharePoint · Capability

SharePoint REST API — ListItems

SharePoint REST API — ListItems. 4 operations. Lead operation: Get list items. Self-contained Naftiko capability covering one Microsoft Sharepoint business surface.

Run with Naftiko Microsoft SharepointListItems

What You Can Do

GET
Getlistitems — Get list items
/v1/web/lists/getbytitle-listtitle/items
POST
Createlistitem — Create list item
/v1/web/lists/getbytitle-listtitle/items
GET
Getlistitem — Get list item
/v1/web/lists/getbytitle-listtitle/items-itemid
DELETE
Deletelistitem — Delete list item
/v1/web/lists/getbytitle-listtitle/items-itemid

MCP Tools

get-list-items

Get list items

read-only idempotent
create-list-item

Create list item

read-only
get-list-item

Get list item

read-only idempotent
delete-list-item

Delete list item

idempotent

Capability Spec

microsoft-sharepoint-listitems.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SharePoint REST API — ListItems
  description: 'SharePoint REST API — ListItems. 4 operations. Lead operation: Get list items. Self-contained Naftiko capability
    covering one Microsoft Sharepoint business surface.'
  tags:
  - Microsoft Sharepoint
  - ListItems
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_SHAREPOINT_API_KEY: MICROSOFT_SHAREPOINT_API_KEY
capability:
  consumes:
  - type: http
    namespace: microsoft-sharepoint-listitems
    baseUri: https://{tenant}.sharepoint.com/_api
    description: SharePoint REST API — ListItems business capability. Self-contained, no shared references.
    resources:
    - name: web-lists-getbytitle('{listTitle}')-items
      path: /web/lists/getbytitle('{listTitle}')/items
      operations:
      - name: getlistitems
        method: GET
        description: Get list items
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createlistitem
        method: POST
        description: Create list item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: web-lists-getbytitle('{listTitle}')-items({itemId})
      path: /web/lists/getbytitle('{listTitle}')/items({itemId})
      operations:
      - name: getlistitem
        method: GET
        description: Get list item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletelistitem
        method: DELETE
        description: Delete list item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_SHAREPOINT_API_KEY}}'
  exposes:
  - type: rest
    namespace: microsoft-sharepoint-listitems-rest
    port: 8080
    description: REST adapter for SharePoint REST API — ListItems. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/web/lists/getbytitle-listtitle/items
      name: web-lists-getbytitle-listtitle-items
      description: REST surface for web-lists-getbytitle('{listTitle}')-items.
      operations:
      - method: GET
        name: getlistitems
        description: Get list items
        call: microsoft-sharepoint-listitems.getlistitems
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createlistitem
        description: Create list item
        call: microsoft-sharepoint-listitems.createlistitem
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/web/lists/getbytitle-listtitle/items-itemid
      name: web-lists-getbytitle-listtitle-items-itemid
      description: REST surface for web-lists-getbytitle('{listTitle}')-items({itemId}).
      operations:
      - method: GET
        name: getlistitem
        description: Get list item
        call: microsoft-sharepoint-listitems.getlistitem
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletelistitem
        description: Delete list item
        call: microsoft-sharepoint-listitems.deletelistitem
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-sharepoint-listitems-mcp
    port: 9090
    transport: http
    description: MCP adapter for SharePoint REST API — ListItems. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-list-items
      description: Get list items
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-sharepoint-listitems.getlistitems
      outputParameters:
      - type: object
        mapping: $.
    - name: create-list-item
      description: Create list item
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: microsoft-sharepoint-listitems.createlistitem
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-list-item
      description: Get list item
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: microsoft-sharepoint-listitems.getlistitem
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-list-item
      description: Delete list item
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: microsoft-sharepoint-listitems.deletelistitem
      outputParameters:
      - type: object
        mapping: $.