Microsoft · Capability

Microsoft Graph API — Teams

Microsoft Graph API — Teams. 8 operations. Lead operation: Microsoft List teams. Self-contained Naftiko capability covering one Microsoft business surface.

Run with Naftiko MicrosoftTeams

What You Can Do

GET
Listteams — Microsoft List teams
/v1/teams
GET
Getteam — Microsoft Get team
/v1/teams/{team-id}
PATCH
Updateteam — Microsoft Update team
/v1/teams/{team-id}
DELETE
Deleteteam — Microsoft Delete team
/v1/teams/{team-id}
GET
Listchannels — Microsoft List channels
/v1/teams/{team-id}/channels
POST
Createchannel — Microsoft Create channel
/v1/teams/{team-id}/channels
GET
Listchannelmessages — Microsoft List channel messages
/v1/teams/{team-id}/channels/{channel-id}/messages
POST
Sendchannelmessage — Microsoft Send channel message
/v1/teams/{team-id}/channels/{channel-id}/messages

MCP Tools

microsoft-list-teams

Microsoft List teams

read-only idempotent
microsoft-get-team

Microsoft Get team

read-only idempotent
microsoft-update-team

Microsoft Update team

idempotent
microsoft-delete-team

Microsoft Delete team

idempotent
microsoft-list-channels

Microsoft List channels

read-only idempotent
microsoft-create-channel

Microsoft Create channel

microsoft-list-channel-messages

Microsoft List channel messages

read-only idempotent
microsoft-send-channel-message

Microsoft Send channel message

Capability Spec

graph-teams.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Graph API — Teams
  description: 'Microsoft Graph API — Teams. 8 operations. Lead operation: Microsoft List teams. Self-contained Naftiko capability
    covering one Microsoft business surface.'
  tags:
  - Microsoft
  - Teams
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_API_KEY: MICROSOFT_API_KEY
capability:
  consumes:
  - type: http
    namespace: graph-teams
    baseUri: https://graph.microsoft.com/v1.0
    description: Microsoft Graph API — Teams business capability. Self-contained, no shared references.
    resources:
    - name: teams
      path: /teams
      operations:
      - name: listteams
        method: GET
        description: Microsoft List teams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team-id
      path: /teams/{team-id}
      operations:
      - name: getteam
        method: GET
        description: Microsoft Get team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateteam
        method: PATCH
        description: Microsoft Update team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteteam
        method: DELETE
        description: Microsoft Delete team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-team-id-channels
      path: /teams/{team-id}/channels
      operations:
      - name: listchannels
        method: GET
        description: Microsoft List channels
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createchannel
        method: POST
        description: Microsoft Create channel
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: teams-team-id-channels-channel-id-messages
      path: /teams/{team-id}/channels/{channel-id}/messages
      operations:
      - name: listchannelmessages
        method: GET
        description: Microsoft List channel messages
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: sendchannelmessage
        method: POST
        description: Microsoft Send channel message
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_API_KEY}}'
  exposes:
  - type: rest
    namespace: graph-teams-rest
    port: 8080
    description: REST adapter for Microsoft Graph API — Teams. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/teams
      name: teams
      description: REST surface for teams.
      operations:
      - method: GET
        name: listteams
        description: Microsoft List teams
        call: graph-teams.listteams
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}
      name: teams-team-id
      description: REST surface for teams-team-id.
      operations:
      - method: GET
        name: getteam
        description: Microsoft Get team
        call: graph-teams.getteam
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateteam
        description: Microsoft Update team
        call: graph-teams.updateteam
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteteam
        description: Microsoft Delete team
        call: graph-teams.deleteteam
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/channels
      name: teams-team-id-channels
      description: REST surface for teams-team-id-channels.
      operations:
      - method: GET
        name: listchannels
        description: Microsoft List channels
        call: graph-teams.listchannels
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createchannel
        description: Microsoft Create channel
        call: graph-teams.createchannel
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/teams/{team-id}/channels/{channel-id}/messages
      name: teams-team-id-channels-channel-id-messages
      description: REST surface for teams-team-id-channels-channel-id-messages.
      operations:
      - method: GET
        name: listchannelmessages
        description: Microsoft List channel messages
        call: graph-teams.listchannelmessages
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: sendchannelmessage
        description: Microsoft Send channel message
        call: graph-teams.sendchannelmessage
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: graph-teams-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Graph API — Teams. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: microsoft-list-teams
      description: Microsoft List teams
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: graph-teams.listteams
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-get-team
      description: Microsoft Get team
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: graph-teams.getteam
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-update-team
      description: Microsoft Update team
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: graph-teams.updateteam
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-delete-team
      description: Microsoft Delete team
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: graph-teams.deleteteam
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-list-channels
      description: Microsoft List channels
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: graph-teams.listchannels
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-create-channel
      description: Microsoft Create channel
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-teams.createchannel
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-list-channel-messages
      description: Microsoft List channel messages
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: graph-teams.listchannelmessages
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-send-channel-message
      description: Microsoft Send channel message
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: graph-teams.sendchannelmessage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.