Recommend or Rank Catalog Items
recommend_catalog_itemsRank candidate catalog items or generate cold-start recommendations for any vertical (movies, books, games, products, travel), returning written fit explanations (why_match, key_factors, potential_concerns) and confidence scores. Uses authenticated /v1/recommend with an API key or keyless /v1/demo/recommend (max 3 returned recommendations) without one; use explain_catalog_item to evaluate a single item instead.
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": {
"vertical": "<vertical>"
},
"name": "recommend_catalog_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fast | No | Enable low-latency fast inference mode (always true in keyless demo mode). | |
| count | No | Number of recommendations to return (1-10 with API key; clamped to max 3 in keyless demo mode). | |
| items | No | Optional candidate catalog items to rank; when supplied, TasteRay ranks only items from this list. | |
| history | No | Optional list of past items with ratings (max 50 entries) to personalize ranking. | |
| profile | No | Free-text description of the buyer, viewer, or context (provide `profile` or `preferences`). | |
| language | No | BCP-47 or underscore locale code for explanation text, e.g. "en_US" or "pl_PL". | |
| vertical | Yes | Domain or vertical noun, e.g. "movies", "books", "games", "headphones", "coffee", "travel". | |
| grounding | No | Enable live web grounding for fresher catalog facts (requires API key; always false in demo mode). | |
| constraints | No | Hard filter constraints as key-value pairs, e.g. {"max_price": 200, "avoid": ["gore"]}. | |
| preferences | No | List of structured taste or feature preferences (provide `preferences` or `profile`). | |
| history_text | No | Optional free-text summary of past likes and dislikes when structured history is unavailable. | |
| explanation_depth | No | Detail level of written explanations: "brief" for short rationale or "detailed" for full breakdown. |