Skip to main content
Glama

TasteRay Business - Recommendation API & ForMe MCP Server

Recommend or Rank Catalog Items

recommend_catalog_items
Read-onlyIdempotent

Rank 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

NameRequiredDescriptionDefault
fastNoEnable low-latency fast inference mode (always true in keyless demo mode).
countNoNumber of recommendations to return (1-10 with API key; clamped to max 3 in keyless demo mode).
itemsNoOptional candidate catalog items to rank; when supplied, TasteRay ranks only items from this list.
historyNoOptional list of past items with ratings (max 50 entries) to personalize ranking.
profileNoFree-text description of the buyer, viewer, or context (provide `profile` or `preferences`).
languageNoBCP-47 or underscore locale code for explanation text, e.g. "en_US" or "pl_PL".
verticalYesDomain or vertical noun, e.g. "movies", "books", "games", "headphones", "coffee", "travel".
groundingNoEnable live web grounding for fresher catalog facts (requires API key; always false in demo mode).
constraintsNoHard filter constraints as key-value pairs, e.g. {"max_price": 200, "avoid": ["gore"]}.
preferencesNoList of structured taste or feature preferences (provide `preferences` or `profile`).
history_textNoOptional free-text summary of past likes and dislikes when structured history is unavailable.
explanation_depthNoDetail level of written explanations: "brief" for short rationale or "detailed" for full breakdown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the burden is lower, yet the description still adds meaningful behavior: API-key vs keyless demo mode, the 3-item demo cap, and grounding requiring a key. It does not mention rate limits or latency/error behavior, keeping it below a 5.

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

Conciseness4/5

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

The description is front-loaded with the core verb and resource, then adds mode and alternative-tool clauses in a compact form. The parenthetical list of return fields is slightly heavy but each clause carries information.

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 12-parameter tool with nested objects and no output schema, the description usefully names the return fields (why_match, key_factors, potential_concerns, confidence) and covers auth-mode constraints. Gaps remain around error behavior and how conflicting profile/preferences/history inputs are reconciled, but nothing essential to invoking it is missing.

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

Parameters3/5

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

With 100% schema description coverage, the schema already documents all 12 parameters, and the description largely restates details it also contains (demo clamp to 3, fast forced in demo, grounding requires a key). It adds little parameter meaning beyond naming the returned fields, so the baseline of 3 is appropriate.

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 opens with a specific verb+resource pair ('Rank candidate catalog items or generate cold-start recommendations') and states the vertical scope. It also distinguishes itself from the sibling 'explain_catalog_item' by contrasting bulk ranking with single-item evaluation.

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?

It explicitly routes the agent to 'explain_catalog_item' for single-item evaluation and explains the authenticated vs keyless-demo paths, which is clear usage context. It does not cover when to prefer other siblings such as 'discover_catalog_rows', so it falls short of a full when/when-not matrix.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.