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

opencode · E-commerce

How to Use Tiendanube store categories in opencode

Returns a Tiendanube or Nuvemshop store's category structure and paths. Use it to find the right department or subcategory before collecting products.

Prompts to try with Tiendanube store categories in opencode

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

Use Tiendanube store categories for tienda.juguetesrasti.com.ar and add its returned category hierarchy to the project's catalog navigation fixture.

Tiendanube store categoriesopencode
Try asking
  • Use Tiendanube store categories for tienda.juguetesrasti.com.ar, inspect the departments below MARCA, and save their returned names and paths as JSON in this repository.

  • Use Tiendanube store categories to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Tiendanube store categories and tell me what changed since last week.

  • Check Tiendanube store categories and summarize what you find in three bullet points.

How to set up Tiendanube store categories 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 Tiendanube store categories

    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": "tiendanube-com/products/list_categories",
        "input": {
          "store": "<store>"
        }
      }'

Then paste one of the prompts above: opencode finds Tiendanube store categories on Spiral, shows the price and runs it.

Tiendanube store categories providers and prices

Spiral runs Tiendanube store categories through Alexandria. Open a card for today's price, with every fee included.

AlexandriaE-commerce
Tiendanube / Nuvemshop stores · List categories
tiendanube-com/products/list_categories

What can you do with Tiendanube store categories in opencode?

Build a catalog review in your project using Tiendanube categories, product listings, and individual item checks. Use the returned structure to organize departments and inspect the choices behind selected products.

Review a retailer's assortment

Map departments with Tiendanube store categories, collect their items with Tiendanube product catalog, and inspect selected choices with Tiendanube product details. Produce a report of the product types and options actually found.

Build a shopping shortlist

Find a relevant department with Tiendanube store categories, shortlist items with Tiendanube product catalog, and check each finalist with Tiendanube product details. Return product links and available choices for the shopper to review.

Prepare a new arrival briefing

Choose departments with Tiendanube store categories, collect newly listed items with Tiendanube product catalog, and inspect selected additions with Tiendanube product details. Turn the results into a merchandising briefing with links to the items.

Check products before a campaign

Use Tiendanube store categories to scope a campaign collection and Tiendanube product catalog to find its items. Check advertised choices with Tiendanube product details before including them in campaign copy.

Review category navigation

Use Tiendanube store categories to map nested departments, then sample each department with Tiendanube product catalog. Flag category names whose returned products suggest confusing placement.

Questions about Tiendanube store categories in opencode

Can opencode use Tiendanube store categories?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Tiendanube store categories like any built-in tool.

How much does Tiendanube store categories 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 Tiendanube store categories in opencode?

No. Spiral runs Tiendanube store categories on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Tiendanube store categories in opencode?

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

Does opencode wait while Tiendanube store categories runs?

Tiendanube store categories runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Where does the Tiendanube data come from?

The provider reads public storefront pages and sitemaps from Tiendanube stores, including Nuvemshop stores in Brazil. It respects each store's robots.txt.

Does the storefront show every product a merchant has?

Tiendanube's unlisted products disappear from search and navigation while retaining working direct links. Hidden products cannot be opened by direct link, so public discovery cannot establish a merchant's full inventory.

How many products appear on a catalog page?

Tiendanube documents 12 products by default, with choices of 16 or 20 for selected store designs. Those counts describe storefront category pages, so they should not be treated as a universal endpoint limit.

How quickly can availability change?

Tiendanube stock can change with a sale or a cancellation that restores inventory. Availability can therefore change between a catalog check and a later product check.

Does an available product always have a finite stock count?

No. Tiendanube lets merchants select unlimited inventory, including for digital products, so availability does not always correspond to a finite number of units.

Get started

Start using Tiendanube store categories 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