Skip to main content
Glama

get_product_health

CROSS-SOURCE PRODUCT HEALTH SCAN — one call that returns per-product reviews + refunds + sales velocity + inventory + a composite 'needs attention' score (0-100). Use this for 'which products need fixing?' / 'what should I look at?' / 'are there any product issues?' / 'which products are performing badly?'. Saves the LLM from stitching get_top_products + get_refunds + get_reviews + get_inventory manually — synthesis is consistent and the composite score is grounded in the same heuristic each time. Returns each product's underlying signals (refund rate, review rating, review count, stock level, units sold, days since last sale) plus a flags array explaining WHY the score is what it is. Sort is by attentionScore descending so the most concerning products come first. Filter with minAttentionScore (default 0, set to 30 to see only flagged products). Default analyses the top 50 products by sales over the last 30 days.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax products to analyse, ordered by recent revenue (default: 50, max: 100).
storeNoFilter to a specific store domain. Omit to query all connected stores.
_offsetNoPagination offset. If a response includes _pagination.hasMore=true, use _offset to fetch the next page.
endDateNoEnd of sales window (YYYY-MM-DD). Defaults to yesterday (last fully-closed day — today is excluded by default to avoid partial-day totals; pass an explicit endDate to include today).
startDateNoStart of sales window (YYYY-MM-DD). Defaults to 30 days ago.
minAttentionScoreNoFilter to products with attentionScore >= this value (default: 0 = all). Set to 30 to see only products with a flagged signal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full behavioral burden and does so well: it discloses the composite score range (0-100), the sort order (attentionScore descending), the default filter behavior (minAttentionScore default 0), the default analysis scope (top 50 by sales over 30 days), and the presence of a `flags` array explaining the score. This is unusually rich behavioral disclosure for a no-annotation tool.

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?

Front-loaded with the core capability in all-caps, followed by use-case quotes, then mechanism, then return shape, then parameters. Some redundancy ('which products need fixing?' / 'are there any product issues?' / 'which products are performing badly?') but each adds a slightly different nuance. Slightly dense but well organized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter, no-output-schema synthesis tool with no annotations, the description covers purpose, when-to-use, return shape (signals + flags), sorting, filtering defaults, and scope defaults. An agent has everything needed to invoke it correctly and interpret the result.

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

Parameters4/5

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

Schema coverage is already 100%, so the schema documents limit, store, _offset, endDate, startDate, and minAttentionScore. The description still adds value by explaining the semantics behind minAttentionScore (set to 30 to see only flagged products) and the default window (top 50 by sales over last 30 days), which reinforces rather than merely repeats the schema.

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?

States a specific verb+resource ('CROSS-SOURCE PRODUCT HEALTH SCAN' returning per-product reviews + refunds + sales velocity + inventory + composite score) and explicitly distinguishes itself from siblings like get_top_products, get_refunds, get_reviews, get_inventory by naming them as what it replaces. An agent can immediately tell this is a synthesis tool vs. the individual-data siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use trigger phrases ('which products need fixing?', 'what should I look at?') and names the alternative path (stitching the sibling tools manually) that this replaces. The rationale (consistent synthesis, same heuristic) makes the value proposition concrete.

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.

Resources