naftiko: 1.0.0-alpha2 info: label: Google Gmail API — Attachments description: 'Google Gmail API — Attachments. 1 operations. Lead operation: Google Get Attachments. Self-contained Naftiko capability covering one Google business surface.' tags: - Google - Attachments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GOOGLE_API_KEY: GOOGLE_API_KEY capability: consumes: - type: http namespace: gmail-attachments baseUri: https://gmail.googleapis.com description: Google Gmail API — Attachments business capability. Self-contained, no shared references. resources: - name: gmail-v1-users-userId-messages-messageId-attachments-id path: /gmail/v1/users/{userId}/messages/{messageId}/attachments/{id} operations: - name: get method: GET description: Google Get Attachments outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Accept in: header type: string - name: userId in: path type: string description: (Required) required: true - name: messageId in: path type: string description: (Required) required: true - name: id in: path type: string description: (Required) required: true exposes: - type: rest namespace: gmail-attachments-rest port: 8080 description: REST adapter for Google Gmail API — Attachments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/gmail/v1/users/{userid}/messages/{messageid}/attachments/{id} name: gmail-v1-users-userid-messages-messageid-attachments-id description: REST surface for gmail-v1-users-userId-messages-messageId-attachments-id. operations: - method: GET name: get description: Google Get Attachments call: gmail-attachments.get with: Accept: rest.Accept userId: rest.userId messageId: rest.messageId id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: gmail-attachments-mcp port: 9090 transport: http description: MCP adapter for Google Gmail API — Attachments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: google-get-attachments description: Google Get Attachments hints: readOnly: true destructive: false idempotent: true call: gmail-attachments.get with: Accept: tools.Accept userId: tools.userId messageId: tools.messageId id: tools.id outputParameters: - type: object mapping: $.