Skip to main content
Glama

Related products

dr_related
Read-onlyIdempotent

Find alternatives, similar, same-brand, and complementary products with prices when an item is out of stock or too expensive. Use it to compare substitutes before opening product details.

Instructions

List products related to one: alternatives, similar, same-brand and complementary ones, with prices.

Use it for a substitute when out of stock or too expensive. Next: dr_product.

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": {
      "product": "<product>"
    },
    "name": "dr_related"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo1-12 per group.
productYesProduct id (2084) or path/URL from dr_search.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / limit / description
      Previous value: -"Products per group, 1-12."New value: +"1-12 per group."
    • changedInput schema / properties / product / description
      Previous value: -"A product id (e.g. 2084), or its path/URL from dr_search (e.g. /products/cosmetic-sunscreen-for-all-skin-types-1379/cream-sunscreen-cream-spf50-2084)."New value: +"Product id (2084) or path/URL from dr_search."
  2. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the safety profile is covered. The description adds that results carry prices and are organized into groups, which is genuine behavioral information, but says nothing about result ordering, completeness, or what happens when no related products exist.

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?

Two tight sentences: capability first, then usage. The 'Next: dr_product' fragment is terse but front-loaded and actionable; nothing is redundant.

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 by stating that prices are included and results are grouped. For a simple two-parameter read tool with full annotation coverage, this is close to sufficient; the missing piece is edge-case behavior when no related products are found.

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% — both the limit range ('1-12 per group') and the accepted product identifier formats (id 2084 or path/URL from dr_search) are documented in the schema itself. The description adds no syntax or format guidance beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 resource ('List products related to one') and enumerates the relation types it returns (alternatives, similar, same-brand, complementary). It implicitly separates itself from dr_search and dr_product by noting this is the follow-up step, though it never names a sibling it is not.

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?

Gives a concrete triggering condition: use it for a substitute when an item is out of stock or too expensive. The 'Next: dr_product' pointer establishes a workflow step. It stops short of stating when NOT to use it (e.g., for plain keyword search, which is dr_search).

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