naftiko: 1.0.0-alpha2 info: label: Microsoft Azure Communication Services API — Chat description: 'Microsoft Azure Communication Services API — Chat. 4 operations. Lead operation: Microsoft Create a chat thread. Self-contained Naftiko capability covering one Microsoft business surface.' tags: - Microsoft - Chat created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_API_KEY: MICROSOFT_API_KEY capability: consumes: - type: http namespace: azure-communication-services-chat baseUri: https://{resource}.communication.azure.com description: Microsoft Azure Communication Services API — Chat business capability. Self-contained, no shared references. resources: - name: chat-threads path: /chat/threads operations: - name: createchatthread method: POST description: Microsoft Create a chat thread outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listchatthreads method: GET description: Microsoft List chat threads outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: maxPageSize in: query type: integer description: Maximum number of threads per page - name: startTime in: query type: string description: Start time for the range query - name: chat-threads-chatThreadId-messages path: /chat/threads/{chatThreadId}/messages operations: - name: sendchatmessage method: POST description: Microsoft Send a chat message outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: chatThreadId in: path type: string description: Chat thread ID required: true - name: body in: body type: object description: Request body (JSON). required: true - name: listchatmessages method: GET description: Microsoft List chat messages outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: chatThreadId in: path type: string required: true - name: maxPageSize in: query type: integer - name: startTime in: query type: string authentication: type: apikey key: Authorization value: '{{env.MICROSOFT_API_KEY}}' placement: header exposes: - type: rest namespace: azure-communication-services-chat-rest port: 8080 description: REST adapter for Microsoft Azure Communication Services API — Chat. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/chat/threads name: chat-threads description: REST surface for chat-threads. operations: - method: POST name: createchatthread description: Microsoft Create a chat thread call: azure-communication-services-chat.createchatthread with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listchatthreads description: Microsoft List chat threads call: azure-communication-services-chat.listchatthreads with: maxPageSize: rest.maxPageSize startTime: rest.startTime outputParameters: - type: object mapping: $. - path: /v1/chat/threads/{chatthreadid}/messages name: chat-threads-chatthreadid-messages description: REST surface for chat-threads-chatThreadId-messages. operations: - method: POST name: sendchatmessage description: Microsoft Send a chat message call: azure-communication-services-chat.sendchatmessage with: chatThreadId: rest.chatThreadId body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listchatmessages description: Microsoft List chat messages call: azure-communication-services-chat.listchatmessages with: chatThreadId: rest.chatThreadId maxPageSize: rest.maxPageSize startTime: rest.startTime outputParameters: - type: object mapping: $. - type: mcp namespace: azure-communication-services-chat-mcp port: 9090 transport: http description: MCP adapter for Microsoft Azure Communication Services API — Chat. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-create-chat-thread description: Microsoft Create a chat thread hints: readOnly: false destructive: false idempotent: false call: azure-communication-services-chat.createchatthread with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-list-chat-threads description: Microsoft List chat threads hints: readOnly: true destructive: false idempotent: true call: azure-communication-services-chat.listchatthreads with: maxPageSize: tools.maxPageSize startTime: tools.startTime outputParameters: - type: object mapping: $. - name: microsoft-send-chat-message description: Microsoft Send a chat message hints: readOnly: false destructive: false idempotent: false call: azure-communication-services-chat.sendchatmessage with: chatThreadId: tools.chatThreadId body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-list-chat-messages description: Microsoft List chat messages hints: readOnly: true destructive: false idempotent: true call: azure-communication-services-chat.listchatmessages with: chatThreadId: tools.chatThreadId maxPageSize: tools.maxPageSize startTime: tools.startTime outputParameters: - type: object mapping: $.