naftiko: 1.0.0-alpha2 info: label: Google Gmail API — Update description: 'Google Gmail API — Update. 8 operations. Lead operation: Google Update Drafts. Self-contained Naftiko capability covering one Google business surface.' tags: - Google - Update created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GOOGLE_API_KEY: GOOGLE_API_KEY capability: consumes: - type: http namespace: gmail-update baseUri: https://gmail.googleapis.com description: Google Gmail API — Update business capability. Self-contained, no shared references. resources: - name: gmail-v1-users-userId-drafts-id path: /gmail/v1/users/{userId}/drafts/{id} operations: - name: put method: PUT description: Google Update Drafts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Accept in: header type: string - name: userId in: path type: string description: (Required) required: true - name: id in: path type: string description: (Required) required: true - name: body in: body type: object description: Request body (JSON). required: false - name: gmail-v1-users-userId-labels-id path: /gmail/v1/users/{userId}/labels/{id} operations: - name: put method: PUT description: Google Update Labels outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Accept in: header type: string - name: userId in: path type: string description: (Required) required: true - name: id in: path type: string description: (Required) required: true - name: body in: body type: object description: Request body (JSON). required: false - name: gmail-v1-users-userId-settings-autoForwarding path: /gmail/v1/users/{userId}/settings/autoForwarding operations: - name: put method: PUT description: Google Update Auto Forwarding outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Accept in: header type: string - name: userId in: path type: string description: (Required) required: true - name: body in: body type: object description: Request body (JSON). required: false - name: gmail-v1-users-userId-settings-imap path: /gmail/v1/users/{userId}/settings/imap operations: - name: put method: PUT description: Google Update IMAP outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Accept in: header type: string - name: userId in: path type: string description: (Required) required: true - name: body in: body type: object description: Request body (JSON). required: false - name: gmail-v1-users-userId-settings-language path: /gmail/v1/users/{userId}/settings/language operations: - name: put method: PUT description: Google Update Language Settings outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Accept in: header type: string - name: userId in: path type: string description: (Required) required: true - name: body in: body type: object description: Request body (JSON). required: false - name: gmail-v1-users-userId-settings-pop path: /gmail/v1/users/{userId}/settings/pop operations: - name: put method: PUT description: Google Update POP Settings outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Accept in: header type: string - name: userId in: path type: string description: (Required) required: true - name: body in: body type: object description: Request body (JSON). required: false - name: gmail-v1-users-userId-settings-sendAs-sendAsEmail path: /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail} operations: - name: put method: PUT description: Google Update Send As Setting outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Accept in: header type: string - name: userId in: path type: string description: (Required) required: true - name: sendAsEmail in: path type: string description: (Required) required: true - name: body in: body type: object description: Request body (JSON). required: false - name: gmail-v1-users-userId-settings-vacation path: /gmail/v1/users/{userId}/settings/vacation operations: - name: put method: PUT description: Google Update Vacation Settings outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type in: header type: string - name: Accept in: header type: string - name: userId in: path type: string description: (Required) required: true - name: body in: body type: object description: Request body (JSON). required: false exposes: - type: rest namespace: gmail-update-rest port: 8080 description: REST adapter for Google Gmail API — Update. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/gmail/v1/users/{userid}/drafts/{id} name: gmail-v1-users-userid-drafts-id description: REST surface for gmail-v1-users-userId-drafts-id. operations: - method: PUT name: put description: Google Update Drafts call: gmail-update.put with: Content-Type: rest.Content-Type Accept: rest.Accept userId: rest.userId id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/gmail/v1/users/{userid}/labels/{id} name: gmail-v1-users-userid-labels-id description: REST surface for gmail-v1-users-userId-labels-id. operations: - method: PUT name: put description: Google Update Labels call: gmail-update.put with: Content-Type: rest.Content-Type Accept: rest.Accept userId: rest.userId id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/gmail/v1/users/{userid}/settings/autoforwarding name: gmail-v1-users-userid-settings-autoforwarding description: REST surface for gmail-v1-users-userId-settings-autoForwarding. operations: - method: PUT name: put description: Google Update Auto Forwarding call: gmail-update.put with: Content-Type: rest.Content-Type Accept: rest.Accept userId: rest.userId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/gmail/v1/users/{userid}/settings/imap name: gmail-v1-users-userid-settings-imap description: REST surface for gmail-v1-users-userId-settings-imap. operations: - method: PUT name: put description: Google Update IMAP call: gmail-update.put with: Content-Type: rest.Content-Type Accept: rest.Accept userId: rest.userId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/gmail/v1/users/{userid}/settings/language name: gmail-v1-users-userid-settings-language description: REST surface for gmail-v1-users-userId-settings-language. operations: - method: PUT name: put description: Google Update Language Settings call: gmail-update.put with: Content-Type: rest.Content-Type Accept: rest.Accept userId: rest.userId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/gmail/v1/users/{userid}/settings/pop name: gmail-v1-users-userid-settings-pop description: REST surface for gmail-v1-users-userId-settings-pop. operations: - method: PUT name: put description: Google Update POP Settings call: gmail-update.put with: Content-Type: rest.Content-Type Accept: rest.Accept userId: rest.userId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/gmail/v1/users/{userid}/settings/sendas/{sendasemail} name: gmail-v1-users-userid-settings-sendas-sendasemail description: REST surface for gmail-v1-users-userId-settings-sendAs-sendAsEmail. operations: - method: PUT name: put description: Google Update Send As Setting call: gmail-update.put with: Content-Type: rest.Content-Type Accept: rest.Accept userId: rest.userId sendAsEmail: rest.sendAsEmail body: rest.body outputParameters: - type: object mapping: $. - path: /v1/gmail/v1/users/{userid}/settings/vacation name: gmail-v1-users-userid-settings-vacation description: REST surface for gmail-v1-users-userId-settings-vacation. operations: - method: PUT name: put description: Google Update Vacation Settings call: gmail-update.put with: Content-Type: rest.Content-Type Accept: rest.Accept userId: rest.userId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: gmail-update-mcp port: 9090 transport: http description: MCP adapter for Google Gmail API — Update. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: google-update-drafts description: Google Update Drafts hints: readOnly: false destructive: false idempotent: true call: gmail-update.put with: Content-Type: tools.Content-Type Accept: tools.Accept userId: tools.userId id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: google-update-labels description: Google Update Labels hints: readOnly: false destructive: false idempotent: true call: gmail-update.put with: Content-Type: tools.Content-Type Accept: tools.Accept userId: tools.userId id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: google-update-auto-forwarding description: Google Update Auto Forwarding hints: readOnly: false destructive: false idempotent: true call: gmail-update.put with: Content-Type: tools.Content-Type Accept: tools.Accept userId: tools.userId body: tools.body outputParameters: - type: object mapping: $. - name: google-update-imap description: Google Update IMAP hints: readOnly: false destructive: false idempotent: true call: gmail-update.put with: Content-Type: tools.Content-Type Accept: tools.Accept userId: tools.userId body: tools.body outputParameters: - type: object mapping: $. - name: google-update-language-settings description: Google Update Language Settings hints: readOnly: false destructive: false idempotent: true call: gmail-update.put with: Content-Type: tools.Content-Type Accept: tools.Accept userId: tools.userId body: tools.body outputParameters: - type: object mapping: $. - name: google-update-pop-settings description: Google Update POP Settings hints: readOnly: false destructive: false idempotent: true call: gmail-update.put with: Content-Type: tools.Content-Type Accept: tools.Accept userId: tools.userId body: tools.body outputParameters: - type: object mapping: $. - name: google-update-send-setting description: Google Update Send As Setting hints: readOnly: false destructive: false idempotent: true call: gmail-update.put with: Content-Type: tools.Content-Type Accept: tools.Accept userId: tools.userId sendAsEmail: tools.sendAsEmail body: tools.body outputParameters: - type: object mapping: $. - name: google-update-vacation-settings description: Google Update Vacation Settings hints: readOnly: false destructive: false idempotent: true call: gmail-update.put with: Content-Type: tools.Content-Type Accept: tools.Accept userId: tools.userId body: tools.body outputParameters: - type: object mapping: $.