How to Use WooCommerce product attributes in Claude Code
Lists a store's product attribute taxonomies and terms, such as sizes and colors. Use it to understand the store's product vocabulary and plan useful comparison filters.
Prompts to try with WooCommerce product attributes in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use WooCommerce product attributes for woocommerce.com and build an attribute-label mapping for this project's comparison component using only the returned vocabulary.
Use WooCommerce product attributes to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from WooCommerce product attributes and tell me what changed since last week.
Check WooCommerce product attributes and summarize what you find in three bullet points.
Pull the newest data from WooCommerce product attributes and give me the result as a table.
How to set up WooCommerce product attributes in Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.
Use the Spiral skill
- Send Claude Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run WooCommerce product attributes
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "woocommerce-com/products/list_attributes", "input": { "store": "<store>" } }'
Then paste one of the prompts above: Claude Code finds WooCommerce product attributes on Spiral, shows the price and runs it.
WooCommerce product attributes providers and prices
Spiral runs WooCommerce product attributes through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Claude Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Page | 1 to 10000 | 1 | 1-based page; use next_page from the previous result. |
| Per page | 1 to 100 | 100 | per_page |
Every API field of WooCommerce stores · List attributes is on its tool page: open its card above.
What can you do with WooCommerce product attributes in Claude Code?
Build a WooCommerce catalog browser with product records, category navigation, and attribute labels from a real store. Use the returned catalog structure to populate the project's browsing and comparison components.
Build a buying shortlist
Browse a store's departments, identify useful attribute labels, find matching products, and inspect the shortlisted items before recommending a purchase.
Design product comparison filters
Use the store's attribute vocabulary and matching product records to decide which characteristics belong in a comparison table. Inspect individual products to check how those characteristics are populated.
Prepare a public catalog migration
Inventory published products, category relationships, and attribute vocabulary. Inspect representative product records to plan how public catalog content should map into the destination system.
Research a competitor's assortment
Compare departments, product characteristics, and matching listings in a public business catalog. Inspect selected products to explain differences in advertised features and availability.
Create a shopping support reference
Organize published product descriptions by department and attribute, then attach matching product links so support staff can answer catalog questions with specific examples.
Report catalog organization changes
Compare successive observations of categories, attribute labels, and product records. Summarize renamed departments, new product characteristics, and changed assignments with example product links.
More on WooCommerce product attributes and Claude Code
Overview
WooCommerce product attributes in other agents
Questions about WooCommerce product attributes in Claude Code
Can Claude Code use WooCommerce product attributes?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run WooCommerce product attributes like any built-in tool.
How much does WooCommerce product attributes cost in Claude Code?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.
Do I need an Alexandria account to use WooCommerce product attributes in Claude Code?
No. Spiral runs WooCommerce product attributes on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up WooCommerce product attributes in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while WooCommerce product attributes runs?
WooCommerce product attributes runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.
Which stores does the data cover?
The data comes from individual WooCommerce storefronts through their public Store API. Each query describes the selected store's own catalog.
Does the catalog include unpublished products?
Only published products are accessible through the Store API. Draft, pending, and other unpublished products are excluded from product collections.
Why might a published product have an empty description?
Password-protected products remain visible, but their descriptions and short descriptions are blank until the correct password has been submitted. Their prices, images, and categories can still be available.
How many catalog records can WooCommerce return per page?
WooCommerce documents a maximum of 100 items per page for paginated Store API collections. Larger catalogs require multiple pages.
How are categories different from attributes?
Categories describe departments and include parent relationships and product counts. Attributes describe product characteristics, such as Color or Size, while terms represent values such as Large.
Start using WooCommerce product attributes in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


