naftiko: 1.0.0-alpha2 info: label: Google Drive API — Comments description: 'Google Drive API — Comments. 5 operations. Lead operation: Google Get Files Fileid Comments. Self-contained Naftiko capability covering one Google business surface.' tags: - Google - Comments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GOOGLE_API_KEY: GOOGLE_API_KEY capability: consumes: - type: http namespace: drive-comments baseUri: https://www.googleapis.com/drive/v3 description: Google Drive API — Comments business capability. Self-contained, no shared references. resources: - name: files-fileId-comments path: /files/{fileId}/comments operations: - name: googledrivecommentslist method: GET description: Google Get Files Fileid Comments outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fileId in: path type: string description: The ID of the file. required: true - name: includeDeleted in: query type: boolean description: Whether to include deleted comments. Deleted comments will not include their original content. - name: pageSize in: query type: integer description: The maximum number of comments to return per page. - name: pageToken in: query type: string description: The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response. - name: startModifiedTime in: query type: string description: The minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time). - name: Authorization in: header type: string - name: $.xgafv in: query type: string description: V1 error format. - name: access_token in: query type: string description: OAuth access token. - name: alt in: query type: string description: Data format for response. - name: callback in: query type: string description: JSONP - name: fields in: query type: string description: Selector specifying which fields to include in a partial response. - name: key in: query type: string description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - name: oauth_token in: query type: string description: OAuth 2.0 token for the current user. - name: prettyPrint in: query type: boolean description: Returns response with indentations and line breaks. - name: quotaUser in: query type: string description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - name: upload_protocol in: query type: string description: Upload protocol for media (e.g. "raw", "multipart"). - name: uploadType in: query type: string description: Legacy upload protocol for media (e.g. "media", "multipart"). - name: googledrivecommentscreate method: POST description: Google Post Files Fileid Comments outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fileId in: path type: string description: The ID of the file. required: true - name: Authorization in: header type: string - name: $.xgafv in: query type: string description: V1 error format. - name: access_token in: query type: string description: OAuth access token. - name: alt in: query type: string description: Data format for response. - name: callback in: query type: string description: JSONP - name: fields in: query type: string description: Selector specifying which fields to include in a partial response. - name: key in: query type: string description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - name: oauth_token in: query type: string description: OAuth 2.0 token for the current user. - name: prettyPrint in: query type: boolean description: Returns response with indentations and line breaks. - name: quotaUser in: query type: string description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - name: upload_protocol in: query type: string description: Upload protocol for media (e.g. "raw", "multipart"). - name: uploadType in: query type: string description: Legacy upload protocol for media (e.g. "media", "multipart"). - name: body in: body type: object description: Request body (JSON). required: false - name: files-fileId-comments-commentId path: /files/{fileId}/comments/{commentId} operations: - name: googledrivecommentsget method: GET description: Google Get Files Fileid Comments Commentid outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fileId in: path type: string description: The ID of the file. required: true - name: commentId in: path type: string description: The ID of the comment. required: true - name: includeDeleted in: query type: boolean description: Whether to return deleted comments. Deleted comments will not include their original content. - name: Authorization in: header type: string - name: $.xgafv in: query type: string description: V1 error format. - name: access_token in: query type: string description: OAuth access token. - name: alt in: query type: string description: Data format for response. - name: callback in: query type: string description: JSONP - name: fields in: query type: string description: Selector specifying which fields to include in a partial response. - name: key in: query type: string description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - name: oauth_token in: query type: string description: OAuth 2.0 token for the current user. - name: prettyPrint in: query type: boolean description: Returns response with indentations and line breaks. - name: quotaUser in: query type: string description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - name: upload_protocol in: query type: string description: Upload protocol for media (e.g. "raw", "multipart"). - name: uploadType in: query type: string description: Legacy upload protocol for media (e.g. "media", "multipart"). - name: googledrivecommentsupdate method: PATCH description: Google Patch Files Fileid Comments Commentid outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fileId in: path type: string description: The ID of the file. required: true - name: commentId in: path type: string description: The ID of the comment. required: true - name: Authorization in: header type: string - name: $.xgafv in: query type: string description: V1 error format. - name: access_token in: query type: string description: OAuth access token. - name: alt in: query type: string description: Data format for response. - name: callback in: query type: string description: JSONP - name: fields in: query type: string description: Selector specifying which fields to include in a partial response. - name: key in: query type: string description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - name: oauth_token in: query type: string description: OAuth 2.0 token for the current user. - name: prettyPrint in: query type: boolean description: Returns response with indentations and line breaks. - name: quotaUser in: query type: string description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - name: upload_protocol in: query type: string description: Upload protocol for media (e.g. "raw", "multipart"). - name: uploadType in: query type: string description: Legacy upload protocol for media (e.g. "media", "multipart"). - name: body in: body type: object description: Request body (JSON). required: false - name: googledrivecommentsdelete method: DELETE description: Google Delete Files Fileid Comments Commentid outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fileId in: path type: string description: The ID of the file. required: true - name: commentId in: path type: string description: The ID of the comment. required: true - name: Authorization in: header type: string - name: $.xgafv in: query type: string description: V1 error format. - name: access_token in: query type: string description: OAuth access token. - name: alt in: query type: string description: Data format for response. - name: callback in: query type: string description: JSONP - name: fields in: query type: string description: Selector specifying which fields to include in a partial response. - name: key in: query type: string description: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - name: oauth_token in: query type: string description: OAuth 2.0 token for the current user. - name: prettyPrint in: query type: boolean description: Returns response with indentations and line breaks. - name: quotaUser in: query type: string description: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - name: upload_protocol in: query type: string description: Upload protocol for media (e.g. "raw", "multipart"). - name: uploadType in: query type: string description: Legacy upload protocol for media (e.g. "media", "multipart"). authentication: type: bearer token: '{{env.GOOGLE_API_KEY}}' exposes: - type: rest namespace: drive-comments-rest port: 8080 description: REST adapter for Google Drive API — Comments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/files/{fileid}/comments name: files-fileid-comments description: REST surface for files-fileId-comments. operations: - method: GET name: googledrivecommentslist description: Google Get Files Fileid Comments call: drive-comments.googledrivecommentslist with: fileId: rest.fileId includeDeleted: rest.includeDeleted pageSize: rest.pageSize pageToken: rest.pageToken startModifiedTime: rest.startModifiedTime Authorization: rest.Authorization $.xgafv: rest.$.xgafv access_token: rest.access_token alt: rest.alt callback: rest.callback fields: rest.fields key: rest.key oauth_token: rest.oauth_token prettyPrint: rest.prettyPrint quotaUser: rest.quotaUser upload_protocol: rest.upload_protocol uploadType: rest.uploadType outputParameters: - type: object mapping: $. - method: POST name: googledrivecommentscreate description: Google Post Files Fileid Comments call: drive-comments.googledrivecommentscreate with: fileId: rest.fileId Authorization: rest.Authorization $.xgafv: rest.$.xgafv access_token: rest.access_token alt: rest.alt callback: rest.callback fields: rest.fields key: rest.key oauth_token: rest.oauth_token prettyPrint: rest.prettyPrint quotaUser: rest.quotaUser upload_protocol: rest.upload_protocol uploadType: rest.uploadType body: rest.body outputParameters: - type: object mapping: $. - path: /v1/files/{fileid}/comments/{commentid} name: files-fileid-comments-commentid description: REST surface for files-fileId-comments-commentId. operations: - method: GET name: googledrivecommentsget description: Google Get Files Fileid Comments Commentid call: drive-comments.googledrivecommentsget with: fileId: rest.fileId commentId: rest.commentId includeDeleted: rest.includeDeleted Authorization: rest.Authorization $.xgafv: rest.$.xgafv access_token: rest.access_token alt: rest.alt callback: rest.callback fields: rest.fields key: rest.key oauth_token: rest.oauth_token prettyPrint: rest.prettyPrint quotaUser: rest.quotaUser upload_protocol: rest.upload_protocol uploadType: rest.uploadType outputParameters: - type: object mapping: $. - method: PATCH name: googledrivecommentsupdate description: Google Patch Files Fileid Comments Commentid call: drive-comments.googledrivecommentsupdate with: fileId: rest.fileId commentId: rest.commentId Authorization: rest.Authorization $.xgafv: rest.$.xgafv access_token: rest.access_token alt: rest.alt callback: rest.callback fields: rest.fields key: rest.key oauth_token: rest.oauth_token prettyPrint: rest.prettyPrint quotaUser: rest.quotaUser upload_protocol: rest.upload_protocol uploadType: rest.uploadType body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: googledrivecommentsdelete description: Google Delete Files Fileid Comments Commentid call: drive-comments.googledrivecommentsdelete with: fileId: rest.fileId commentId: rest.commentId Authorization: rest.Authorization $.xgafv: rest.$.xgafv access_token: rest.access_token alt: rest.alt callback: rest.callback fields: rest.fields key: rest.key oauth_token: rest.oauth_token prettyPrint: rest.prettyPrint quotaUser: rest.quotaUser upload_protocol: rest.upload_protocol uploadType: rest.uploadType outputParameters: - type: object mapping: $. - type: mcp namespace: drive-comments-mcp port: 9090 transport: http description: MCP adapter for Google Drive API — Comments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: google-get-files-fileid-comments description: Google Get Files Fileid Comments hints: readOnly: true destructive: false idempotent: true call: drive-comments.googledrivecommentslist with: fileId: tools.fileId includeDeleted: tools.includeDeleted pageSize: tools.pageSize pageToken: tools.pageToken startModifiedTime: tools.startModifiedTime Authorization: tools.Authorization $.xgafv: tools.$.xgafv access_token: tools.access_token alt: tools.alt callback: tools.callback fields: tools.fields key: tools.key oauth_token: tools.oauth_token prettyPrint: tools.prettyPrint quotaUser: tools.quotaUser upload_protocol: tools.upload_protocol uploadType: tools.uploadType outputParameters: - type: object mapping: $. - name: google-post-files-fileid-comments description: Google Post Files Fileid Comments hints: readOnly: false destructive: false idempotent: false call: drive-comments.googledrivecommentscreate with: fileId: tools.fileId Authorization: tools.Authorization $.xgafv: tools.$.xgafv access_token: tools.access_token alt: tools.alt callback: tools.callback fields: tools.fields key: tools.key oauth_token: tools.oauth_token prettyPrint: tools.prettyPrint quotaUser: tools.quotaUser upload_protocol: tools.upload_protocol uploadType: tools.uploadType body: tools.body outputParameters: - type: object mapping: $. - name: google-get-files-fileid-comments-2 description: Google Get Files Fileid Comments Commentid hints: readOnly: true destructive: false idempotent: true call: drive-comments.googledrivecommentsget with: fileId: tools.fileId commentId: tools.commentId includeDeleted: tools.includeDeleted Authorization: tools.Authorization $.xgafv: tools.$.xgafv access_token: tools.access_token alt: tools.alt callback: tools.callback fields: tools.fields key: tools.key oauth_token: tools.oauth_token prettyPrint: tools.prettyPrint quotaUser: tools.quotaUser upload_protocol: tools.upload_protocol uploadType: tools.uploadType outputParameters: - type: object mapping: $. - name: google-patch-files-fileid-comments description: Google Patch Files Fileid Comments Commentid hints: readOnly: false destructive: false idempotent: true call: drive-comments.googledrivecommentsupdate with: fileId: tools.fileId commentId: tools.commentId Authorization: tools.Authorization $.xgafv: tools.$.xgafv access_token: tools.access_token alt: tools.alt callback: tools.callback fields: tools.fields key: tools.key oauth_token: tools.oauth_token prettyPrint: tools.prettyPrint quotaUser: tools.quotaUser upload_protocol: tools.upload_protocol uploadType: tools.uploadType body: tools.body outputParameters: - type: object mapping: $. - name: google-delete-files-fileid-comments description: Google Delete Files Fileid Comments Commentid hints: readOnly: false destructive: true idempotent: true call: drive-comments.googledrivecommentsdelete with: fileId: tools.fileId commentId: tools.commentId Authorization: tools.Authorization $.xgafv: tools.$.xgafv access_token: tools.access_token alt: tools.alt callback: tools.callback fields: tools.fields key: tools.key oauth_token: tools.oauth_token prettyPrint: tools.prettyPrint quotaUser: tools.quotaUser upload_protocol: tools.upload_protocol uploadType: tools.uploadType outputParameters: - type: object mapping: $.