Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ZOODEX_CITYNoInitial city slugkerman
ZOODEX_DEVICENodevice header (1 = desktop web, 2 = mobile web)1
ZOODEX_WEB_URLNoWeb app URL that payment gateways redirect back tohttps://zoodex.ir
ZOODEX_API_BASENoAPI base URLhttps://api.zoodex.ir/api/
ZOODEX_CLIENT_IDNoOAuth client ID used for grant_type=refresh_tokenweb app's public client
ZOODEX_TIMEOUT_MSNoRequest timeout20000
ZOODEX_ACCESS_TOKENNoOptional token to start the session with
ZOODEX_SESSION_FILENoWhere tokens, cart token, city and location are stored~/.zoodex-mcp/session.json
ZOODEX_CLIENT_SECRETNoOAuth client secret used for grant_type=refresh_tokenweb app's public client
ZOODEX_REFRESH_TOKENNoOptional token to start the session with

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Zoodex is an Iranian food & grocery delivery app. These tools talk to the real Zoodex API on the user's behalf.

Typical flow:

  1. Location: zoodex_list_cities / zoodex_set_city, then zoodex_set_location or (logged in) zoodex_select_address.

  2. Discover: zoodex_search, zoodex_list_vendors, zoodex_vendor_menu, zoodex_find_best_deals (best discounts), zoodex_deal_section.

  3. Cart: zoodex_cart_set_item (variety_id + absolute quantity), zoodex_cart_view, zoodex_vendor_coupons / zoodex_select_coupon.

  4. Login when needed: zoodex_login_start (SMS code) -> zoodex_login_verify. Tokens are stored locally and refreshed automatically.

  5. Checkout: zoodex_checkout_options -> zoodex_place_order confirm=false (preview) -> user confirms -> confirm=true. Give the user bank_url for online payment, then zoodex_payment_status.

  6. Wallet: zoodex_wallet, zoodex_increase_credit (returns bank_url). Orders: zoodex_orders, zoodex_order_details, zoodex_reorder, zoodex_rate_order.

Rules: prices shown by these tools are in toman. Never place an order or start a payment without explicit user confirmation of items, total and payment method. Search queries work best in Persian.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
zoodex_login_startA

Step 1 of login. Checks the mobile number and (by default) sends an SMS one-time code. Then call zoodex_login_verify with the code. Use method='password' for an existing account that has a password (no SMS sent). If the API asks for a captcha, call zoodex_get_captcha and pass its key and the solved text here.

zoodex_get_captchaA

Fetch a captcha image. Only needed when zoodex_login_start fails asking for a captcha. Show the image to the user, then pass the text and the key to zoodex_login_start.

zoodex_login_verifyA

Step 2 of login. Verifies the SMS code (or password) and stores the access + refresh tokens in the local session. Any items added to the cart while logged out are merged into the account cart.

zoodex_sessionA

Show login state, token expiry, selected city, location, delivery address and cart token stored by this MCP server.

zoodex_refresh_tokenA

Force a refresh of the access token using the stored refresh token. Normally not needed: tokens are refreshed automatically before expiry and on any 401.

zoodex_set_tokensA

Use an existing web session instead of SMS login: paste the accessToken/refreshToken from the zoodex.ir browser localStorage key token. The token is validated by fetching the identity.

zoodex_logoutA

Forget the stored tokens and cart token. City and location are kept.

zoodex_profileA

Get the logged-in user's identity and profile (name, mobile, default address, Zoodex Plus status, order count, invitation info).

zoodex_list_citiesA

List the cities Zoodex serves (slug, title, center coordinates).

zoodex_set_cityA

Select the city used for search, vendor lists and checkout. Clears a location that belongs to another city.

zoodex_search_placeA

Geocode a street/neighbourhood/landmark name (Persian works best) to coordinates near the current city. Use the result with zoodex_set_location or zoodex_add_address.

zoodex_set_locationA

Set the current location (used for nearby vendors, delivery fees and in-area checks). Reverse-geocodes it and switches city if needed.

zoodex_list_addressesA

List saved delivery addresses. The selected one is used at checkout.

zoodex_select_addressA

Use a saved address for delivery: sets the session location/city to it and optionally makes it the account default.

zoodex_add_addressB

Save a new delivery address and select it for checkout.

zoodex_update_addressA

Edit a saved address. Only pass the fields to change.

zoodex_delete_addressC

Delete a saved address.

zoodex_searchA

Search Zoodex in the selected city. scope='all' returns top vendors and products, 'products' or 'vendors' are paged. Use only_discounted=true for items on sale. Product results include variety_id, which is what zoodex_cart_set_item needs. Prices are in toman (the API uses rials; 1 toman = 10 rials).

zoodex_search_optionsA

Popular searches, tags, your recent searches, vendor types and the filters/sorts the search API accepts.

zoodex_vendor_typesA

Vendor categories in the selected city (restaurant, fast food, cafe, supermarket, ...). Use the slug with zoodex_list_vendors.

zoodex_list_vendorsA

List vendors of a type near the current location, e.g. type='resturant' (sic), 'fastfood', 'cafe', 'supermarket', or 'all'. Set include_filters=true to see the filters/sub-categories this list supports, then pass them in filters (as query params, e.g. {plus:1}).

zoodex_vendor_detailsC

Information about a vendor: open status, working hours, minimum order, delivery fee to the current location, rating, coupons, address.

zoodex_vendor_menuA

Get a restaurant/cafe menu grouped by category with prices and discounts. Filter with query, category or only_discounted. For supermarkets use zoodex_market_search instead. Prices are in toman (the API uses rials; 1 toman = 10 rials).

zoodex_market_searchA

Search products inside a supermarket vendor, or list its categories (omit query). Use category_id to list a category's products.

zoodex_product_detailsA

Full details of one product (varieties, required/optional additionals, vendor). Use before adding items that have additionals.

zoodex_vendor_reviewsC

Customer reviews and ratings for a vendor.

zoodex_preorder_timesA

Available pre-order (scheduled delivery) slots for a vendor. Pass one to zoodex_cart_set_preorder.

zoodex_favoritesC

List favorite vendors or products.

zoodex_toggle_favoriteA

Add or remove a vendor (by slug) or product (by id) from favorites.

zoodex_find_best_dealsA

Scan Zoodex for the best current deals and rank them. Combines Food Party, pickup parties, discounted items, specials, cash back, Golden Off vendors and, if query is given, a discounted-product search (e.g. query='پیتزا' to find the cheapest discounted pizza). Returns ranked product deals (with variety_id ready for zoodex_cart_set_item) and discounted vendors. Prices are in toman (the API uses rials; 1 toman = 10 rials).

zoodex_deal_sectionA

List all items of one home-page deal section. Sections: food_parties = Food Party: limited-time deep discounts (delivery); pickup_parties = Pickup Food Party: discounts for in-person pickup; zoodex_offers = Discounted items across vendors; specials = Special offers; golden = Golden Off vendors (time-limited vendor-wide discount); cash_back = Cash back: part of the price returns to your wallet; packland = Pack Land: bundle deals; discounts = Public discount codes. Prices are in toman (the API uses rials; 1 toman = 10 rials).

zoodex_home_sectionsA

List the sections shown on the Zoodex home page for the selected city (campaigns, Food Party, Golden Off, specials...). Open any of them with zoodex_deal_section.

zoodex_golden_off_vendorsB

Vendors that currently have a Golden Off (time-limited, vendor-wide discount), by vendor type.

zoodex_my_discount_codesA

Personal discount codes ('offer' tab in the app) and prize coupons ('coupon' tab, e.g. lucky-wheel or campaign rewards) on the account. Use a code with zoodex_check_offer_code or pass it as offer_code to zoodex_place_order. Expired coupons are hidden unless include_expired=true.

zoodex_vendor_couponsA

List coupons a vendor offers for the current cart contents (selectable / auto-selected / why not applicable), plus vendor store credit and Golden Off. Select one with zoodex_select_coupon.

zoodex_select_couponA

Apply a vendor coupon (from zoodex_vendor_coupons) to the cart and return the recalculated cart. Use coupon_id=-1 to remove the coupon.

zoodex_check_offer_codeA

Check how much a discount (offer) code takes off the current cart before ordering. Prices are in toman (the API uses rials; 1 toman = 10 rials).

zoodex_cart_viewA

Show the cart: items per vendor, quantities, prices, discounts, selected coupons, totals and any warnings. Prices are in toman (the API uses rials; 1 toman = 10 rials).

zoodex_cart_set_itemA

Set the quantity of a product variety in the cart (quantity is absolute, not a delta; 0 removes it). Use variety_id from search/menu results. If the product has additionals (extras/options), pass their ids. To change an existing line (e.g. with different additionals) pass its product_cart_id from zoodex_cart_view. Works logged out (guest cart, merged on login).

zoodex_cart_remove_itemB

Remove one line from the cart (by product_cart_id or variety_id).

zoodex_cart_remove_vendorA

Remove all items of one or more vendors from the cart. Pass vendor slugs or cart_vendor_id values from zoodex_cart_view.

zoodex_cart_clearA

Remove everything from the cart.

zoodex_cart_set_preorderA

Schedule a vendor's part of the cart for later. Date is Jalali 'YYYY/MM/DD HH:mm:ss' (e.g. '1405/09/08 13:00:00'); pick one from zoodex_preorder_times.

zoodex_cart_vendor_noteC

Attach an order note for one vendor (e.g. 'please ring twice').

zoodex_cart_shippingA

Calculate delivery fees for the cart to a saved address (defaults to the selected address). Prices are in toman (the API uses rials; 1 toman = 10 rials).

zoodex_reorderA

Copy the items of a previous order into the cart. Set verify_only=true to only check what is still available.

zoodex_plusB

Zoodex Plus membership (discounts + free delivery). action='plans' lists plans, 'status' shows plus details for the current cart, 'add_to_cart' adds a plan to the cart (bought with the order), 'remove_from_cart' removes it, 'profits' shows what Plus saved you.

zoodex_checkout_optionsA

Everything needed before placing an order: cart summary, allowed payment methods (online / cash / wallet keys), delivery vs pickup, pickup discount, minimum payment, Zoodex wallet balance, other wallets/credit providers and saved addresses. Prices are in toman (the API uses rials; 1 toman = 10 rials).

zoodex_place_orderA

Place the order for the current cart. ALWAYS show the user the final summary and get explicit confirmation first: call with confirm=false to get a preview, then call again with confirm=true. For online payment the result contains bank_url, which the user must open to pay; afterwards call zoodex_payment_status. Requires a name on the account and, for courier delivery, a selected address.

zoodex_payment_statusA

Check whether an order's payment succeeded (after the user paid via bank_url). Status is SUCCESSFUL, UNSUCCESSFUL or CANCELED.

zoodex_ordersA

List orders. status='current' for active orders, 'history' for past ones.

zoodex_order_detailsB

Full details of an order: items, prices, payment, delivery status/tracking and courier info.

zoodex_order_supportA

Get help with an order. action='options' lists support topics for the order; 'chat' opens a support answer for an option (option_id, optional question_id); 'ticket' files a ticket with a description (comment_type_id from the options).

zoodex_rate_orderA

Rate a delivered order. First call with target='details' to get the vendor slug, courier id, rating reasons and products. Then submit target='vendor' (rate 1-5, optional product ratings), 'courier' (rate 1-5) or 'zoodex' (comment only).

zoodex_walletA

Zoodex wallet (credit) balance, other wallets (e.g. BNPL / partner wallets), third-party credits and per-vendor store credits. Amounts in toman.

zoodex_increase_creditA

Add money to the Zoodex wallet. Amount is in TOMAN. Returns bank_url for the user to open and pay; then call zoodex_credit_payment_status. Optionally pass a credit provider key (from zoodex_credit_providers) to top up via that provider. Confirm the amount with the user first.

zoodex_credit_providersA

List credit providers that can be used to top up the wallet (in addition to the bank gateway).

zoodex_credit_payment_statusB

Check the result of a wallet top-up payment by payment_item_id (status 1 = success).

zoodex_wallet_historyB

Wallet transaction history. kind: increases (credit added), decreases (credit spent), bank (bank transactions), conversions, refunds.

Prompts

Interactive templates invoked by user choice

NameDescription
order_foodGuided flow: find what you want (cheapest/best discount), build the cart and check out.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 59 tools

Disambiguation4/5

Most tools target distinct resources or lifecycle steps, and the descriptions provide strong guidance for choosing between similar-looking areas such as search, vendor listing, cart, checkout, and wallet. Some overlap remains among deal-discovery tools and payment-status tools, but the boundaries are generally recoverable from the descriptions.

Naming Consistency4/5

All tools share the zoodex_ prefix and snake_case style, making the set easy to scan. There is a minor mix of verb_noun names (e.g. zoodex_list_vendors) and noun-only names (e.g. zoodex_wallet, zoodex_orders), but the convention is still predictable overall.

Tool Count1/5

With 59 tools, the surface is far beyond a typical well-scoped MCP server and imposes a high selection burden on the agent. Even for a broad food-delivery domain, many session, deal-discovery, cart, and wallet operations could be consolidated into fewer tools.

Completeness4/5

The tool set covers the full commerce lifecycle: authentication, cities and addresses, search, vendor menus, cart management, coupons, checkout, payment, orders, support, ratings, wallet, and Plus membership. The main notable gap is explicit order cancellation/refund handling, though support tools may partially cover that path.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues