naftiko: 1.0.0-alpha2 info: label: Avalara AvaTax REST API — Definitions description: 'Avalara AvaTax REST API — Definitions. 5 operations. Lead operation: Avalara List All Countries Supported by AvaTax. Self-contained Naftiko capability covering one Avalara business surface.' tags: - Avalara - Definitions 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-definitions baseUri: https://rest.avatax.com description: Avalara AvaTax REST API — Definitions business capability. Self-contained, no shared references. resources: - name: api-v2-definitions-countries path: /api/v2/definitions/countries operations: - name: listcountries method: GET description: Avalara List All Countries Supported by AvaTax outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-definitions-entityusecodes path: /api/v2/definitions/entityusecodes operations: - name: listentityusecodes method: GET description: Avalara List All Entity Use Codes outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-definitions-jurisdictions path: /api/v2/definitions/jurisdictions operations: - name: listjurisdictions method: GET description: Avalara List All Jurisdictions outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v2-definitions-nexus-country path: /api/v2/definitions/nexus/{country} operations: - name: listnexusbycountry method: GET description: Avalara List Nexus Options for a Country outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: country in: path type: string required: true - name: api-v2-definitions-taxcodes path: /api/v2/definitions/taxcodes operations: - name: listtaxcodes method: GET description: Avalara List All Tax Codes outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.AVALARA_API_KEY}}' exposes: - type: rest namespace: avatax-rest-definitions-rest port: 8080 description: REST adapter for Avalara AvaTax REST API — Definitions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v2/definitions/countries name: api-v2-definitions-countries description: REST surface for api-v2-definitions-countries. operations: - method: GET name: listcountries description: Avalara List All Countries Supported by AvaTax call: avatax-rest-definitions.listcountries outputParameters: - type: object mapping: $. - path: /v1/api/v2/definitions/entityusecodes name: api-v2-definitions-entityusecodes description: REST surface for api-v2-definitions-entityusecodes. operations: - method: GET name: listentityusecodes description: Avalara List All Entity Use Codes call: avatax-rest-definitions.listentityusecodes outputParameters: - type: object mapping: $. - path: /v1/api/v2/definitions/jurisdictions name: api-v2-definitions-jurisdictions description: REST surface for api-v2-definitions-jurisdictions. operations: - method: GET name: listjurisdictions description: Avalara List All Jurisdictions call: avatax-rest-definitions.listjurisdictions outputParameters: - type: object mapping: $. - path: /v1/api/v2/definitions/nexus/{country} name: api-v2-definitions-nexus-country description: REST surface for api-v2-definitions-nexus-country. operations: - method: GET name: listnexusbycountry description: Avalara List Nexus Options for a Country call: avatax-rest-definitions.listnexusbycountry with: country: rest.country outputParameters: - type: object mapping: $. - path: /v1/api/v2/definitions/taxcodes name: api-v2-definitions-taxcodes description: REST surface for api-v2-definitions-taxcodes. operations: - method: GET name: listtaxcodes description: Avalara List All Tax Codes call: avatax-rest-definitions.listtaxcodes outputParameters: - type: object mapping: $. - type: mcp namespace: avatax-rest-definitions-mcp port: 9090 transport: http description: MCP adapter for Avalara AvaTax REST API — Definitions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: avalara-list-all-countries-supported description: Avalara List All Countries Supported by AvaTax hints: readOnly: true destructive: false idempotent: true call: avatax-rest-definitions.listcountries outputParameters: - type: object mapping: $. - name: avalara-list-all-entity-use description: Avalara List All Entity Use Codes hints: readOnly: true destructive: false idempotent: true call: avatax-rest-definitions.listentityusecodes outputParameters: - type: object mapping: $. - name: avalara-list-all-jurisdictions description: Avalara List All Jurisdictions hints: readOnly: true destructive: false idempotent: true call: avatax-rest-definitions.listjurisdictions outputParameters: - type: object mapping: $. - name: avalara-list-nexus-options-country description: Avalara List Nexus Options for a Country hints: readOnly: true destructive: false idempotent: true call: avatax-rest-definitions.listnexusbycountry with: country: tools.country outputParameters: - type: object mapping: $. - name: avalara-list-all-tax-codes description: Avalara List All Tax Codes hints: readOnly: true destructive: false idempotent: true call: avatax-rest-definitions.listtaxcodes outputParameters: - type: object mapping: $.