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

Claude Code · E-commerce

How to Use Shopify product availability in Claude Code

Returns one product’s full details, size and color choices, and availability for the effective selection. Use it to check a shopper’s exact choice before recommending it, since Shopify can relax an unavailable combination.

Prompts to try with Shopify product availability in Claude Code

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

Find a TOG24 Craven jacket for Seattle, then use Shopify product availability to build a size chooser from its returned options.

Shopify product availabilityClaude Code
Try asking
  • Find a black rain jacket for Seattle, then use Shopify product availability to make the project show whether the returned size medium and color match the requested combination.

  • Use Shopify product availability to look this up and give me the result as a table. Save the result in ./assets.

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

  • Check Shopify product availability and summarize what you find in three bullet points.

How to set up Shopify product availability in Claude Code

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

Use Spiral's MCP server

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

  1. Send Claude Code 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 Shopify product availability

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

Then paste one of the prompts above: Claude Code finds Shopify product availability on Spiral, shows the price and runs it.

Shopify product availability providers and prices

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

AlexandriaE-commerce
Shopify · Product details
shopify/catalog/get_product

What can you do with Shopify product availability in Claude Code?

Build a product chooser that shows Shopify descriptions, images, and available options beside a shopper’s shortlist. Check the returned selection before the interface labels a size and color as a match.

Choose rainwear for a trip

Find rain jackets for a Seattle trip, revisit any product links the shopper already has, and inspect the final size and color choices.

Build a gift shortlist

Find ceramic mugs for a gift, compare them with the buyer’s saved product links, and inspect the available options before presenting a shortlist.

Check clothing choices

Discover crewneck sweaters, resolve a shopper’s existing links, and check whether the returned size and color match what they want.

Replace an unavailable choice

Revisit a saved jacket, inspect its availability, and find alternatives when the shopper’s preferred combination cannot be matched.

Resume a shopping decision

Resolve a shopper’s saved product URL and inspect its current options so they can continue choosing without starting another descriptive search.

Turn a description into a concrete choice

Start with a request such as a black rain jacket, then inspect one matching product’s details and available combinations.

Questions about Shopify product availability in Claude Code

Can Claude Code use Shopify product availability?

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Shopify product availability like any built-in tool.

How much does Shopify product availability 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 Shopify product availability in Claude Code?

No. Spiral runs Shopify product availability on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Shopify product availability in Claude Code?

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

Does Claude Code wait while Shopify product availability runs?

Shopify product availability runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

Does Shopify Catalog include every Shopify product?

No. Products with Unlisted status or hidden from search engines are excluded from Shopify Catalog.

How fresh are the product details?

Shopify says its merchants’ products carry current pricing and inventory from the store. Its display guidelines require pricing and availability retrieved within 10 minutes, and titles, descriptions, and options retrieved within 24 hours.

Is every returned field written by the merchant?

No. All three Catalog tools can include fields inferred or enriched by Shopify.

Does a returned product guarantee my requested size and color?

No. When the full selection has no match, Shopify can drop part of it, so the returned combination can differ from the shopper’s request.

Get started

Start using Shopify product availability 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 Claude Code

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