Skip to main content
Glama

独行录 / opcmenu

查产品评分摘要

get_product_rating_summary
Read-onlyIdempotent

只取某产品的星级汇总(平均分 + 分布 + 总数),不拉评价列表——省 token 的「评分多少」快查。要看评价文字用 get_product_ratings。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productIdYes产品 id(cuid)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the bar is lower. The description adds genuinely useful context beyond them: it discloses that the response is a summary (average + distribution + count) rather than a review list, and frames the token-saving tradeoff. It does not discuss pagination or limits, which is minor for a summary endpoint.

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 tight clauses, zero waste: the purpose and its output shape are front-loaded, then the alternative is appended. Every sentence earns its place.

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 one-parameter read with no output schema, the description carries the return-value burden and does so by naming the summary fields returned. An agent has everything needed to call it and to know when to prefer the sibling.

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 productId parameter is documented as a cuid in the schema. The description adds no syntax, format, or edge-case meaning beyond what the schema already states, so the baseline 3 applies.

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 and resource: fetch a product's star rating summary, enumerated as average + distribution + total count. It explicitly contrasts with the sibling get_product_ratings, so an agent can distinguish the two without opening 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 Guidelines5/5

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

Gives both when-to-use (quick token-saving lookup of the rating) and when-not/alternative (viewing review text goes to get_product_ratings). The routing condition is explicit and leaves nothing to inference.

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