Sammenlign priser
compare_pricesUse this when the user asks where a grocery is cheapest or what it costs across Danish chains (Netto, Føtex, Rema 1000, Lidl, Coop, Bilka …). Returns the most relevant products of each chain with price, unit price and chain, lowest pricePerUnit first; compare pricePerUnit for different pack sizes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "compare_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | Product, preferably in Danish, e.g. letmælk, smør, bananer. | |
| storeNames | No | Optional chains, e.g. Netto, Føtex, Rema 1000, Lidl, Bilka; Coop means all Coop chains. Omitted: a logged-in user's favourite chains, else all chains. | |
| organicOnly | No | Only organic (økologisk) products. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| products | Yes | Lowest pricePerUnit first. | |
| totalCount | Yes | Products matching the search, before the per-chain selection. | |
| favoriteStores | Yes | The logged-in user's favourite chains, used because no storeNames were given; else null. |