naftiko: 1.0.0-alpha2 info: label: Microsoft Teams API — Messages description: 'Microsoft Teams API — Messages. 2 operations. Lead operation: Microsoft List channel messages. Self-contained Naftiko capability covering one Microsoft business surface.' tags: - Microsoft - Messages created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_API_KEY: MICROSOFT_API_KEY capability: consumes: - type: http namespace: teams-messages baseUri: https://graph.microsoft.com/v1.0 description: Microsoft Teams API — Messages business capability. Self-contained, no shared references. resources: - name: teams-teamId-channels-channelId-messages path: /teams/{teamId}/channels/{channelId}/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 a 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: teams-messages-rest port: 8080 description: REST adapter for Microsoft Teams API — Messages. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/teams/{teamid}/channels/{channelid}/messages name: teams-teamid-channels-channelid-messages description: REST surface for teams-teamId-channels-channelId-messages. operations: - method: GET name: listchannelmessages description: Microsoft List channel messages call: teams-messages.listchannelmessages outputParameters: - type: object mapping: $. - method: POST name: sendchannelmessage description: Microsoft Send a channel message call: teams-messages.sendchannelmessage with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: teams-messages-mcp port: 9090 transport: http description: MCP adapter for Microsoft Teams API — Messages. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-list-channel-messages description: Microsoft List channel messages hints: readOnly: true destructive: false idempotent: true call: teams-messages.listchannelmessages outputParameters: - type: object mapping: $. - name: microsoft-send-channel-message description: Microsoft Send a channel message hints: readOnly: false destructive: false idempotent: false call: teams-messages.sendchannelmessage with: body: tools.body outputParameters: - type: object mapping: $.