naftiko: 1.0.0-alpha2 info: label: Box Comments API — Comments description: 'Box Comments API — Comments. 4 operations. Lead operation: Box Create comment. Self-contained Naftiko capability covering one Box business surface.' tags: - Box - Comments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BOX_API_KEY: BOX_API_KEY capability: consumes: - type: http namespace: comments-comments baseUri: '' description: Box Comments API — Comments business capability. Self-contained, no shared references. resources: - name: comments path: /comments operations: - name: postcomments method: POST description: Box Create comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fields in: query type: array description: A comma-separated list of attributes to include in the - name: body in: body type: object description: Request body (JSON). required: false - name: comments-comment_id path: /comments/{comment_id} operations: - name: getcommentsid method: GET description: Box Get comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: comment_id in: path type: string description: The ID of the comment. required: true - name: fields in: query type: array description: A comma-separated list of attributes to include in the - name: putcommentsid method: PUT description: Box Update comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: comment_id in: path type: string description: The ID of the comment. required: true - name: fields in: query type: array description: A comma-separated list of attributes to include in the - name: body in: body type: object description: Request body (JSON). required: false - name: deletecommentsid method: DELETE description: Box Remove comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: comment_id in: path type: string description: The ID of the comment. required: true exposes: - type: rest namespace: comments-comments-rest port: 8080 description: REST adapter for Box Comments API — Comments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/comments name: comments description: REST surface for comments. operations: - method: POST name: postcomments description: Box Create comment call: comments-comments.postcomments with: fields: rest.fields body: rest.body outputParameters: - type: object mapping: $. - path: /v1/comments/{comment-id} name: comments-comment-id description: REST surface for comments-comment_id. operations: - method: GET name: getcommentsid description: Box Get comment call: comments-comments.getcommentsid with: comment_id: rest.comment_id fields: rest.fields outputParameters: - type: object mapping: $. - method: PUT name: putcommentsid description: Box Update comment call: comments-comments.putcommentsid with: comment_id: rest.comment_id fields: rest.fields body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecommentsid description: Box Remove comment call: comments-comments.deletecommentsid with: comment_id: rest.comment_id outputParameters: - type: object mapping: $. - type: mcp namespace: comments-comments-mcp port: 9090 transport: http description: MCP adapter for Box Comments API — Comments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: box-create-comment description: Box Create comment hints: readOnly: false destructive: false idempotent: false call: comments-comments.postcomments with: fields: tools.fields body: tools.body outputParameters: - type: object mapping: $. - name: box-get-comment description: Box Get comment hints: readOnly: true destructive: false idempotent: true call: comments-comments.getcommentsid with: comment_id: tools.comment_id fields: tools.fields outputParameters: - type: object mapping: $. - name: box-update-comment description: Box Update comment hints: readOnly: false destructive: false idempotent: true call: comments-comments.putcommentsid with: comment_id: tools.comment_id fields: tools.fields body: tools.body outputParameters: - type: object mapping: $. - name: box-remove-comment description: Box Remove comment hints: readOnly: false destructive: true idempotent: true call: comments-comments.deletecommentsid with: comment_id: tools.comment_id outputParameters: - type: object mapping: $.