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
| Ability | store/list-shipping-classes |
| Toolset | WooCommerce — toolset/woocommerce |
| Group | WooCommerce › Store Configuration |
| Requires | WooCommerce, active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI 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
| Name | Type | What it is |
|---|---|---|
classes | array | Each class with its name, slug and product count. |
count | integer | How many classes are defined. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present 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
- List Shipping Zones — where the rates actually live
- Update Product Details — assign a product to a class
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category