get_overall_top_products
Retrieve the top K products from all stores, sorted by a chosen field in ascending or descending order. Optionally specify which fields to include in the results.
Instructions
Retrieves the top K products across all stores.
Args: k: The number of top products to return. Defaults to 10. Must be a positive integer. sort_by: Optional. The field to sort by (e.g., 'score', 'price'). Defaults to 'score' on the data server. sort_order: Optional. The order of sorting ('asc' or 'desc'). Defaults to 'desc'. fields: Optional. A list of specific fields to include. Defaults to all available fields.
Returns: A list of product dictionaries for the top products, or a string error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| sort_by | No | ||
| sort_order | No | desc | |
| fields | No |