# Begad for AI agents (full text)

> Every page of https://begad.ae/agents in one file. Begad is a UAE online marketplace; agents can search, compare, check delivery and prepare carts, and the person checks out on begad.ae.


---

Source: https://begad.ae/agents

# Begad for AI agents

Let Claude, ChatGPT, Codex or your own agent shop Begad for people: search the catalogue in English or Arabic, compare products, check delivery to any emirate, track shipments, and hand the person a ready cart.

> **The person always checks out.** An agent never places an order or pays. It gives the person a Begad cart link; they choose the address, delivery and payment on Begad's own checkout page.

## Three ways in

| | What it is | Key |
|---|---|---|
| **MCP server** | `https://begad.ae/api/agent/mcp`. 11 shopping tools for any MCP client. | None |
| **Account MCP server** | `https://begad.ae/api/agent/mcp/account`. The same tools plus the person's orders, cart and wishlist. | The person signs in (OAuth) |
| **HTTP API** | JSON catalogue, product and price endpoints. | None |

## Start in one minute

- **Claude:** Settings > Connectors > Add custom connector, URL `https://begad.ae/api/agent/mcp`. See [Begad in Claude](/agents/claude).
- **ChatGPT:** add `https://begad.ae/api/agent/mcp` as an app in developer mode. See [Begad in ChatGPT](/agents/chatgpt).
- **Claude Code:** `claude mcp add --transport http begad https://begad.ae/api/agent/mcp`
- **Anything else:** see [Other assistants](/agents/other-assistants), or try it with curl in the [Quickstart](/agents/quickstart).

## What an agent can do

- Find products with the store's real search: synonyms, spelling fixes, Arabic, price filters, deals.
- Show full product details: photos, options, stock, seller, returns, warranty, reviews.
- Compare up to five products and pick the cheapest in stock.
- Quote the delivery fee and time to an emirate, and say when a seller does not deliver there.
- Track a shipment (SHP-...) and, with the person's permission, their own orders.
- Build a cart and give the person one link to check out.

## Pages

- [Quickstart](/agents/quickstart): a full search-to-cart run with curl
- [MCP server](/agents/mcp): endpoints and every tool
- [HTTP API](/agents/api): catalogue and price endpoints
- [Authentication](/agents/authentication): connecting a person's account
- [Use cases](/agents/use-cases)
- [Agent skill](/agents/skill): drop-in instructions for Claude and other agents
- [Rules for agents](/agents/rules)

Everything on this site is also plain Markdown: add `.md` to any page, or read [/llms-full.txt](https://begad.ae/llms-full.txt).

Begad for AI agents is new. Tool names and answers may still change; we will keep the old names working where we can. Questions: [contact us](https://begad.ae/en/contact-us).

---

Source: https://begad.ae/agents/quickstart

# Quickstart: from search to cart with curl

Find a power bank under AED 150, check delivery to Abu Dhabi, and get a cart link. Needs only `curl` (and `jq` to read the answers). No key.

## 1. See the tools

```bash
curl -s https://begad.ae/api/agent/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq '.result.tools[].name'
```

## 2. Search

```bash
curl -s https://begad.ae/api/agent/mcp -H 'Content-Type: application/json' -d '{
  "jsonrpc":"2.0","id":2,"method":"tools/call",
  "params":{"name":"search_products","arguments":{"query":"power bank","max_price":150,"limit":3}}
}' | jq '.result.structuredContent.items[] | {id, name, price: .price.amount, in_stock}'
```

Arabic works the same way: `"query":"شاحن متنقل"`.

## 3. Product details

```bash
curl -s https://begad.ae/api/agent/mcp -H 'Content-Type: application/json' -d '{
  "jsonrpc":"2.0","id":3,"method":"tools/call",
  "params":{"name":"get_product","arguments":{"product":"PRODUCT_ID"}}
}' | jq '.result.structuredContent | {name, price, options, returns, delivery}'
```

## 4. Delivery to Abu Dhabi

```bash
curl -s https://begad.ae/api/agent/mcp -H 'Content-Type: application/json' -d '{
  "jsonrpc":"2.0","id":4,"method":"tools/call",
  "params":{"name":"get_delivery_options","arguments":{"items":[{"product_id":PRODUCT_ID,"quantity":1}],"emirate":"Abu Dhabi"}}
}' | jq '.result.structuredContent'
```

## 5. Cart link

```bash
curl -s https://begad.ae/api/agent/mcp -H 'Content-Type: application/json' -d '{
  "jsonrpc":"2.0","id":5,"method":"tools/call",
  "params":{"name":"create_cart","arguments":{"items":[{"product_id":PRODUCT_ID,"quantity":2}]}}
}' | jq -r '.result.structuredContent.cart_link'
```

Give that link to the person. Opening it puts the items in their own Begad cart and continues to checkout.

## Without MCP

The same search is a plain GET:

```bash
curl -s 'https://begad.ae/api/agent/catalog?q=power%20bank&max_price=150&limit=3' | jq '.items[].name'
```

And the cart link can be built by hand: `https://begad.ae/en/cart?add_items=PRODUCT_ID:2,OTHER_ID:1&checkout=1`.

---

Source: https://begad.ae/agents/mcp

# MCP server

| | |
|---|---|
| Public server | `https://begad.ae/api/agent/mcp` |
| Account server | `https://begad.ae/api/agent/mcp/account` (OAuth, see [Authentication](/agents/authentication)) |
| Transport | Streamable HTTP: JSON-RPC 2.0 over POST, JSON answers, stateless (no session id) |
| Protocol versions | 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 |
| Server name | `begad` / `begad-account` |
| Limits | 600 tool calls per 5 minutes per IP address (per person on the account server) |

Every tool answer has `structuredContent` (JSON) and the same JSON as text. Problems come back as a normal answer with `isError: true` and an `error` message the model can read, not as a protocol error.

Prices are in AED with 5% VAT included, running deals applied, exactly what the person will see on Begad. `compare_at` and `discount_percent` show the struck-through price.

## Check it from a terminal

```bash
curl -s https://begad.ae/api/agent/mcp -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"test","version":"1"}}}'
```

## Tools

### `search_products`

Search Begad's catalogue with the store's own search (English or Arabic, synonyms, spelling fixes). Returns products with price in AED (VAT included), running deal, stock, rating, seller, image, product URL and a one-item cart link. Use filters instead of putting prices or brands in the query when you can.

| Argument | Type | Description |
|---|---|---|
| `query` | string | What the person is looking for, e.g. "wireless earbuds", "شاحن سيارة", "iphone 15 case". |
| `category` | string | Category slug, id or name from list_categories. Includes its subcategories. |
| `brand` | string | Brand slug or name from list_brands. |
| `store` | string | Seller store id or name from get_store. |
| `min_price` | number | Minimum price in AED. |
| `max_price` | number | Maximum price in AED. |
| `on_sale` | boolean | Only discounted products. |
| `include_out_of_stock` | boolean | Also return products that are out of stock (default false). |
| `sort` | string: relevance, price_low, price_high, newest, biggest_discount |  |
| `limit` | integer | Default 10. |
| `offset` | integer | For the next page. |
| `language` | string: en, ar | Language of product links and names. Defaults to Arabic for an Arabic query, otherwise English. |

### `get_product`

Full details of one product: description, all photos, options (size, colour), stock, seller, delivery, returns, warranty and recent reviews.

| Argument | Type | Description |
|---|---|---|
| `product` (required) | string | Product id, slug, SKU or begad.ae product URL. |
| `language` | string: en, ar | Language of product links and names. Defaults to Arabic for an Arabic query, otherwise English. |

### `compare_products`

Side-by-side details for 2 to 5 products, and which in-stock one is cheapest.

| Argument | Type | Description |
|---|---|---|
| `products` (required) | array | Product ids, slugs or URLs. |
| `language` | string: en, ar | Language of product links and names. Defaults to Arabic for an Arabic query, otherwise English. |

### `list_categories`

Begad's departments, or the subcategories of one, with slugs and product counts. Use the slug as search_products.category.

| Argument | Type | Description |
|---|---|---|
| `parent` | string | Category slug, id or name. Leave out for the top-level departments. |

### `list_brands`

Brands with products in stock, most products first, optionally filtered by name.

| Argument | Type | Description |
|---|---|---|
| `query` | string | Part of a brand name. |
| `limit` | integer |  |

### `list_deals`

Deal campaigns running now with their end time, and the biggest discounts in stock.

| Argument | Type | Description |
|---|---|---|
| `limit` | integer |  |
| `language` | string: en, ar | Language of product links and names. Defaults to Arabic for an Arabic query, otherwise English. |

### `get_store`

One seller store (description, verified brand, popular products), or the list of stores when store is left out.

| Argument | Type | Description |
|---|---|---|
| `store` | string | Store id, name or begad.ae/store URL. |
| `language` | string: en, ar | Language of product links and names. Defaults to Arabic for an Arabic query, otherwise English. |

### `get_delivery_options`

Delivery fee, free-delivery threshold, delivery time and payment methods for a set of products to an emirate. Tells you when a seller does not deliver to that place.

| Argument | Type | Description |
|---|---|---|
| `items` (required) | array | List of `{product_id, quantity}`. |
| `emirate` | string: Abu Dhabi, Dubai, Sharjah, Ajman, Umm Al Quwain, Ras Al Khaimah, Fujairah |  |
| `area` | string | City or area, e.g. "Al Ain", "Jumeirah". Optional. |

### `track_shipment`

Delivery status and history of a Begad shipment number (SHP-...).

| Argument | Type | Description |
|---|---|---|
| `shipment_number` (required) | string |  |

### `get_store_policies`

How delivery, payment, returns and the lowest-price promise work at Begad, with links to the full policies.

| Argument | Type | Description |
|---|---|---|
| `language` | string: en, ar | Language of product links and names. Defaults to Arabic for an Arabic query, otherwise English. |

### `create_cart`

Put products into the person's own Begad cart and return a checkout link. Never places an order: the person checks out and pays on Begad.

| Argument | Type | Description |
|---|---|---|
| `items` (required) | array | List of `{product_id, quantity}`. |
| `language` | string: en, ar | Language of product links and names. Defaults to Arabic for an Arabic query, otherwise English. |

### `get_my_orders` (account server)

The signed-in person's recent Begad orders with status and total.

| Argument | Type | Description |
|---|---|---|
| `limit` | integer |  |

### `get_my_order` (account server)

Items, payment, status and live delivery tracking of one of the person's orders.

| Argument | Type | Description |
|---|---|---|
| `order_number` (required) | string | Like BGD-20261130-ABC123. |

### `get_my_cart` (account server)

What is in the person's Begad cart now.

| Argument | Type | Description |
|---|---|---|
| `language` | string: en, ar | Language of product links and names. Defaults to Arabic for an Arabic query, otherwise English. |

### `get_my_wishlist` (account server)

Products the person saved to their wishlist, with current prices.

| Argument | Type | Description |
|---|---|---|
| `language` | string: en, ar | Language of product links and names. Defaults to Arabic for an Arabic query, otherwise English. |



---

Source: https://begad.ae/agents/api

# HTTP API

Read-only JSON endpoints, no key, CORS open, cached for about a minute. For anything beyond reading the catalogue, use the [MCP server](/agents/mcp).

## Search and list products

`GET https://begad.ae/api/agent/catalog`

| Parameter | Description |
|---|---|
| `q` | Search words, English or Arabic (the store's own search) |
| `category` | Category slug or id (includes subcategories) |
| `brand` | Brand slug or id |
| `min_price`, `max_price` | AED |
| `on_sale` | `1` for discounted products only |
| `sort` | `relevance`, `price_low`, `price_high`, `newest`, `biggest_discount` |
| `limit` | 1-50, default 20 |
| `offset` | For the next page |

```bash
curl -s 'https://begad.ae/api/agent/catalog?q=air%20fryer&sort=price_low&limit=5'
```

## One product

`GET https://begad.ae/api/agent/products/{id or slug}`

## Current prices for many products

`GET https://begad.ae/api/agent/prices?ids=123,456` (up to 200 ids). With `brand=<slug>&details=1`: every product of one brand with names, photos and links.

## Other machine-readable files

- Product feed (Google Merchant format): [https://begad.ae/product-feed.xml](https://begad.ae/product-feed.xml)
- Sitemap: [https://begad.ae/sitemap.xml](https://begad.ae/sitemap.xml)
- [llms.txt](https://begad.ae/llms.txt) and [llms-full.txt](https://begad.ae/llms-full.txt)
- MCP server description: [https://begad.ae/.well-known/mcp.json](https://begad.ae/.well-known/mcp.json)

## Cart link

`https://begad.ae/en/cart?add_items=ID:QTY,ID:QTY&checkout=1` (Arabic: `/ar/cart`). A Begad SKU works too: `add_sku=SKU:QTY`.

---

Source: https://begad.ae/agents/authentication

# Connecting a person's Begad account

The public server needs nothing. The **account server** (`https://begad.ae/api/agent/mcp/account`) shows the person's own orders, cart and wishlist, and `create_cart` there puts items straight into their Begad cart. It uses OAuth 2.1 with PKCE, as the MCP specification describes, so Claude and ChatGPT handle it on their own: add the account server URL and the person is sent to Begad to sign in and approve.

## What the person sees

They sign in on begad.ae (password, Google, Apple), then a page names the assistant and what it may do, with **Allow** and **Cancel**. It also says the assistant can never place orders, pay, or see addresses, phone numbers or cards. They can disconnect it any time under **My Account > Connected assistants**; that stops it at once.

## Endpoints

| | |
|---|---|
| Resource metadata | `https://begad.ae/.well-known/oauth-protected-resource/api/agent/mcp/account` |
| Server metadata | `https://begad.ae/.well-known/oauth-authorization-server` |
| Register a client (RFC 7591) | `POST https://begad.ae/api/agent/oauth/register` |
| Authorize | `https://begad.ae/api/agent/oauth/authorize` |
| Token | `POST https://begad.ae/api/agent/oauth/token` |
| Revoke (RFC 7009) | `POST https://begad.ae/api/agent/oauth/revoke` |

- Public clients only: PKCE with S256 is required, no client secret.
- Redirect URIs must be `https`, or `http` on `127.0.0.1` / `localhost` (any port) for CLIs and desktop apps.
- Access tokens last 1 hour; refresh tokens 90 days. Send `Authorization: Bearer <token>`.
- A request without a valid token gets `401` with `WWW-Authenticate: Bearer resource_metadata="..."`.

## Scopes

| Scope | Allows |
|---|---|
| `shopping` | Search and build cart links |
| `cart` | Read the person's cart and add to it |
| `orders` | Read their orders and delivery status |
| `wishlist` | Read their wishlist |

Leave `scope` out to ask for all four. The person approves them together.

## Your own client

```bash
# 1. Register once
curl -s -X POST https://begad.ae/api/agent/oauth/register -H 'Content-Type: application/json' \
  -d '{"client_name":"My shopping agent","redirect_uris":["http://127.0.0.1:8765/callback"]}'
# 2. Send the person to
#    https://begad.ae/api/agent/oauth/authorize?response_type=code&client_id=...&redirect_uri=...&code_challenge=...&code_challenge_method=S256&state=...
# 3. Exchange the code
curl -s -X POST https://begad.ae/api/agent/oauth/token \
  -d grant_type=authorization_code -d client_id=... -d code=... -d code_verifier=... -d redirect_uri=...
```

---

Source: https://begad.ae/agents/claude

# Begad in Claude

## Claude (web, desktop, mobile)

1. Open **Settings > Connectors** and choose **Add custom connector**.
2. Name: `Begad`. URL: `https://begad.ae/api/agent/mcp`
3. In a chat, ask for example: *"Find me a 20,000 mAh power bank on Begad under 120 dirhams and give me a cart link."*

To let Claude see the person's orders and cart, use `https://begad.ae/api/agent/mcp/account` instead. Claude opens Begad's sign-in and consent page the first time.

On Team and Enterprise plans an owner adds the connector for the organisation first.

## Claude Code

```bash
claude mcp add --transport http begad https://begad.ae/api/agent/mcp
# with the person's account:
claude mcp add --transport http begad-account https://begad.ae/api/agent/mcp/account
```

## Claude API (MCP connector)

```json
{
  "mcp_servers": [{ "type": "url", "url": "https://begad.ae/api/agent/mcp", "name": "begad" }]
}
```

## Agent skill

For agents that read skills, install the [Begad agent skill](/agents/skill).

---

Source: https://begad.ae/agents/chatgpt

# Begad in ChatGPT

ChatGPT can use MCP servers as apps (connectors) where your plan allows developer mode.

1. Open **Settings > Apps & Connectors > Advanced settings** and turn on **Developer mode**.
2. Choose **Create** (new app / connector). Name `Begad`, MCP server URL `https://begad.ae/api/agent/mcp`, authentication **None**.
3. In a chat, pick Begad from the tools menu and ask, for example: *"Compare the three cheapest air fryers on Begad and tell me which one delivers to Sharjah."*

For orders and cart, use `https://begad.ae/api/agent/mcp/account` with authentication **OAuth**; ChatGPT registers itself and sends the person to Begad to approve.

Menu names change between ChatGPT versions; if yours differ, look for "connectors" or "apps" in settings.

## OpenAI API (Responses API)

```json
{
  "tools": [{ "type": "mcp", "server_label": "begad", "server_url": "https://begad.ae/api/agent/mcp", "require_approval": "never" }]
}
```

---

Source: https://begad.ae/agents/other-assistants

# Codex, Cursor, VS Code and others

Any client that speaks MCP over Streamable HTTP can use `https://begad.ae/api/agent/mcp` directly.

## Cursor (`~/.cursor/mcp.json`)

```json
{ "mcpServers": { "begad": { "url": "https://begad.ae/api/agent/mcp" } } }
```

## VS Code (`.vscode/mcp.json`)

```json
{ "servers": { "begad": { "type": "http", "url": "https://begad.ae/api/agent/mcp" } } }
```

## OpenAI Codex CLI

```bash
codex mcp add begad --url https://begad.ae/api/agent/mcp
```

Older Codex versions only start local (stdio) servers; use the bridge below.

## Clients that only run local servers

The `mcp-remote` bridge turns the URL into a local server:

```json
{ "mcpServers": { "begad": { "command": "npx", "args": ["-y", "mcp-remote", "https://begad.ae/api/agent/mcp"] } } }
```

## No MCP at all

Use the [HTTP API](/agents/api) and build the cart link yourself.

---

Source: https://begad.ae/agents/use-cases

# Use cases

- **Personal shopper.** "Find a gift for a 6-year-old who loves Lego, under AED 200, delivered to Dubai by the weekend." The agent searches the Toys category, checks stock and delivery, and sends one cart link.
- **Weekly grocery list.** The person pastes a list; the agent finds each item (English or Arabic names), skips what is out of stock, and returns one cart.
- **Deal hunting.** "What electronics are on sale today?" with `list_deals` and `search_products` (`on_sale`, `sort: biggest_discount`).
- **Comparison.** `compare_products` for specs, price, warranty and returns side by side.
- **Where is my order?** With the account server, `get_my_orders` and `get_my_order` give status and live tracking. Without it, `track_shipment` for a SHP number.
- **Price check for another site.** The HTTP API gives current Begad prices for up to 200 products in one call.
- **Product not on Begad.** When a search finds nothing, the result carries a product-request link: Begad sources it at the lowest UAE price.

---

Source: https://begad.ae/agents/skill

# Begad agent skill

An [Agent Skill](https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview) is a folder with a `SKILL.md` that tells an assistant when and how to do something. The Begad skill teaches it to shop on Begad with the MCP server (or the HTTP API when it has no MCP).

- Download: [https://begad.ae/agents/skill/SKILL.md](https://begad.ae/agents/skill/SKILL.md)
- Claude Code: save it as `~/.claude/skills/begad-shopping/SKILL.md`.
- Claude apps: zip a `begad-shopping` folder containing `SKILL.md` and upload it under Settings > Capabilities > Skills.

```markdown
---
name: begad-shopping
description: Shop on Begad (begad.ae), a UAE online marketplace, for the user. Use when the user wants to find, compare or buy products in the UAE, asks about prices or deals on Begad, delivery to an emirate, or the status of a Begad order or shipment.
---

# Shopping on Begad

Begad is an online marketplace in the United Arab Emirates. Prices are in AED and include 5% VAT. You help the user find products and hand them a cart; **the user always checks out and pays on begad.ae themselves.**

## Tools

Use the Begad MCP server if it is connected (`https://begad.ae/api/agent/mcp`, or `https://begad.ae/api/agent/mcp/account` for the user's orders and cart). Otherwise use the HTTP API: `GET https://begad.ae/api/agent/catalog?q=...` and `GET https://begad.ae/api/agent/products/<id>`.

## How to help

1. **Understand the need**: budget, emirate, deadline, must-have features. Ask only if it changes the search.
2. **Search** with `search_products`. Put limits in filters (`max_price`, `category`, `brand`, `on_sale`) and keep `query` short. Arabic queries work. Use `list_categories` when the request is vague.
3. **Check** the best two or three with `get_product` (stock, options, returns, warranty) or `compare_products`. Never recommend something out of stock.
4. **Delivery**: `get_delivery_options` with the user's emirate for the fee, free-delivery threshold and timing.
5. **Cart**: `create_cart` with the chosen products and quantities, then give the user the `cart_link` and say what is in it and the total before delivery. If the product has options (size, colour), tell the user to pick theirs in the cart.
6. **After the order**: `track_shipment` for an SHP number; with the account server, `get_my_orders` / `get_my_order`.

## Rules

- Never claim an order was placed. Never try to pay or fill in checkout.
- Show prices as AED and mention running deals and their end time when relevant.
- Link products with the `url` the tools return.
- If nothing fits, say so honestly and offer the product-request link from the search result.
```

---

Source: https://begad.ae/agents/rules

# Rules for agents

- **Never pay or place orders.** Give the person the cart link. Do not fill in Begad's checkout or payment pages for them.
- **Do not sign in as a customer or create accounts.** For account features, use the account server so the person approves you themselves.
- **Quote what the tools say.** Prices, stock and delivery change; check them again right before you hand over a cart. Say prices are in AED and include VAT.
- **Keep account data private.** What the account tools return is for that person only.
- **Be fair to the servers.** Use the tools and the JSON endpoints, not page scraping. Keep within the published limits.
- **Do not touch the staff portals** (admin.begad.ae, seller.begad.ae, logistics.begad.ae other than the public tracking page).
- Begad may change or pause these interfaces, and may block clients that break these rules.
