Microsoft Project · Capability

Microsoft Project Online REST API — Phases

Microsoft Project Online REST API — Phases. 4 operations. Lead operation: Microsoft Project List Phases. Self-contained Naftiko capability covering one Microsoft Project business surface.

Run with Naftiko Microsoft ProjectPhases

What You Can Do

GET
Listphases — Microsoft Project List Phases
/v1/phases
POST
Createphase — Microsoft Project Create Phase
/v1/phases
GET
Getphase — Microsoft Project Get Phase
/v1/phases-phaseid
DELETE
Deletephase — Microsoft Project Delete Phase
/v1/phases-phaseid

MCP Tools

microsoft-project-list-phases

Microsoft Project List Phases

read-only idempotent
microsoft-project-create-phase

Microsoft Project Create Phase

microsoft-project-get-phase

Microsoft Project Get Phase

read-only idempotent
microsoft-project-delete-phase

Microsoft Project Delete Phase

idempotent

Capability Spec

rest-phases.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Project Online REST API — Phases
  description: 'Microsoft Project Online REST API — Phases. 4 operations. Lead operation: Microsoft Project List Phases. Self-contained
    Naftiko capability covering one Microsoft Project business surface.'
  tags:
  - Microsoft Project
  - Phases
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_PROJECT_API_KEY: MICROSOFT_PROJECT_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-phases
    baseUri: https://{tenant}.sharepoint.com/sites/pwa/_api/ProjectServer
    description: Microsoft Project Online REST API — Phases business capability. Self-contained, no shared references.
    resources:
    - name: Phases
      path: /Phases
      operations:
      - name: listphases
        method: GET
        description: Microsoft Project List Phases
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createphase
        method: POST
        description: Microsoft Project Create Phase
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: Phases('{phaseId}')
      path: /Phases('{phaseId}')
      operations:
      - name: getphase
        method: GET
        description: Microsoft Project Get Phase
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletephase
        method: DELETE
        description: Microsoft Project Delete Phase
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_PROJECT_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-phases-rest
    port: 8080
    description: REST adapter for Microsoft Project Online REST API — Phases. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/phases
      name: phases
      description: REST surface for Phases.
      operations:
      - method: GET
        name: listphases
        description: Microsoft Project List Phases
        call: rest-phases.listphases
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createphase
        description: Microsoft Project Create Phase
        call: rest-phases.createphase
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/phases-phaseid
      name: phases-phaseid
      description: REST surface for Phases('{phaseId}').
      operations:
      - method: GET
        name: getphase
        description: Microsoft Project Get Phase
        call: rest-phases.getphase
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletephase
        description: Microsoft Project Delete Phase
        call: rest-phases.deletephase
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-phases-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Project Online REST API — Phases. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: microsoft-project-list-phases
      description: Microsoft Project List Phases
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-phases.listphases
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-project-create-phase
      description: Microsoft Project Create Phase
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-phases.createphase
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-project-get-phase
      description: Microsoft Project Get Phase
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-phases.getphase
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-project-delete-phase
      description: Microsoft Project Delete Phase
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: rest-phases.deletephase
      outputParameters:
      - type: object
        mapping: $.