Guide, for agent builders

Product search over MCP, call by call

A shopping question takes one tool call: search_products with the shopper's words. This page follows that call on our keyless demo server, shows the JSON your agent gets back, and says which of the four tools to use when.

1. Connect the demo server

No key, no sign-up. In Claude Code:

claude mcp add --transport http storag-demo https://mcp.storag.ai/demo/mcp

Cursor, Windsurf, VS Code and n8n take the same URL; the MCP server page has each config.

2. The shopper asks, the agent calls

"I need a tent for four, under 120." The agent turns that into one call:

{ "method": "tools/call",
  "params": { "name": "search_products",
    "arguments": { "q": "4 person tent under 120", "page_size": 3 } } }

The tool answers with JSON (shortened):

{ "query": "4 person tent under 120",
  "results": [
    { "rank": 1, "product": { "id": "DEMO-1942", "title": "Larchline Brisk 4-Person Family Tent",
        "price": { "amount": 97.99, "currency": "EUR" }, "availability": "in stock" } },
    { "rank": 2, "product": { "id": "DEMO-1718", "title": "Northfold 4-Person Backpacking Tent",
        "price": { "amount": 73.9, "currency": "EUR" }, "availability": "in stock" } },
    { "rank": 3, "product": { "id": "DEMO-1654", "title": "Granite Owl 4-Person 4-Season Tent",
        "price": { "amount": 81.99, "currency": "EUR" }, "availability": "in stock" } }
  ],
  "total": 13,
  "meta": { "judged": true, "complete": false, "alternatives": false, "fallback": null } }

"under 120" was applied as a price filter, so the agent need not check prices itself. meta.judged: true says an LLM judge kept only tents that fit; when meta.alternatives is true, nothing fitted and these are the closest products, which the agent should say.

The shopper likes the first one. The agent fetches it:

{ "method": "tools/call",
  "params": { "name": "get_product", "arguments": { "product_id": "DEMO-1942" } } }

3. Which tool, when

search_products
A shopper asks for something: "a 4 person tent under 120". Judged, filters read from the words.
text_search_products
You have an exact word, brand or product code and want every keyword match. Never judged.
get_product
The shopper picked one: full description, link and image for one ID.
list_products
Browse page by page, optionally narrowed by title, ID or brand.

All four are read-only. The search tools also take min_price, max_price, availability and sort when your agent already has them as numbers.

4. Writing your own client

The server speaks Streamable HTTP at https://mcp.storag.ai/demo/mcp. The whole exchange in curl:

URL=https://mcp.storag.ai/demo/mcp
H='-H Content-Type:application/json -H Accept:application/json,text/event-stream'

# 1. initialize; the answer's mcp-session-id header names the session
SID=$(curl -s -D - -o /dev/null $H $URL -d '{"jsonrpc":"2.0","id":1,"method":"initialize",
  "params":{"protocolVersion":"2025-06-18","capabilities":{},
  "clientInfo":{"name":"my-agent","version":"1"}}}' \
  | grep -i mcp-session-id | tr -d '\r' | cut -d' ' -f2)

# 2. tell the server you are ready, then call a tool
curl -s $H -H "mcp-session-id: $SID" $URL -d '{"jsonrpc":"2.0","method":"notifications/initialized"}'
curl -s $H -H "mcp-session-id: $SID" $URL -d '{"jsonrpc":"2.0","id":2,"method":"tools/call",
  "params":{"name":"search_products","arguments":{"q":"4 person tent under 120"}}}'

5. Point it at your own catalog

Sign up, import your Google Merchant feed and create a key. Then swap the demo for https://mcp.storag.ai/mcp with the key in the Authorization header:

claude mcp add --transport http storag https://mcp.storag.ai/mcp \
  --header "Authorization: Bearer <your API key>"

The tools stay the same four, and each key sees only its own project's products. Free up to 5,000 products and 5,000 queries a month, no credit card.