Avalara · Capability

Avalara Communications Tax API — Lookup

Avalara Communications Tax API — Lookup. 4 operations. Lead operation: Avalara Get PCode Jurisdiction Information. Self-contained Naftiko capability covering one Avalara business surface.

Run with Naftiko AvalaraLookup

What You Can Do

GET
Getpcodeinfo — Avalara Get PCode Jurisdiction Information
/v1/api/v2/afc/pcode/{pcode}
GET
Getserviceinfo — Avalara Get Service Information
/v1/api/v2/afc/serviceinfo
GET
Gettaxtypeinfo — Avalara Get Tax Type Details
/v1/api/v2/afc/taxtype/{taxtype}
GET
Gettransactionservicepairs — Avalara List Transaction/service Type Pairs
/v1/api/v2/afc/tspairs

MCP Tools

avalara-get-pcode-jurisdiction-information

Avalara Get PCode Jurisdiction Information

read-only idempotent
avalara-get-service-information

Avalara Get Service Information

read-only idempotent
avalara-get-tax-type-details

Avalara Get Tax Type Details

read-only idempotent
avalara-list-transaction-service-type

Avalara List Transaction/service Type Pairs

read-only idempotent

Capability Spec

communications-lookup.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Avalara Communications Tax API — Lookup
  description: 'Avalara Communications Tax API — Lookup. 4 operations. Lead operation: Avalara Get PCode Jurisdiction Information.
    Self-contained Naftiko capability covering one Avalara business surface.'
  tags:
  - Avalara
  - Lookup
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AVALARA_API_KEY: AVALARA_API_KEY
capability:
  consumes:
  - type: http
    namespace: communications-lookup
    baseUri: https://communicationsua.avalara.net
    description: Avalara Communications Tax API — Lookup business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-afc-PCode-pcode
      path: /api/v2/afc/PCode/{pcode}
      operations:
      - name: getpcodeinfo
        method: GET
        description: Avalara Get PCode Jurisdiction Information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: pcode
          in: path
          type: integer
          description: The PCode to look up
          required: true
    - name: api-v2-afc-serviceinfo
      path: /api/v2/afc/serviceinfo
      operations:
      - name: getserviceinfo
        method: GET
        description: Avalara Get Service Information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-v2-afc-taxtype-taxType
      path: /api/v2/afc/taxtype/{taxType}
      operations:
      - name: gettaxtypeinfo
        method: GET
        description: Avalara Get Tax Type Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: taxType
          in: path
          type: integer
          required: true
    - name: api-v2-afc-tspairs
      path: /api/v2/afc/tspairs
      operations:
      - name: gettransactionservicepairs
        method: GET
        description: Avalara List Transaction/service Type Pairs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.AVALARA_USER}}'
      password: '{{env.AVALARA_PASS}}'
  exposes:
  - type: rest
    namespace: communications-lookup-rest
    port: 8080
    description: REST adapter for Avalara Communications Tax API — Lookup. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v2/afc/pcode/{pcode}
      name: api-v2-afc-pcode-pcode
      description: REST surface for api-v2-afc-PCode-pcode.
      operations:
      - method: GET
        name: getpcodeinfo
        description: Avalara Get PCode Jurisdiction Information
        call: communications-lookup.getpcodeinfo
        with:
          pcode: rest.pcode
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/afc/serviceinfo
      name: api-v2-afc-serviceinfo
      description: REST surface for api-v2-afc-serviceinfo.
      operations:
      - method: GET
        name: getserviceinfo
        description: Avalara Get Service Information
        call: communications-lookup.getserviceinfo
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/afc/taxtype/{taxtype}
      name: api-v2-afc-taxtype-taxtype
      description: REST surface for api-v2-afc-taxtype-taxType.
      operations:
      - method: GET
        name: gettaxtypeinfo
        description: Avalara Get Tax Type Details
        call: communications-lookup.gettaxtypeinfo
        with:
          taxType: rest.taxType
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/afc/tspairs
      name: api-v2-afc-tspairs
      description: REST surface for api-v2-afc-tspairs.
      operations:
      - method: GET
        name: gettransactionservicepairs
        description: Avalara List Transaction/service Type Pairs
        call: communications-lookup.gettransactionservicepairs
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: communications-lookup-mcp
    port: 9090
    transport: http
    description: MCP adapter for Avalara Communications Tax API — Lookup. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: avalara-get-pcode-jurisdiction-information
      description: Avalara Get PCode Jurisdiction Information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: communications-lookup.getpcodeinfo
      with:
        pcode: tools.pcode
      outputParameters:
      - type: object
        mapping: $.
    - name: avalara-get-service-information
      description: Avalara Get Service Information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: communications-lookup.getserviceinfo
      outputParameters:
      - type: object
        mapping: $.
    - name: avalara-get-tax-type-details
      description: Avalara Get Tax Type Details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: communications-lookup.gettaxtypeinfo
      with:
        taxType: tools.taxType
      outputParameters:
      - type: object
        mapping: $.
    - name: avalara-list-transaction-service-type
      description: Avalara List Transaction/service Type Pairs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: communications-lookup.gettransactionservicepairs
      outputParameters:
      - type: object
        mapping: $.