naftiko: 1.0.0-alpha2 info: label: Microsoft Graph Chats — Chats.chat description: 'Microsoft Graph Chats — Chats.chat. 6 operations. Lead operation: Microsoft Graph List chats. Self-contained Naftiko capability covering one Microsoft Graph business surface.' tags: - Microsoft Graph - Chats.chat created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_GRAPH_API_KEY: MICROSOFT_GRAPH_API_KEY capability: consumes: - type: http namespace: chats-chats-chat baseUri: '' description: Microsoft Graph Chats — Chats.chat business capability. Self-contained, no shared references. resources: - name: chats path: /chats operations: - name: chatschatlistchat method: GET description: Microsoft Graph List chats outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $orderby in: query type: array description: Order items by property values - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: chatschatcreatechat method: POST description: Microsoft Graph Create chat outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: chats-$count path: /chats/$count operations: - name: chatsgetcount61c7 method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: chats-chat-id path: /chats/{chat-id} operations: - name: chatschatgetchat method: GET description: Microsoft Graph Get chat outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: chatschatupdatechat method: PATCH description: Microsoft Graph Update chat outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: chatschatdeletechat method: DELETE description: Microsoft Graph Delete chat outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: If-Match in: header type: string description: ETag exposes: - type: rest namespace: chats-chats-chat-rest port: 8080 description: REST adapter for Microsoft Graph Chats — Chats.chat. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/chats name: chats description: REST surface for chats. operations: - method: GET name: chatschatlistchat description: Microsoft Graph List chats call: chats-chats-chat.chatschatlistchat with: $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: POST name: chatschatcreatechat description: Microsoft Graph Create chat call: chats-chats-chat.chatschatcreatechat with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/chats/count name: chats-count description: REST surface for chats-$count. operations: - method: GET name: chatsgetcount61c7 description: Microsoft Graph Get the number of the resource call: chats-chats-chat.chatsgetcount61c7 outputParameters: - type: object mapping: $. - path: /v1/chats/{chat-id} name: chats-chat-id description: REST surface for chats-chat-id. operations: - method: GET name: chatschatgetchat description: Microsoft Graph Get chat call: chats-chats-chat.chatschatgetchat with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: chatschatupdatechat description: Microsoft Graph Update chat call: chats-chats-chat.chatschatupdatechat with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: chatschatdeletechat description: Microsoft Graph Delete chat call: chats-chats-chat.chatschatdeletechat with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - type: mcp namespace: chats-chats-chat-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph Chats — Chats.chat. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-graph-list-chats description: Microsoft Graph List chats hints: readOnly: true destructive: false idempotent: true call: chats-chats-chat.chatschatlistchat with: $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-create-chat description: Microsoft Graph Create chat hints: readOnly: false destructive: false idempotent: false call: chats-chats-chat.chatschatcreatechat with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-get-number-resource description: Microsoft Graph Get the number of the resource hints: readOnly: true destructive: false idempotent: true call: chats-chats-chat.chatsgetcount61c7 outputParameters: - type: object mapping: $. - name: microsoft-graph-get-chat description: Microsoft Graph Get chat hints: readOnly: true destructive: false idempotent: true call: chats-chats-chat.chatschatgetchat with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-update-chat description: Microsoft Graph Update chat hints: readOnly: false destructive: false idempotent: true call: chats-chats-chat.chatschatupdatechat with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-delete-chat description: Microsoft Graph Delete chat hints: readOnly: false destructive: true idempotent: true call: chats-chats-chat.chatschatdeletechat with: If-Match: tools.If-Match outputParameters: - type: object mapping: $.