casaley-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CASALEY_RPS | No | Peticiones por segundo como máximo (entre 0.1 y 4). Todas las variables son opcionales. | 1 |
| CASALEY_STORE | No | La sucursal predeterminada (id de ciudad, por ejemplo 1086 para Culiacán). Todas las variables son opcionales. | 1086 |
| CASALEY_CACHE_DIR | No | Dónde se guarda la caché SQLite. Todas las variables son opcionales. | caché del usuario |
| CASALEY_TTL_PRICES | No | Segundos que dura la caché de precios y búsquedas. Todas las variables son opcionales. | 7200 |
| CASALEY_TTL_CATALOG | No | Segundos que dura la caché del menú y de la llave pública de búsqueda. Todas las variables son opcionales. | 86400 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Consulta productos, precios y ofertas de Tu Súper Casa Ley (México) en línea. Herramientas de solo lectura. Los precios dependen de la sucursal (una por ciudad); si el usuario no la indica se usa la configurada. Usa list_stores para conocer los ids. Nunca inventes precios: si algo sale not_found, dilo. Toda respuesta trae fetched_at: los precios valen para ese momento. API no oficial.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_productsA | Busca productos por texto en una sucursal, o recorre una categoría del catálogo (texto vacío + los |
| get_productA | Ficha de un producto por su EAN/UPC en una sucursal. Devuelve |
| related_productsC | Productos relacionados ('Artículos recomendados') y sugeridos para un EAN, como en la ficha del sitio. |
| list_offersA | Las mejores ofertas, ordenadas por % de ahorro (revisa hasta unas centenas). Para recorrer TODAS las ofertas página por página usa |
| list_departmentsA | Árbol de departamentos y categorías de una sucursal. Cada nodo trae |
| list_storesA | Sucursales de Tu Súper en línea (id, ciudad). Con |
| estimate_shopping_listA | Estima una lista del súper. Para cada artículo (p. ej. 'leche 1 lt', 'huevo 30 pz', 'queso panela') devuelve la mejor coincidencia con precio, precio unitario, oferta y confianza (high/medium/low), más 2 alternativas. Lo que no encuentra sale |
| current_flyerA | URLs del folleto semanal de una ciudad (páginas de Publitas y JPG de especiales) con la vigencia inferida del nombre del archivo. Las imágenes no se descargan: léelas con visión si hace falta. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Each tool has a clearly distinct target: text search, single-product lookup, related items, offers, category tree, stores, list estimation, and flyer URLs. The only real overlap is list_offers versus search_products with on_sale_only=true, but the descriptions explicitly state that list_offers is a curated top-savings view while search_products is the exhaustive paginated path, which resolves the ambiguity. related_products versus search_products is also distinguishable by intent.
Six of eight tools follow a clean verb_object snake_case pattern (search_products, get_product, list_offers, list_departments, list_stores, estimate_shopping_list). The two deviations, related_products and current_flyer, are noun phrases without a verb, but they read naturally and do not break comprehension. Good use of consistent get_/list_/search_ prefixes for retrieval verbs.
Eight tools is a well-scoped surface for a grocery catalog/store API, with no obviously redundant or filler entries. Each tool maps to a distinct user need (search, detail, offers, browse, stores, list math, weekly flyer). Nothing feels thin or bloated.
Coverage spans discovery (search, departments, offers), detail (get_product, related_products), store context (list_stores), and two higher-value workflows (estimate_shopping_list, current_flyer), covering the core lifecycle. Gaps are minor: no way to compare a product's price/availability across branches in one call, no offer validity dates (acknowledged as unavailable in the API), and no stock/inventory signal beyond status: not_found. Agents can work around these by chaining per-branch calls.