Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RABATT_NEARNoYour postcode or town (e.g. 8020, Graz); the store and stock tools use it whenever the AI doesn't name a place.

Instructions

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

Prices of Austrian supermarkets and drugstores: BILLA (incl. BILLA PLUS), SPAR (incl. EUROSPAR, INTERSPAR), HOFER and dm. Prices are in EUR and are the chains' national prices; a single store can differ.

Which tool to use:

  • a product by name, or the cheapest of something: search_products. It asks every chain at once; chains narrows it.

  • what a whole shopping list costs at each chain: compare_basket.

  • a product type at one chain: list_categories, then browse_category.

  • what is on sale now, or HOFER's promotions of the coming days: get_promotions.

  • more on one hit: get_product. Whether a store near the user has it: check_availability. Stores near a place: find_stores.

Hits: id is the chain's own product id (use it with that chain only), price the current price, unit_price the price per 1 kg, 1 l or 1 piece (unit) for comparing pack sizes across chains. on_sale and was_price only appear on sale items, available_from only on HOFER promotion items that start later.

Chains differ in what they can filter: diet filters exist at BILLA (no organic), SPAR and dm, none at HOFER; on_sale at BILLA and SPAR. A chain that cannot apply a filter is left out with a note rather than shown unfiltered. Where a chain cannot sort or cap the price itself, it is done here on its 60 most relevant hits.

Paging is per chain: next_offset is where that chain's next page starts, has_more whether anything is left.

Places: near takes an Austrian postcode or town. Without it, the user's default from the RABATT_NEAR setting is used, if set.

dm's search is slow to answer repeated calls (it rate-limits), so prefer one broad dm search over several narrow ones. Fields without a value are left out of results.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_productsA

Search products by keyword at every chain (or the given chains) at once, e.g. "hafermilch" or "milka". Put a brand in the query.

Returns one entry per chain: {total, next_offset, has_more, hits}, or a note when the chain was left out or sorted here.

Args: query: Free-text search term, German works best. diet: Keep only vegan, vegetarian, organic, gluten_free or lactose_free products. on_sale: Only products on sale right now. max_price: Highest price in EUR. sort: "" (relevance, default), "price" (cheapest first) or "unit_price" (cheapest per kg / l / piece, for comparing). Where a chain cannot sort itself it is done on its 60 most relevant hits, which a note then says. rows: Hits per chain, at most 20. Default 5. offset: Paging offset per chain. Default 0.

browse_categoryA

List the products of one category at one chain. Take the code from list_categories or a product's category_code instead of guessing.

Args: category: The chain's category code. diet / on_sale / max_price / sort: As in search_products. rows: Hits, at most 20. Default 10. offset: Paging offset. Default 0.

list_categoriesA

Look up category codes by German name, for browse_category. Matches the category's own name ("milch" finds "Kühlwaren / Milch"), or its whole path if no name matches, and returns {count, <chain>: [{code, path}]}.

Args: query: Case- and accent-insensitive substring. Omit to list all. limit: Categories in all, at most 100. Default 40.

get_productA

Full detail of one product: price and unit price, description, ingredients, allergens, origin, nutrition (where the chain has them), category and a picture. BILLA and dm add the product page url.

Args: product_id: A hit's id from the same chain.

compare_basketA

What a shopping list costs at each chain. Give one product per item, as specific as a search ("vollmilch 1l", "barilla spaghetti"), with an optional quantity ("2x butter"). For each chain and item it takes the product whose name matches the item best, sold by the same unit (l, kg, piece) as at most chains, and the cheapest of equally good matches. Each pick lists up to two others: if the pick is not what was meant (a banana pudding for bananas), say so and use one of those instead.

Returns per chain {total, found, missing, items}, cheapest: the chain with the lowest total among those that found every item, and cheapest_mix: each item at whichever chain sells it cheapest.

Args: items: The shopping list, at most 15 items. chains: Default BILLA, SPAR and HOFER; add dm for drugstore goods, it has no food.

find_storesA

The stores closest to a place, per chain, with id (what check_availability takes), address, distance in km and the hours open today.

Args: near: An Austrian postcode or town; defaults to RABATT_NEAR. limit: Stores per chain, at most 10. Default 3.

check_availabilityA

Whether stores near a place (or one store) have a product: stock is "in stock", "low", "out of stock" or "no data" (HOFER's red light is "low or out of stock"); dm adds pieces.

BILLA, dm and HOFER give stock levels; SPAR only says whether a store "listed" the product. HOFER keeps stock data for promotion items only.

Args: product_id: A hit's id from the same chain. near: An Austrian postcode or town; defaults to RABATT_NEAR. store_id: One store's id from find_stores instead of the nearest. limit: Stores to check, at most 10. Default 5.

get_promotionsA

What is on sale. Without upcoming: the current promotions of BILLA and SPAR, and HOFER's grouped by the day they started. With upcoming: HOFER's promotions of the coming days with prices (the only chain that publishes them early). dm runs no promotions.

HOFER entries carry date and themes. For promotions of one kind ("Kaffee in Aktion") use search_products with on_sale instead (BILLA and SPAR; HOFER's are only here).

Args: upcoming: Promotions that have not started yet instead of current ones. leaflets: Return links to the BILLA and SPAR leaflets of the province of near instead of products. near: Postcode or town, for the leaflets' province. rows: Products per chain (per day at HOFER), at most 20. Default 5. offset: Paging offset. Default 0.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 8 tools

Disambiguation4/5

Most tools have clearly distinct purposes: product search, category browsing, detail lookup, basket comparison, store lookup, availability, and promotions are all separate workflows. There is minor overlap between search_products and browse_category (both list products) and between get_promotions and search_products with on_sale, but the descriptions explicitly clarify when to use each.

Naming Consistency5/5

Every tool follows a clear snake_case verb_noun pattern: search_products, compare_basket, find_stores, browse_category, list_categories, get_product, check_availability, get_promotions. There are no mixed conventions or vague names.

Tool Count5/5

Eight tools is well-scoped for a grocery price-comparison server. Each tool covers a distinct part of the workflow—discovery, detail, store lookup, availability, promotions, and basket comparison—without obvious redundancy.

Completeness4/5

The surface covers the core domain well: product search and browsing, product detail, cross-chain basket cost comparison, store locator, stock availability, and promotions/leaflets. A few minor gaps remain, such as direct item-level cross-chain comparison outside a basket and richer chain metadata, but no critical workflow is missing.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues