naftiko: 1.0.0-alpha2 info: label: Avalara AvaTax REST API — Accounts description: 'Avalara AvaTax REST API — Accounts. 2 operations. Lead operation: Avalara List All Accounts. Self-contained Naftiko capability covering one Avalara business surface.' tags: - Avalara - Accounts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: AVALARA_API_KEY: AVALARA_API_KEY capability: consumes: - type: http namespace: avatax-rest-accounts baseUri: https://rest.avatax.com description: Avalara AvaTax REST API — Accounts business capability. Self-contained, no shared references. resources: - name: api-v2-accounts path: /api/v2/accounts operations: - name: queryaccounts method: GET description: Avalara List All Accounts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-accounts-id path: /api/v2/accounts/{id} operations: - name: getaccount method: GET description: Avalara Retrieve a Single Account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer required: true - name: $include in: query type: string authentication: type: bearer token: '{{env.AVALARA_API_KEY}}' exposes: - type: rest namespace: avatax-rest-accounts-rest port: 8080 description: REST adapter for Avalara AvaTax REST API — Accounts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/accounts name: api-v2-accounts description: REST surface for api-v2-accounts. operations: - method: GET name: queryaccounts description: Avalara List All Accounts call: avatax-rest-accounts.queryaccounts outputParameters: - type: object mapping: $. - path: /v1/api/v2/accounts/{id} name: api-v2-accounts-id description: REST surface for api-v2-accounts-id. operations: - method: GET name: getaccount description: Avalara Retrieve a Single Account call: avatax-rest-accounts.getaccount with: id: rest.id $include: rest.$include outputParameters: - type: object mapping: $. - type: mcp namespace: avatax-rest-accounts-mcp port: 9090 transport: http description: MCP adapter for Avalara AvaTax REST API — Accounts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: avalara-list-all-accounts description: Avalara List All Accounts hints: readOnly: true destructive: false idempotent: true call: avatax-rest-accounts.queryaccounts outputParameters: - type: object mapping: $. - name: avalara-retrieve-single-account description: Avalara Retrieve a Single Account hints: readOnly: true destructive: false idempotent: true call: avatax-rest-accounts.getaccount with: id: tools.id $include: tools.$include outputParameters: - type: object mapping: $.