Skip to main content
Glama

Get Product Ratings

get_product_ratings
Read-only

Retrieve a product’s ratings and reviews summary by EAN, including average rating and total review count, to assess customer feedback before buying or selling.

Instructions

Get ratings and reviews summary for a product by EAN. Shows the average rating and total number of reviews.

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": {
      "ean": "<ean>"
    },
    "name": "get_product_ratings"
  }
}

Input Schema

NameRequiredDescriptionDefault
eanYesEAN (European Article Number) barcode of the product.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds real value by disclosing the returned fields (average rating, total review count), which is important given there is no output schema. It does not cover behavior for an unknown EAN, whether review text is included, or any rate limits.

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?

Two short sentences, front-loaded with the action and scope, followed by the return summary. No filler or redundant 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?

For a simple one-parameter read tool with full schema coverage and safety annotations, this is nearly complete. The minor gap is the mild mismatch between the name (ratings and reviews) and the stated return values (only average and count, no review content), plus no not-found behavior.

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 single required parameter already documents the EAN barcode. The description only restates that the lookup is keyed on EAN, adding no format, validation, or fallback semantics beyond the schema — baseline 3 is appropriate.

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?

"Get ratings and reviews summary for a product by EAN" names a specific verb (get) and resource (product ratings/reviews) plus the lookup key. It is clearly distinguishable from siblings like get_product_ranks or get_product_assets, although it does not explicitly contrast itself with any of them.

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

Usage Guidelines3/5

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

Usage is implied by the name and by "by EAN": the agent knows to call it when it has an EAN and wants rating data. There is no explicit when-to-use/when-not-to-use guidance and no named alternative for related needs such as rankings or offers, leaving routing to inference.

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

Deploy Server

Other Tools