naftiko: 1.0.0-alpha2 info: label: Google Gmail API — Modify description: 'Google Gmail API — Modify. 3 operations. Lead operation: Google Batch Modify. Self-contained Naftiko capability covering one Google business surface.' tags: - Google - Modify created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GOOGLE_API_KEY: GOOGLE_API_KEY capability: consumes: - type: http namespace: gmail-modify baseUri: https://gmail.googleapis.com description: Google Gmail API — Modify business capability. Self-contained, no shared references. resources: - name: gmail-v1-users-userId-messages-batchModify path: /gmail/v1/users/{userId}/messages/batchModify operations: - name: post method: POST description: Google Batch Modify outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Content-Type 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-messages-id-modify path: /gmail/v1/users/{userId}/messages/{id}/modify operations: - name: post method: POST description: Google Modify Messages 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-threads-id-modify path: /gmail/v1/users/{userId}/threads/{id}/modify operations: - name: post method: POST description: Google Modify Threads 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 exposes: - type: rest namespace: gmail-modify-rest port: 8080 description: REST adapter for Google Gmail API — Modify. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/gmail/v1/users/{userid}/messages/batchmodify name: gmail-v1-users-userid-messages-batchmodify description: REST surface for gmail-v1-users-userId-messages-batchModify. operations: - method: POST name: post description: Google Batch Modify call: gmail-modify.post with: Content-Type: rest.Content-Type userId: rest.userId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/gmail/v1/users/{userid}/messages/{id}/modify name: gmail-v1-users-userid-messages-id-modify description: REST surface for gmail-v1-users-userId-messages-id-modify. operations: - method: POST name: post description: Google Modify Messages call: gmail-modify.post 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}/threads/{id}/modify name: gmail-v1-users-userid-threads-id-modify description: REST surface for gmail-v1-users-userId-threads-id-modify. operations: - method: POST name: post description: Google Modify Threads call: gmail-modify.post with: Content-Type: rest.Content-Type Accept: rest.Accept userId: rest.userId id: rest.id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: gmail-modify-mcp port: 9090 transport: http description: MCP adapter for Google Gmail API — Modify. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: google-batch-modify description: Google Batch Modify hints: readOnly: false destructive: false idempotent: false call: gmail-modify.post with: Content-Type: tools.Content-Type userId: tools.userId body: tools.body outputParameters: - type: object mapping: $. - name: google-modify-messages description: Google Modify Messages hints: readOnly: false destructive: false idempotent: false call: gmail-modify.post with: Content-Type: tools.Content-Type Accept: tools.Accept userId: tools.userId id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: google-modify-threads description: Google Modify Threads hints: readOnly: false destructive: false idempotent: false call: gmail-modify.post with: Content-Type: tools.Content-Type Accept: tools.Accept userId: tools.userId id: tools.id body: tools.body outputParameters: - type: object mapping: $.