naftiko: 1.0.0-alpha2 info: label: Twilio SendGrid Mail API — Mail Batch description: 'Twilio SendGrid Mail API — Mail Batch. 2 operations. Lead operation: Create a batch ID.. Self-contained Naftiko capability covering one Sendgrid business surface.' tags: - Sendgrid - Mail Batch created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SENDGRID_API_KEY: SENDGRID_API_KEY capability: consumes: - type: http namespace: tsg_mail_v3-mail-batch baseUri: https://api.sendgrid.com description: Twilio SendGrid Mail API — Mail Batch business capability. Self-contained, no shared references. resources: - name: v3-mail-batch path: /v3/mail/batch operations: - name: createmailbatch method: POST description: Create a batch ID. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v3-mail-batch-batch_id path: /v3/mail/batch/{batch_id} operations: - name: getmailbatch method: GET description: Validate a batch ID. outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.SENDGRID_API_KEY}}' exposes: - type: rest namespace: tsg_mail_v3-mail-batch-rest port: 8080 description: REST adapter for Twilio SendGrid Mail API — Mail Batch. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v3/mail/batch name: v3-mail-batch description: REST surface for v3-mail-batch. operations: - method: POST name: createmailbatch description: Create a batch ID. call: tsg_mail_v3-mail-batch.createmailbatch outputParameters: - type: object mapping: $. - path: /v1/v3/mail/batch/{batch-id} name: v3-mail-batch-batch-id description: REST surface for v3-mail-batch-batch_id. operations: - method: GET name: getmailbatch description: Validate a batch ID. call: tsg_mail_v3-mail-batch.getmailbatch outputParameters: - type: object mapping: $. - type: mcp namespace: tsg_mail_v3-mail-batch-mcp port: 9090 transport: http description: MCP adapter for Twilio SendGrid Mail API — Mail Batch. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-batch-id description: Create a batch ID. hints: readOnly: false destructive: false idempotent: false call: tsg_mail_v3-mail-batch.createmailbatch outputParameters: - type: object mapping: $. - name: validate-batch-id description: Validate a batch ID. hints: readOnly: true destructive: false idempotent: true call: tsg_mail_v3-mail-batch.getmailbatch outputParameters: - type: object mapping: $.