Skip to main content
Glama
48x-ai

@marketbasketanalysis/mcp

by 48x-ai

get_recommendations

Find complementary products customers frequently buy with a specific product. Get top cross-sell recommendations based on mined order-history association rules.

Instructions

For a given product, recommend the top complementary, frequently-bought-together products customers also bought, based on mined order-history association rules. This is the single-product cross-sell tool. Use this when the user asks 'what goes with X?', 'what should I bundle with X?', 'what do customers also buy with X?', 'recommend products to cross-sell with X', or similar single-product co-purchase questions. Works for all five platforms: Shopify, BigCommerce, WooCommerce, Magento, and OroCommerce.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of recommendations to return. Default 3, max 6.
product_idYesProduct id, either the numeric storefront id (e.g. '8472918765') or the platform-specific GID/SKU. Both are accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are present, so the description carries the behavioral transparency burden. It transparently explains the recommendation source ('mined order-history association rules') but does not explicitly state whether the call is read-only, what response shape to expect, or any platform-specific behavior beyond broad compatibility.

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 core purpose is front-loaded, followed by concrete query examples and a platform-support note. The trigger list is slightly long but earns its place by helping agents recognize equivalent user requests.

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 two-parameter tool with no output schema, the description is reasonably complete: it names the algorithm, scope, trigger phrases, and supported platforms. It does not describe the response format, but the simple recommendation semantics make that a minor gap.

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%, and the input schema already documents both product_id and limit with defaults and accepted formats. The description adds little beyond the schema, mostly reinforcing that product_id identifies the product for cross-sell recommendations.

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 states a specific verb and resource: it recommends complementary, frequently-bought-together products for a given product, based on association rules. It also explicitly positions itself as the single-product cross-sell tool, which distinguishes it from sibling bundle and substitution tools.

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?

The description provides clear trigger examples such as 'what goes with X?' and 'recommend products to cross-sell with X', making usage conditions easy to match. It does not explicitly name alternatives to avoid or say when not to use this tool, so it stops short of full exclusion guidance.

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