naftiko: 1.0.0-alpha2 info: label: Twilio SendGrid Account Provisioning API — Account State description: 'Twilio SendGrid Account Provisioning API — Account State. 2 operations. Lead operation: Get an account''s state. Self-contained Naftiko capability covering one Sendgrid business surface.' tags: - Sendgrid - Account State created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SENDGRID_API_KEY: SENDGRID_API_KEY capability: consumes: - type: http namespace: tsg_account_provisioning_v3-account-state baseUri: https://api.sendgrid.com description: Twilio SendGrid Account Provisioning API — Account State business capability. Self-contained, no shared references. resources: - name: v3-partners-accounts-accountID-state path: /v3/partners/accounts/{accountID}/state operations: - name: getaccountstate method: GET description: Get an account's state outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateaccountstate method: PUT description: Update an account's state outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.SENDGRID_API_KEY}}' exposes: - type: rest namespace: tsg_account_provisioning_v3-account-state-rest port: 8080 description: REST adapter for Twilio SendGrid Account Provisioning API — Account State. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v3/partners/accounts/{accountid}/state name: v3-partners-accounts-accountid-state description: REST surface for v3-partners-accounts-accountID-state. operations: - method: GET name: getaccountstate description: Get an account's state call: tsg_account_provisioning_v3-account-state.getaccountstate outputParameters: - type: object mapping: $. - method: PUT name: updateaccountstate description: Update an account's state call: tsg_account_provisioning_v3-account-state.updateaccountstate with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: tsg_account_provisioning_v3-account-state-mcp port: 9090 transport: http description: MCP adapter for Twilio SendGrid Account Provisioning API — Account State. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-account-s-state description: Get an account's state hints: readOnly: true destructive: false idempotent: true call: tsg_account_provisioning_v3-account-state.getaccountstate outputParameters: - type: object mapping: $. - name: update-account-s-state description: Update an account's state hints: readOnly: false destructive: false idempotent: true call: tsg_account_provisioning_v3-account-state.updateaccountstate with: body: tools.body outputParameters: - type: object mapping: $.