Megamarket Search
megamarket_searchSearch Megamarket product listings by query and return prices and availability based on the configured delivery address or logged-in profile address.
Instructions
Search the Megamarket catalog via the mobile API, inside the operator's Chrome.
Prices and availability depend on the delivery address: by default a public city-level one (MEGAMARKET_ADDRESS); only with MEGAMARKET_USE_PROFILE_ADDRESS=1 does the logged-in profile's default address win — that reads a private account endpoint, and the response says so in _meta.warnings ("address_source:profile" plus a "profile_address_read" notice). Any warning that is not prefixed "info:" makes _meta.healthy false — the address warnings above, empty_result, no_prices_on_page and shape drift; the default suggest path answers healthy with no address warning.
price_rub is None when the tile states no price — never 0.
Full field list and error codes: guide://megamarket/megamarket_search.
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": "megamarket_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search text, e.g. 'стиральная машина' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | ||
| count | No | ||
| items | No | ||
| query | No | ||
| status | No | ||
| tier_used | No | ||
| total_count | No |