Skip to main content
Glama

Compare products

compare_products
Read-onlyIdempotent

Returns top products in a skincare category for side-by-side comparison, filtered by skin type, country, and budget.

Instructions

Return the top N products of a given category structured for side-by-side comparison. Filters by skin type, country, and budget. Default order is the catalog's (lowest price first); sortBy 'price' sorts cheapest first and 'rating' best-rated first (slow, about 10s, and few products are rated). Useful when the user asks to compare cleansers, moisturizers, sunscreens, etc. Each product includes a "link" to a retailer page (usually Amazon), which may be an affiliate link. If you share product links, state once: Product links go to retailers such as Amazon, and SkinGuide may earn a commission on purchases made through them.

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": {
      "type": "<type>"
    },
    "name": "compare_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesProduct category to compare.
limitNoHow many products to return (2–5). Defaults to 3.
budgetNoMaximum price per product, in the country's local currency.
sortByNoSort order. Omit for the fast default (lowest price first). 'rating' is slow (about 10s) and few products are rated.
countryNoCountry code for the product market. Defaults to 'US'. Aliases accepted: UAE → AE, USA → US.
skinTypeNo4-letter skin type code such as OSPT (Oily/Sensitive/Pigmented/Tight). Letters: O/D oily or dry, S/R sensitive or resistant, P/N pigmented or non-pigmented, W/T wrinkled or tight. One of: ORNT, ORNW, ORPT, ORPW, OSNT, OSNW, OSPT, OSPW, DRNT, DRNW, DRPT, DRPW, DSNT, DSNW, DSPT, DSPW. Do NOT use natural language like "sensitive" or "oily".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, open-world), it discloses default ordering (catalog/lowest price first), a ~10s latency cost and sparse ratings for sortBy='rating', and that returned links are usually Amazon affiliate links with a required one-time disclosure. These are exactly the operational facts an agent needs before calling and before presenting results.

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?

Purpose and scope are front-loaded, then filtering, ordering, latency, and the link disclosure follow logically. There is mild redundancy between 'default order is the catalog's (lowest price first)' and "sortBy 'price' sorts cheapest first," plus a mandated disclosure sentence that inflates length but earns its place by being required at output time.

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 does the necessary work of characterizing the return shape (comparison-ready records, each with a retailer link) and covers the affiliate-disclosure obligation. The field-level contents of a returned product are still left unspecified, but for a six-parameter read-only tool this is close to sufficient.

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 coverage is 100% and the enum-laden parameters (type, skinType, country, sortBy) are already documented in detail there. The description restates the ordering semantics of sortBy and the default order, which is largely duplication of the schema text, though the framing of 'default order is the catalog's' helps clarify what omitting sortBy actually yields.

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 first sentence gives a precise verb, resource, and scope: return the top N products of a category structured for side-by-side comparison. The added line 'Useful when the user asks to compare cleansers, moisturizers, sunscreens, etc.' anchors the tool against the search-oriented siblings without needing to read 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 states the triggering user intent (compare products of a category) and gives conditional guidance on sortBy, including when to avoid the 'rating' path because it is slow and sparse. It does not name an explicit alternative such as search_products or explain when not to use this tool, so it stops short of full routing guidance.

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