naftiko: 1.0.0-alpha2 info: label: Google Drive API — Team Drives description: 'Google Drive API — Team Drives. 5 operations. Lead operation: Google Get Teamdrives. Self-contained Naftiko capability covering one Google business surface.' tags: - Google - Team Drives created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GOOGLE_API_KEY: GOOGLE_API_KEY capability: consumes: - type: http namespace: drive-team-drives baseUri: https://www.googleapis.com/drive/v3 description: Google Drive API — Team Drives business capability. Self-contained, no shared references. resources: - name: teamdrives path: /teamdrives operations: - name: googledriveteamdriveslist method: GET description: Google Get Teamdrives outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: pageSize in: query type: integer description: Maximum number of Team Drives to return. - name: pageToken in: query type: string description: Page token for Team Drives. - name: q in: query type: string description: Query string for searching Team Drives. - name: useDomainAdminAccess in: query type: boolean description: Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned. - 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: googledriveteamdrivescreate method: POST description: Google Post Teamdrives outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: requestId in: query type: string description: Required. An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same us 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: teamdrives-teamDriveId path: /teamdrives/{teamDriveId} operations: - name: googledriveteamdrivesget method: GET description: Google Get Teamdrives Teamdriveid outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: teamDriveId in: path type: string description: The ID of the Team Drive required: true - name: useDomainAdminAccess in: query type: boolean description: Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the T - 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: googledriveteamdrivesupdate method: PATCH description: Google Patch Teamdrives Teamdriveid outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: teamDriveId in: path type: string description: The ID of the Team Drive required: true - name: useDomainAdminAccess in: query type: boolean description: Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the T - 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: googledriveteamdrivesdelete method: DELETE description: Google Delete Teamdrives Teamdriveid outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: teamDriveId in: path type: string description: The ID of the Team Drive 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-team-drives-rest port: 8080 description: REST adapter for Google Drive API — Team Drives. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/teamdrives name: teamdrives description: REST surface for teamdrives. operations: - method: GET name: googledriveteamdriveslist description: Google Get Teamdrives call: drive-team-drives.googledriveteamdriveslist with: pageSize: rest.pageSize pageToken: rest.pageToken q: rest.q useDomainAdminAccess: rest.useDomainAdminAccess 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: googledriveteamdrivescreate description: Google Post Teamdrives call: drive-team-drives.googledriveteamdrivescreate with: requestId: rest.requestId 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/teamdrives/{teamdriveid} name: teamdrives-teamdriveid description: REST surface for teamdrives-teamDriveId. operations: - method: GET name: googledriveteamdrivesget description: Google Get Teamdrives Teamdriveid call: drive-team-drives.googledriveteamdrivesget with: teamDriveId: rest.teamDriveId useDomainAdminAccess: rest.useDomainAdminAccess 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: googledriveteamdrivesupdate description: Google Patch Teamdrives Teamdriveid call: drive-team-drives.googledriveteamdrivesupdate with: teamDriveId: rest.teamDriveId useDomainAdminAccess: rest.useDomainAdminAccess 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: googledriveteamdrivesdelete description: Google Delete Teamdrives Teamdriveid call: drive-team-drives.googledriveteamdrivesdelete with: teamDriveId: rest.teamDriveId 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-team-drives-mcp port: 9090 transport: http description: MCP adapter for Google Drive API — Team Drives. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: google-get-teamdrives description: Google Get Teamdrives hints: readOnly: true destructive: false idempotent: true call: drive-team-drives.googledriveteamdriveslist with: pageSize: tools.pageSize pageToken: tools.pageToken q: tools.q useDomainAdminAccess: tools.useDomainAdminAccess 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-teamdrives description: Google Post Teamdrives hints: readOnly: false destructive: false idempotent: false call: drive-team-drives.googledriveteamdrivescreate with: requestId: tools.requestId 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-teamdrives-teamdriveid description: Google Get Teamdrives Teamdriveid hints: readOnly: true destructive: false idempotent: true call: drive-team-drives.googledriveteamdrivesget with: teamDriveId: tools.teamDriveId useDomainAdminAccess: tools.useDomainAdminAccess 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-teamdrives-teamdriveid description: Google Patch Teamdrives Teamdriveid hints: readOnly: false destructive: false idempotent: true call: drive-team-drives.googledriveteamdrivesupdate with: teamDriveId: tools.teamDriveId useDomainAdminAccess: tools.useDomainAdminAccess 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-teamdrives-teamdriveid description: Google Delete Teamdrives Teamdriveid hints: readOnly: false destructive: true idempotent: true call: drive-team-drives.googledriveteamdrivesdelete with: teamDriveId: tools.teamDriveId 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: $.