Skip to main content
Glama

TasteRay Business - Recommendation API & ForMe MCP Server

Explain Fit for a Single Catalog Item

explain_catalog_item
Read-onlyIdempotent

Evaluate how well one specific product or media title fits a user profile and hard constraints. Returns structured summary, taste_alignment, constraint_satisfaction, unique_factors, potential_concerns, and optional alternatives via /v1/explain (or keyless /v1/demo/explain). Use recommend_catalog_items to rank multiple candidates.

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>",
      "item_name": "<item_name>",
      "item_type": "<item_type>"
    },
    "name": "explain_catalog_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
fastNoEnable low-latency fast inference mode (always true in keyless demo mode).
depthNoExplanation verbosity: "brief" for quick verdict or "detailed" for full factor analysis.
profileNoFree-text description of the shopper or viewer (provide `profile` or `user_preferences`).
languageNoLocale code for the generated fit explanation, e.g. "en_US" or "pl_PL".
verticalYesDomain or vertical noun, e.g. "movies", "headphones", "books", "games".
groundingNoEnable live web grounding for up-to-date specs or reviews (always false in demo mode).
item_nameYesExact title or product name to evaluate for user fit.
item_typeYesItem category label, e.g. "movie", "book", "product", "game", "tv-series".
constraintsNoOptional hard constraints to check against the item, e.g. budget or content limits.
item_metadataNoOptional structured item attributes such as price, year, specs, or genres.
user_preferencesNoList of structured user taste preferences (provide `user_preferences` or `profile`).
include_alternativesNoWhen true, include alternative title or product suggestions if fit is partial.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/open-world/non-destructive, so the safety profile is covered. The description adds real value beyond that by enumerating the returned fields (`summary`, `taste_alignment`, `constraint_satisfaction`, `unique_factors`, `potential_concerns`, alternatives) and by naming the `/v1/explain` endpoint and the keyless `/v1/demo/explain` variant. It does not cover latency, cost, or failure 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.

Conciseness5/5

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

Three tightly packed sentences, front-loaded with the purpose, then the return shape, then the alternative. No filler, no restatement of the title.

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?

With no output schema, the description carries the burden of describing returns and does so by listing the six response fields, and it names the endpoint. For a 12-parameter tool it is nearly complete, though it never clarifies the interplay between `profile` and `user_preferences` or the effect of `depth` on output size, both of which the schema only half-covers.

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?

Schema description coverage is 100%, so every one of the 12 parameters is already documented in the schema, including the demo-mode caveats for `fast` and `grounding`. The description only echoes 'user profile and hard constraints' and adds no syntax, precedence, or format detail beyond the schema, so the baseline of 3 applies.

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 and scope: 'Evaluate how well one specific product or media title fits a user profile and hard constraints.' That single sentence distinguishes it from the ranking sibling without the agent having to open either schema.

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 multi-candidate case to `recommend_catalog_items`, which is the main ambiguity an agent would face. It does not state when-not to use this tool (e.g., insufficient profile data) or mention the other siblings, so it falls short of fully explicit when/when-not guidance.

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.