# PriceBell: agent guide

PriceBell tracks Google Shopping products: each product on the user's watchlist is checked on a schedule (every 5 minutes to 24 hours, depending on the plan), every check is kept as price history, and the user gets an email when the price drops, reaches a target or the product is offered again. Human-readable documentation: https://www.pricebell.dev/docs

## Connect

- MCP endpoint (Streamable HTTP, stateless JSON): `https://www.pricebell.dev/api/mcp`
- Auth: OAuth for clients that support it (Claude, ChatGPT): add the URL, then log in and allow access. Otherwise `Authorization: Bearer <API_KEY>`, or `?key=<API_KEY>` for clients that only accept a URL
- Get a key: https://www.pricebell.dev/app#api (one key per tool, revocable at any time)

Claude Code:

```bash
claude mcp add --transport http pricebell https://www.pricebell.dev/api/mcp --header "Authorization: Bearer <API_KEY>"
```

Any client that reads an `mcpServers` JSON config:

```json
{ "mcpServers": { "pricebell": { "url": "https://www.pricebell.dev/api/mcp", "headers": { "Authorization": "Bearer <API_KEY>" } } } }
```

## Tools

| Tool | Arguments | Returns |
| --- | --- | --- |
| `get_account` | none | plan, plan_name, credits, renews_at, credits_refill_at, products, product_limit, fastest_interval_minutes, alert_credits, monthly_credits, history_days, api_requests_used, api_requests_limit, api_requests_reset_at, manage_url |
| `search_google_shopping` | `query`, `marketplace?` | results: google_product_id, title, image, price, currency, rating, reviews_count |
| `track_product` | `product`, `marketplace?`, `target_price?`, `interval_minutes?` | the tracked product: product_id, title, price, currency, lowest_price… |
| `list_products` | `google_product_id?`, `marketplace?`, `filter?`, `page?`, `limit?` | products (each with trend), total, page |
| `get_price_history` | `product_id`, `days?` | the product, history_days, history_limited and history: price, in_stock, coupon, seller, checked_at |
| `get_google_product_history` | `google_product_id`, `marketplace?`, `days?` | google_product_id, marketplace, currency, lowest_price, highest_price, average_price, history_days, history_limited, history: price, in_stock, coupon, seller, checked_at |
| `update_product` | `product_id`, `target_price?`, `interval_minutes?`, `alert_on_drop?`, `paused?` | the updated product |
| `check_product` | `product_id` | the product with its latest price |
| `untrack_product` | `product_id` | deleted, product_id |
| `get_google_shopping_sellers` | `product_id` | checked_at, pinned_found, several_versions, sellers_count, median_price, rules, offers: title, seller, seller_marketplace, comparison, pinned, price, old_price, tag, currency, url, excluded, excluded_by |
| `compare_google_shopping_regions` | `product_id`, `track_in?`, `currency?` | group_id, currency, rates_date, alert, regions: product_id, marketplace, price, currency, converted_price, gap_percent, seller, home, last_checked_at…, available_marketplaces, note |

## Recommended flow

1. The user names a product without a product ID: call `search_google_shopping` and confirm the right result with them.
2. Call `track_product` with the product ID (or the Google Shopping link). A product ID alone works only for a product PriceBell already knows in that country (a search result, or one added by its link before): otherwise send its Google Shopping link. It checks the price right away and returns it. Only set `target_price` or `interval_minutes` when the user asks.
3. For "how has the price moved", call `get_price_history` on a tracked product, or `get_google_product_history` for any product ID, without credits or tracking it. Prices are in the product's `currency`; `null` means there was no offer at that check.
4. Use `list_products` to answer questions about the whole watchlist, with `filter` for the usual ones: what dropped, what reached its target, what's out of stock or needs attention.
5. For "who sells it" or "where is it cheapest", call `get_google_shopping_sellers` on a tracked product: its sellers at the last check, cheapest first, for free; `excluded` marks those the user's rules leave out. When `several_versions` is true, its title covers several versions (capacities): suggest tracking a listing that names the one the user wants.

Each price check of a tracked product in one country costs 1 credit; a product checked daily uses about 30 credits a month. Each alert email costs 20 credits on the free plan, 10 with credit packs, 10 on Starter, 3 on Pro, 1 on Business; without enough credits, the alert isn't sent. The free plan tracks 50 products, checked daily (`interval_minutes` 1440). Accepted intervals: 5, 30, 60, 360, 720, 1440 minutes. Checks faster than daily need a plan or a credit pack: every 60 minutes with a pack or Starter, 30 with Pro, 5 with Business. The free plan includes 200 API and MCP requests a month (UTC) and reads the last 30 days of price history; a plan or a credit pack lifts both limits. GET /account (get_account), which says how many are left, isn't counted. On the free plan, alerts (price drop, offered again, target price) email for the first 5 products added among the active ones with an alert set; the others stay tracked, without emails (alerts_paused: true), until one of those has its alert turned off or is paused. A plan or a credit pack alerts on every product. alert_on_drop and target_price can be set on any product either way. When a tool fails, its text ends with the error code in parentheses, e.g. `(product_limit)`.

## Marketplaces

| Marketplace | Store | Country | Currency |
| --- | --- | --- | --- |
| `us` | US | United States | USD |
| `gb` | UK | United Kingdom | GBP |
| `fr` | FR | France | EUR |
| `de` | DE | Germany | EUR |
| `es` | ES | Spain | EUR |
| `it` | IT | Italy | EUR |
| `nl` | NL | Netherlands | EUR |
| `be` | BE | Belgium | EUR |
| `at` | AT | Austria | EUR |
| `ch` | CH | Switzerland | CHF |
| `ie` | IE | Ireland | EUR |
| `pt` | PT | Portugal | EUR |
| `pl` | PL | Poland | PLN |
| `se` | SE | Sweden | SEK |
| `dk` | DK | Denmark | DKK |
| `no` | NO | Norway | NOK |
| `fi` | FI | Finland | EUR |
| `cz` | CZ | Czechia | CZK |
| `hu` | HU | Hungary | HUF |
| `ro` | RO | Romania | RON |
| `gr` | GR | Greece | EUR |
| `ca` | CA | Canada | CAD |
| `mx` | MX | Mexico | MXN |
| `br` | BR | Brazil | BRL |
| `ar` | AR | Argentina | ARS |
| `cl` | CL | Chile | CLP |
| `co` | CO | Colombia | COP |
| `au` | AU | Australia | AUD |
| `nz` | NZ | New Zealand | NZD |
| `in` | IN | India | INR |
| `sg` | SG | Singapore | SGD |
| `ae` | AE | United Arab Emirates | AED |
| `za` | ZA | South Africa | ZAR |

## Reading a product

Test these in order; the first match is the product's state (the app shows the same as a badge):

| State | When | Meaning |
| --- | --- | --- |
| Checking | `checking is true` | A check is due or running. Poll GET /products/{id} every few seconds, or pass wait. |
| Paused | `status is "paused"` | Not checked, not charged. PATCH paused: false to resume, unless pause_reason is "team": our team paused it, and only we resume it (write to us). |
| Confirm your email | `last_error is "email_not_verified"` | The free credits come with the email confirmation; checks start right after it. |
| Waiting for credits | `last_error is "insufficient_credits"` | The balance is empty; the check runs again by itself once credits are added (manage_url). |
| Not found on Google Shopping | `last_error is "product_not_found"` | No page for this product ID on this marketplace (refunded). |
| Retrying soon | `last_error is "store_unavailable"` | Google Shopping couldn't be read (refunded). Retried automatically; nothing to do. |
| Queued | `last_checked_at is null` | Added, first check not done yet. |
| Out of stock | `in_stock is false` | Checked, but no offer: price is null. With alert_on_drop, the owner gets an email when it's back (on the free plan, if it's among the first 5 products with an alert). |
| In stock | `in_stock is true` | Checked, with an offer at price (in currency). |

## Watchlist filters (`filter` on list_products)

| filter | Products |
| --- | --- |
| `all` | Every tracked product (default). |
| `drops` | Cheaper now than when the product was added. |
| `target` | At or below its target price. |
| `out_of_stock` | No offer at the last check. |
| `attention` | The last check didn't go through (last_error is set): no credits, not found or Google Shopping unavailable. |
| `paused` | Paused by you: not checked, not charged. |

## last_error on a product

| Code | Meaning |
| --- | --- |
| `email_not_verified` | The account's email isn't confirmed yet, so it has no credits; the check runs as soon as it is. |
| `insufficient_credits` | The last check was skipped for lack of credits; it's retried every 6 hours. |
| `store_unavailable` | Google Shopping couldn't be read at the last check (refunded); retried within 30 minutes. |
| `product_not_found` | The product ID has no page on this marketplace (refunded). |

## Errors

| HTTP | Code | When |
| --- | --- | --- |
| 400 | `invalid_product` | product is neither a Google Shopping product ID (the catalogid in a Google Shopping link) nor a Google Shopping product link, or google_product_id isn't a Google Shopping product ID (the catalogid in a Google Shopping link). A product ID alone works only for a product PriceBell already knows in that country (a search result, or one added by its link before): otherwise send its Google Shopping link. |
| 400 | `unsupported_marketplace` | The link is a Google Shopping search in a country that isn't supported (supported: us, gb, fr, de, es, it, nl, be, at, ch, ie, pt, pl, se, dk, no, fi, cz, hu, ro, gr, ca, mx, br, ar, cl, co, au, nz, in, sg, ae, za). |
| 400 | `invalid_option` | A setting isn't valid: marketplace (us, gb, fr, de, es, it, nl, be, at, ch, ie, pt, pl, se, dk, no, fi, cz, hu, ro, gr, ca, mx, br, ar, cl, co, au, nz, in, sg, ae, za), filter, interval_minutes (5, 30, 60, 360, 720, 1440), target_price, alert_on_drop or paused. Also when the body isn't a JSON object, a required argument is missing, or the product to check is paused. |
| 401 | `unauthorized` | The API key is missing, revoked or invalid. |
| 402 | `api_limit` | A free account made its 200 API and MCP requests of the month (UTC). They start again on the 1st, and a plan or a credit pack lifts the limit; GET /account still answers. |
| 403 | `paid_option` | Checks faster than daily need a plan or a credit pack: every 60 minutes with a pack or Starter, 30 with Pro, 5 with Business. |
| 403 | `product_limit` | The account tracks as many products as its plan allows (50 on the free plan). |
| 403 | `paused_by_team` | paused: false on a product our team paused (pause_reason: "team"): only the team resumes it. Write to us. |
| 404 | `not_found` | No tracked product with this id on your account, or no such endpoint. |
| 405 | `method_not_allowed` | The endpoint doesn't take this HTTP method; the Allow header lists the ones it does. |
| 429 | `rate_limited` | More than 30 searches or 600 history reads in an hour, too many reads of Google Shopping at once, or too many different products read today: 200 a day on the free plan, 1,000 with a credit pack, then 1,000 with Starter, 3,000 with Pro, 10,000 with Business. Histories and new watchlist entries count, once per product; your watchlist and the products already read today stay available. Retry later, or after midnight UTC for the daily limit. |
| 500 | `generic` | Unexpected error on our side. Retry in a moment. |
| 502 | `store_unavailable` | Google Shopping couldn't be read right now (GET /search). Nothing is charged; retry in a moment. |

Searches are limited to 30 per hour per account, and `get_google_product_history` to 600.

## REST API

The same key works with the REST API: `https://www.pricebell.dev/api/v1`. OpenAPI schema: https://www.pricebell.dev/openapi.json

Plans and credits: https://www.pricebell.dev/pricing.md
