How to Use Amazon product options and availability in Gemini CLI
Returns an Amazon.com product's option dimensions, related ASINs, and displayed swatch availability, with optional offer summaries. Use it to compare choices when availability matters alongside size, color, or style.
Prompts to try with Amazon product options and availability in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use Amazon product options and availability for B09B8V1LZ3 and build a local comparison table showing each returned choice and its displayed swatch availability.
Use Amazon product options and availability for B07FZ8S74R and create a JSON fixture containing the returned ASINs, option labels, and swatch availability.
Use Amazon product options and availability to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Amazon product options and availability and tell me what changed since last week.
Check Amazon product options and availability and summarize what you find in three bullet points.
How to set up Amazon product options and availability in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI 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 Amazon product options and 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": "amazon-com/products/variants", "input": { "asin": "<asin>" } }'
Then paste one of the prompts above: Gemini CLI finds Amazon product options and availability on Spiral, shows the price and runs it.
Amazon product options and availability providers and prices
Spiral runs Amazon product options and availability through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Max priced | 1 to 8 | 5 | Upper bound on variants (including the selected one) that receive an offer summary when include_prices is true. |
| Include prices | on or off | Fetch each priced variant's product page for price and stock. Costs one upstream request per variant. |
Every API field of Amazon US · Variants is on its tool page: open its card above.
What can you do with Amazon product options and availability in Gemini CLI?
Build an ASIN-to-option table that your project's catalog code can use to distinguish Amazon sizes, colors, and styles. Compare returned attributes with existing records to find mapping errors before updating a product selector.
Build a product option table
Turn the returned ASINs and attributes into a table showing which size, color, or style belongs to each listed choice.
Check catalog mappings
Compare a retailer's existing product records with Amazon's linked ASINs and attributes. Flag records assigned to a different size or color for review.
Monitor assortment changes
Compare successive results for a known product and report newly returned ASINs, removed ASINs, and changed option labels.
Compare competitor option breadth
Count the returned color, size, or style choices for selected public listings. Use the comparison to identify differences in the displayed assortment.
Prepare an exact-option shortlist
Find the returned ASINs matching a buyer's requested attributes, such as a particular color and size, before checking purchase details.
Review listing relationships
Inspect the attributes attached to linked ASINs and flag unexpected labels or combinations for a catalog team's review.
More on Amazon product options and availability and Gemini CLI
Overview
Amazon product options and availability in other agents
Questions about Amazon product options and availability in Gemini CLI
Can Gemini CLI use Amazon product options and availability?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Amazon product options and availability like any built-in tool.
How much does Amazon product options and availability cost in Gemini CLI?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.
Do I need an Alexandria account to use Amazon product options and availability in Gemini CLI?
No. Spiral runs Amazon product options and 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 Amazon product options and availability in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Amazon product options and availability runs?
Amazon product options and availability runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.
Does every Amazon product have size or color options?
No. Amazon says some categories do not allow variation listings, while others support only selected types of differences. A listing's linked options therefore depend on its category.
Can I purchase the parent product?
Amazon defines the parent product as non-buyable. It connects the child products, so use the ASIN for the specific option when identifying an item to purchase.
How quickly do changes to product options appear?
Amazon's seller guidance says updates can take up to two hours to appear on the product page. Removing a child ASIN can take up to 24 hours.
Does the brand alone control the displayed product options?
No. Amazon combines product data from multiple sellers on a shared detail page. Its guidance says other sellers can change the linked product options.
What identifies a specific Amazon product option?
Amazon uses ASINs, its 10-character alphanumeric product identifiers. Keep the returned ASIN alongside each option's attributes so similarly named choices remain distinguishable.
Start using Amazon product options and availability in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


