30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

List Shipping Classes

store/list-shipping-classes lists the shipping classes defined on the store and how many products are assigned to each.

Shipping classes let one rate apply to bulky items and another to small ones.

At a glance

Abilitystore/list-shipping-classes
ToolsetWooCommerce — toolset/woocommerce
GroupWooCommerce › Store Configuration
RequiresWooCommerce, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

A shipping class on its own does nothing. It is a label; the behaviour comes from a shipping method in a zone having a per-class rate configured for it. So a class can exist, be assigned to products, and still have no effect anywhere.

The product count is what makes the state legible. A class with no products is usually left over from an earlier setup and can be ignored; a class with many products and no corresponding rate in any zone is a configuration that looks deliberate and does nothing.

The counts also catch the opposite mistake: a bulky-items class with three products on a store that sells forty bulky things.

Input

This ability takes no input.

What comes back

NameTypeWhat it is
classesarrayEach class with its name, slug and product count.
countintegerHow many classes are defined.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

What shipping classes do we have?

It resolves to one call:

{
  "ability": "store/list-shipping-classes",
  "parameters": {}
}

Worth knowing

  • A class does nothing unless a shipping method in a zone has a rate for it.
  • An empty class is usually left over.
  • The product counts are the fastest way to spot a half-finished setup.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading