Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CONTINENTE_EMAILNoOptional Continente.pt email for account features.
CONTINENTE_PASSWORDNoOptional Continente.pt password for account features.
CONTINENTE_CREDENTIALS_FILENoOptional absolute path to a credentials file available to the server.

Instructions

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

Continente MCP shops at Continente.pt for one account. Checkout and payment always happen on the website.

  • Quantities are in the product's sale unit. Call get_product before choosing a quantity for weighted or bulk products, and respect its minimum, maximum and step.

  • Before applying a list, preview_cart_changes shows what each change would do and cost, and what would be refused; it changes nothing.

  • When the user must choose between products, call choose_products once with all open choices (it shows photos where the client supports it); never one call per item, and not for choices you can settle yourself.

  • Narrow searches with category, excludeCategory or brand when results stray ("tofu" also finds cat litter), sort by unit_price to find the cheapest per kg or litre, and pass promotion for products on offer.

  • For dietary needs (vegan, allergens, gluten, protein), read get_product_labels for the candidates. Report what the label declares; an allergen not mentioned is not a "free from" claim.

  • set_cart_item_quantity sets an exact total (adding the product if needed; 0 removes it). add_cart_item adds on top of what is already there. When the user says how many they need, use set_cart_item_quantity.

  • Change the cart one item at a time and read structuredContent.result before reporting success. confirmedQuantity is what the cart now holds.

  • To empty the whole cart when the user asks, use clear_cart with confirm: true instead of removing lines one by one.

  • If a cart change returns mutation.outcome "unknown", the cart may have changed. Call the tool named in mutation.recovery (get_cart, or list_coupons for coupons) and decide from what it shows. Never repeat the change automatically.

  • For Cartão Continente coupons, list_coupons shows the account's coupons and which are selected in the cart. Use set_cart_coupons only when the user asks to use or stop using coupons; it sets the whole selection.

  • Money is EUR in integer minorUnits (129 means €1.29). Each price says what it is for: per item, per piece, per kg or per l. A price per kg or per l is not the price of one pack; check packageText, package (count, each and net quantity) and secondaryPrice before comparing. Missing prices, quantities or completeness stay unknown; do not guess them.

  • If your client supports MCP prompts, the basket-planner prompt has the full workflow for planning a shopping list or basket, and the label-check prompt the workflow for dietary and allergen questions.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
search_productsA

Search the Continente.pt catalogue. No login needed. Results keep the website's relevance order and mark saved favorites; pass favoritesFirst to look further and put them first. Each shows its price with what it is for (per item, piece, kg or litre), any promotions, the pack size, brand, category and productId. Filter with category, excludeCategory or brand, sort by unit_price to find the cheapest per kg or litre, and pass promotion for products on offer. Pass nextCursor back as cursor, with the same query, for the next products.

get_productA

Get one product by productId: price, promotions with their dates, pack size, availability and sale rules (sale unit, minimum, maximum and step). A multi-buy or nth-unit offer is applied by the cart, not in the price shown. Availability is what the product page shows this session, signed in or not; it is not a delivery-slot stock check. Check this before choosing a quantity for weighted or bulk products. No login needed.

choose_productsA

Show the user the open choices of a request side by side, with photos where the client supports it, so they pick one product for each. Use it only when the user must decide between candidates, such as two milks or 500 g against 1 kg; settle everything else yourself (favorites, usual purchases, cheapest per kg). Put all open choices of a list in one call, at most 10, each with 2 to 4 candidates and your suggestion. It changes nothing: the choices come back as a chat message that gives, for each choice by its number, the chosen productId or "none of these"; then change the cart with set_cart_item_quantity.

get_product_labelsA

Ingredients, allergens and nutrition for up to 20 products, as the website's copy of each label declares them: the ingredient list, the words it prints in capitals (how labels mark allergens), the allergen and "may contain traces" statements, and nutrients per 100 g or ml. Use it only when a task needs them, such as checking vegan, gluten or allergens, or adding up protein. Nothing is inferred: absence of an allergen in these fields is not a "free from" claim, and the packaging prevails. No login needed.

list_favoritesA

List the products saved as favorites on the account. Uses a local snapshot that is refreshed automatically when missing; snapshots older than 24 hours are marked stale. Pass refresh: true to fetch the current list from the website.

get_cartA

Read the shopping cart: each line with productId, cartItemId, kind (product or bag), quantity, unit price (per item or per kg) and lineTotal, its promotions and lineTotalBeforeDiscount when the cart discounts the line, plus the totals (products, bags, deposit, delivery, discounts and grandTotal, the amount to pay), and checkout: the minimum order and whether the delivery fee is free with EntregaZero or set at checkout by day, slot and area (it is not in the totals until then). Use it to check current quantities before changing them and to verify any uncertain change.

preview_cart_changesA

Check products and the total wanted of each before changing the cart, without changing anything. For each: what the cart holds, what set_cart_item_quantity would do (add, increase, decrease, remove or none), why it would be refused (such as a minimum or step), availability, pack details and the estimated cost, plus the products total after the changes with its minimum order and delivery fee. Reads one product page per item, at most 30. Prices and stock can change before you apply it.

add_cart_itemA

Add an amount of a product to the cart, on top of any quantity already there. quantity is in the product sale unit (default 1). Use set_cart_item_quantity instead when the user wants a specific total. If the result has mutation.outcome "unknown", the cart may have changed: call get_cart before any further change and never repeat the request automatically.

set_cart_item_quantityA

Make the cart hold exactly this quantity of a product, adding it if it is not there yet. Zero removes it. Pass cartItemId from get_cart when the product has more than one line. If the result has mutation.outcome "unknown", the cart may have changed: call get_cart before any further change and never repeat the request automatically.

remove_cart_itemA

Remove a product line from the cart. Succeeds without changes if it is already absent. Pass cartItemId from get_cart when the product has more than one line. If the result has mutation.outcome "unknown", the cart may have changed: call get_cart before any further change and never repeat the request automatically.

clear_cartA

Remove every product from the cart in one step, with the website's own "remove all" action, and confirm the cart is empty. Only when the user asks to empty or clear the whole cart; pass confirm: true. To remove some products, use remove_cart_item. If the result has mutation.outcome "unknown", the cart may have changed: call get_cart before any further change and never repeat the request automatically.

list_couponsA

List the Cartão Continente coupons on the account page, with each one's couponId, description, benefit and availability as shown, and whether it is selected in the cart (null when the cart has no coupon choices, for example because it is empty, or when cartSelection is unknown and it is not known to be selected). Whether a coupon applies to the cart and whether coupons combine are not stated. Needs the account to be signed in.

set_cart_couponsA

Make exactly these coupons the cart's selection, by couponId from list_coupons; an empty list removes them all. Only when the user asks to use or stop using coupons. It submits the cart's own coupon form and confirms the result by reading the cart back. A coupon is applied at checkout, on the website. If the result has mutation.outcome "unknown", the selection may have changed: call list_coupons before any further change and never repeat the request automatically.

list_ordersA

List recent orders, newest first, with their product lines. Each order has an orderId for get_order. Use detailLimit or includeLines: false to read fewer details, and pass the returned nextCursor as cursor to continue.

get_orderA

Get the product lines of one order by its orderId from list_orders (not the displayed order number).

list_frequently_bought_productsA

Rank products by how many recent orders contained them, with total quantities per unit. orderLimit sets how many recent orders to read (default 10); limit caps the products returned (default 25). Useful for building a usual shopping list.

get_session_statusA

Report local state without contacting the website: browser status, whether credentials and saved cookies exist, the last observed login state and favorites snapshot freshness. Never returns secrets.

Prompts

Interactive templates invoked by user choice

NameDescription
basket-plannerWorkflow for choosing products, checking sale quantities and changing the cart safely.
label-checkWorkflow for allergen, vegan and nutrition questions, answered from what each product label declares.

Resources

Contextual data attached and managed by the client

NameDescription
product-pickerShows the products of choose_products with photos so the user can pick one for each choice.

TDQS

A4.1/5.0

Scored across 17 tools

Disambiguation5/5

Each tool targets a distinct resource+action, and the descriptions actively resolve the few natural overlaps: add_cart_item (incremental) vs set_cart_item_quantity (exact total) vs preview_cart_changes (dry run) are explicitly cross-referenced, as are get_order vs list_orders and search_products vs get_product. choose_products is clearly separated as a user-facing decision helper rather than a catalogue query.

Naming Consistency5/5

Uniform snake_case with a leading verb (get_, list_, search_, set_, add_, remove_, clear_, preview_, choose_) throughout. The verb choice maps predictably to the operation's nature, and there are no mixed conventions or stray camelCase names.

Tool Count4/5

17 tools is slightly above the comfortable range, but the extra surface is justified by real sub-domains: product discovery, labels, cart mutation/preview, coupons, orders, favorites and session state. No tool appears redundant or decorative.

Completeness3/5

Cart lifecycle (read, add, set, remove, clear, preview) and order/coupon read paths are well covered, but there is no checkout or order-placement tool, so an agent can build a cart yet never complete a purchase. Favorites are read-only and there is no login/auth tool despite get_session_status reporting credential state.

Maintenance

ActivityNo data
ResponsivenessOutdated data