Skip to main content
Glama
pokys
by pokys

Optimalizovat nákupní seznam

compare_shopping_list
Read-onlyIdempotent

Compare items across store flyers, respecting amounts, memberships, and store limits. Get approximate totals for the lowest price or fewest stores.

Instructions

Porovná letákové nabídky pro více položek, respektuje obchody, dostupná členství a maximální počet obchodů. Ve výchozím stavu používá jen akce platné dnes. Množství zadávejte přes amount + unit („2 kg“); počet balení se dopočítá podle skutečné velikosti balení (2 kg z balení po 600 g = 4 balení). Produkty s nízkou jistotou shody se nepoužijí a skončí v unresolvedItems. Pokud není pokryt celý košík, je status „partial“ a totalPrice je null — cena vyřešené části je v resolvedPrice. Výsledek je přibližný a neřeší vzdálenost ani sklad.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
debugNoPřidá strukturovanou diagnostiku odmítnutých kandidátů a reason codes. Výchozí je vypnuto.
itemsYes
validOnNoDatum, ke kterému musí akce platit (YYYY-MM-DD). Výchozí je dnešek v Praze.
locationNo
maxStoresNo
optimizationNobalanced
allowedStoresNo
excludedStoresNo
availableMembershipsNo
requireCompleteBasketNoUpřednostní kombinaci obchodů pokrývající celý košík před nižší cenou.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
statusNo
storesNo
successYes
validOnNo
completeNo
coverageNo
locationNo
warningsNo
sourceUrlsNo
totalItemsNo
totalPriceNo
approximateNo
diagnosticsNo
explanationNo
retrievedAtNo
optimizationNo
resolvedItemsNo
resolvedPriceNo
unresolvedItemsNo
requestedLocationNo
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly=true, openWorld=true, idempotent=true, and destructive=false. The description adds substantial behavioral detail: default date scope, package-count rounding, low-confidence products going to unresolvedItems, partial status with null totalPrice and resolvedPrice, and the approximation/distance/stock limitation. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the tool's purpose and then delivers compact behavioral rules: date default, quantity semantics, unresolved items, partial results, and limitations. Every sentence earns its place with no filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with an output schema and strong annotations, the description covers the most important behaviors and caveats clearly. It still leaves some optional parameters like optimization modes, allowedStores/excludedStores, and requireCompleteBasket to schema-only documentation, and it does not explicitly route between this tool and its siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 30%, so the description must compensate. It meaningfully explains the critical amount+unit semantics with a concrete example and package-count recalculation, and it steers away from deprecated quantity/preferredPackage. It does not cover optimization, requireCompleteBasket, or store-filter parameters, but those are at least present in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: comparing leaflet offers for multiple items while respecting stores, memberships, and maxStores. This clearly differentiates it from the sibling tools search_products and get_product_offers, which are individual product/offer lookups.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context: it is for multi-item basket optimization, defaults to today's valid actions, and explains quantity input via amount+unit. It does not explicitly name alternatives or say when not to use it, but the intended use case is evident.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pokys/kupi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server