Avalara · Capability

Avalara AvaTax REST API — TaxRules

Avalara AvaTax REST API — TaxRules. 2 operations. Lead operation: Avalara List Tax Rules for a Company. Self-contained Naftiko capability covering one Avalara business surface.

Run with Naftiko AvalaraTaxRules

What You Can Do

GET
Listtaxrules — Avalara List Tax Rules for a Company
/v1/api/v2/companies/{companyid}/taxrules
POST
Createtaxrules — Avalara Create Tax Rules for a Company
/v1/api/v2/companies/{companyid}/taxrules

MCP Tools

avalara-list-tax-rules-company

Avalara List Tax Rules for a Company

read-only idempotent
avalara-create-tax-rules-company

Avalara Create Tax Rules for a Company

Capability Spec

avatax-rest-taxrules.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Avalara AvaTax REST API — TaxRules
  description: 'Avalara AvaTax REST API — TaxRules. 2 operations. Lead operation: Avalara List Tax Rules for a Company. Self-contained
    Naftiko capability covering one Avalara business surface.'
  tags:
  - Avalara
  - TaxRules
  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-taxrules
    baseUri: https://rest.avatax.com
    description: Avalara AvaTax REST API — TaxRules business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-companies-companyId-taxrules
      path: /api/v2/companies/{companyId}/taxrules
      operations:
      - name: listtaxrules
        method: GET
        description: Avalara List Tax Rules for a Company
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createtaxrules
        method: POST
        description: Avalara Create Tax Rules for a Company
        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.AVALARA_API_KEY}}'
  exposes:
  - type: rest
    namespace: avatax-rest-taxrules-rest
    port: 8080
    description: REST adapter for Avalara AvaTax REST API — TaxRules. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v2/companies/{companyid}/taxrules
      name: api-v2-companies-companyid-taxrules
      description: REST surface for api-v2-companies-companyId-taxrules.
      operations:
      - method: GET
        name: listtaxrules
        description: Avalara List Tax Rules for a Company
        call: avatax-rest-taxrules.listtaxrules
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createtaxrules
        description: Avalara Create Tax Rules for a Company
        call: avatax-rest-taxrules.createtaxrules
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: avatax-rest-taxrules-mcp
    port: 9090
    transport: http
    description: MCP adapter for Avalara AvaTax REST API — TaxRules. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: avalara-list-tax-rules-company
      description: Avalara List Tax Rules for a Company
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: avatax-rest-taxrules.listtaxrules
      outputParameters:
      - type: object
        mapping: $.
    - name: avalara-create-tax-rules-company
      description: Avalara Create Tax Rules for a Company
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: avatax-rest-taxrules.createtaxrules
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.