WooCommerce · Capability

WooCommerce REST API — Shipping Zones

WooCommerce REST API — Shipping Zones. 2 operations. Lead operation: WooCommerce List All Shipping Zones. Self-contained Naftiko capability covering one Woocommerce business surface.

Run with Naftiko WoocommerceShipping Zones

What You Can Do

GET
Listshippingzones — WooCommerce List All Shipping Zones
/v1/shipping/zones
GET
Listshippingzonemethods — WooCommerce List Shipping Methods for a Zone
/v1/shipping/zones/{id}/methods

MCP Tools

woocommerce-list-all-shipping-zones

WooCommerce List All Shipping Zones

read-only idempotent
woocommerce-list-shipping-methods-zone

WooCommerce List Shipping Methods for a Zone

read-only idempotent

Capability Spec

rest-shipping-zones.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WooCommerce REST API — Shipping Zones
  description: 'WooCommerce REST API — Shipping Zones. 2 operations. Lead operation: WooCommerce List All Shipping Zones.
    Self-contained Naftiko capability covering one Woocommerce business surface.'
  tags:
  - Woocommerce
  - Shipping Zones
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WOOCOMMERCE_API_KEY: WOOCOMMERCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-shipping-zones
    baseUri: https://example.com/wp-json/wc/v3
    description: WooCommerce REST API — Shipping Zones business capability. Self-contained, no shared references.
    resources:
    - name: shipping-zones
      path: /shipping/zones
      operations:
      - name: listshippingzones
        method: GET
        description: WooCommerce List All Shipping Zones
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: shipping-zones-id-methods
      path: /shipping/zones/{id}/methods
      operations:
      - name: listshippingzonemethods
        method: GET
        description: WooCommerce List Shipping Methods for a Zone
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.WOOCOMMERCE_USER}}'
      password: '{{env.WOOCOMMERCE_PASS}}'
  exposes:
  - type: rest
    namespace: rest-shipping-zones-rest
    port: 8080
    description: REST adapter for WooCommerce REST API — Shipping Zones. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/shipping/zones
      name: shipping-zones
      description: REST surface for shipping-zones.
      operations:
      - method: GET
        name: listshippingzones
        description: WooCommerce List All Shipping Zones
        call: rest-shipping-zones.listshippingzones
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/shipping/zones/{id}/methods
      name: shipping-zones-id-methods
      description: REST surface for shipping-zones-id-methods.
      operations:
      - method: GET
        name: listshippingzonemethods
        description: WooCommerce List Shipping Methods for a Zone
        call: rest-shipping-zones.listshippingzonemethods
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-shipping-zones-mcp
    port: 9090
    transport: http
    description: MCP adapter for WooCommerce REST API — Shipping Zones. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: woocommerce-list-all-shipping-zones
      description: WooCommerce List All Shipping Zones
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-shipping-zones.listshippingzones
      outputParameters:
      - type: object
        mapping: $.
    - name: woocommerce-list-shipping-methods-zone
      description: WooCommerce List Shipping Methods for a Zone
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-shipping-zones.listshippingzonemethods
      outputParameters:
      - type: object
        mapping: $.