Microsoft · Capability

Microsoft SharePoint REST API — Lists

Microsoft SharePoint REST API — Lists. 2 operations. Lead operation: Microsoft List all lists. Self-contained Naftiko capability covering one Microsoft business surface.

Run with Naftiko MicrosoftLists

What You Can Do

GET
Listlists — Microsoft List all lists
/v1/web/lists
GET
Getlistbytitle — Microsoft Get list by title
/v1/web/lists/getbytitle-listtitle

MCP Tools

microsoft-list-all-lists

Microsoft List all lists

read-only idempotent
microsoft-get-list-title

Microsoft Get list by title

read-only idempotent

Capability Spec

sharepoint-lists.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft SharePoint REST API — Lists
  description: 'Microsoft SharePoint REST API — Lists. 2 operations. Lead operation: Microsoft List all lists. Self-contained
    Naftiko capability covering one Microsoft business surface.'
  tags:
  - Microsoft
  - Lists
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_API_KEY: MICROSOFT_API_KEY
capability:
  consumes:
  - type: http
    namespace: sharepoint-lists
    baseUri: https://{tenant}.sharepoint.com/_api
    description: Microsoft SharePoint REST API — Lists business capability. Self-contained, no shared references.
    resources:
    - name: web-lists
      path: /web/lists
      operations:
      - name: listlists
        method: GET
        description: Microsoft List all lists
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: web-lists-getbytitle('{listTitle}')
      path: /web/lists/getbytitle('{listTitle}')
      operations:
      - name: getlistbytitle
        method: GET
        description: Microsoft Get list by title
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: listTitle
          in: path
          type: string
          description: Title of the list
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_API_KEY}}'
  exposes:
  - type: rest
    namespace: sharepoint-lists-rest
    port: 8080
    description: REST adapter for Microsoft SharePoint REST API — Lists. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/web/lists
      name: web-lists
      description: REST surface for web-lists.
      operations:
      - method: GET
        name: listlists
        description: Microsoft List all lists
        call: sharepoint-lists.listlists
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/web/lists/getbytitle-listtitle
      name: web-lists-getbytitle-listtitle
      description: REST surface for web-lists-getbytitle('{listTitle}').
      operations:
      - method: GET
        name: getlistbytitle
        description: Microsoft Get list by title
        call: sharepoint-lists.getlistbytitle
        with:
          listTitle: rest.listTitle
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: sharepoint-lists-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft SharePoint REST API — Lists. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: microsoft-list-all-lists
      description: Microsoft List all lists
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sharepoint-lists.listlists
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-get-list-title
      description: Microsoft Get list by title
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sharepoint-lists.getlistbytitle
      with:
        listTitle: tools.listTitle
      outputParameters:
      - type: object
        mapping: $.