Spiral gives your agent every tool with one account. Browse the tools →

opencode · E-commerce

How to Use WooCommerce product details in opencode

Returns one product's descriptions, images, prices, stock information, and available variations. Use it to inspect a specific item and check its options before making a buying recommendation.

Prompts to try with WooCommerce product details in opencode

Copy an example into opencode, or ask in your own words.

Use WooCommerce product details for https://woocommerce.com/products/woocommerce-subscriptions/ and add its returned name, description, categories, and availability to a product fixture in this project.

WooCommerce product detailsopencode
Try asking
  • Use WooCommerce product details to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from WooCommerce product details and tell me what changed since last week.

  • Check WooCommerce product details and summarize what you find in three bullet points.

  • Pull the newest data from WooCommerce product details and give me the result as a table.

How to set up WooCommerce product details in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run WooCommerce product details

    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/get_product",
        "input": {
          "url": "<url>"
        }
      }'

Then paste one of the prompts above: opencode finds WooCommerce product details on Spiral, shows the price and runs it.

WooCommerce product details providers and prices

Spiral runs WooCommerce product details through Alexandria. Open a card for today's price, with every fee included.

AlexandriaE-commerce
WooCommerce stores · Get product
woocommerce-com/products/get_product

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
IDa number from 1

Product (or variation) id.

Every API field of WooCommerce stores · Get product is on its tool page: open its card above.

What can you do with WooCommerce product details in opencode?

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.

Audit category navigation

Map category parent relationships, inspect products assigned to each department, and identify confusing labels or misplaced items for a merchant's review.

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.

Review product listing content

Find products in a department and inspect their descriptions, images, and category assignments. Prepare a merchant review list of listings with thin descriptions or confusing organization.

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.

Questions about WooCommerce product details in opencode

Can opencode use WooCommerce product details?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run WooCommerce product details like any built-in tool.

How much does WooCommerce product details cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use WooCommerce product details in opencode?

No. Spiral runs WooCommerce product details 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 details in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while WooCommerce product details runs?

WooCommerce product details runs in the background. opencode 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.

Get started

Start using WooCommerce product details in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options