Skip to main content
Glama

独行录 / opcmenu

评价产品

rate_product
Idempotent

登录;产品1~5星/可选文字,一人一产品一条、重复编辑;禁评本人产品。get_product/search_products取id。

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": {
      "productId": "<productId>",
      "score": "<score>"
    },
    "name": "rate_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo文字评价,可选
scoreYes星级 1–5
productIdYes产品 id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / body / description
      Previous value: -"文字评价,可选"New value: +"文字评价,可选"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare idempotent and non-destructive; the description adds real behavioral context: authentication is required, the operation is an upsert (a second submission edits the existing rating rather than creating a duplicate), and self-rating is forbidden. It does not say whether the updated rating resets visibility or triggers moderation, but the core behavior is covered.

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?

Dense, semicolon-separated clauses that front-loads the login requirement and constraints — no wasted sentences. The telegraphic style is slightly clipped, but every clause carries a rule the agent needs.

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 three-parameter mutation with no output schema, the description covers auth, validation constraints, uniqueness/edit semantics, and id acquisition, which is enough to invoke it correctly. Only the response outcome (e.g., what the returned rating object contains) is left unaddressed, which is acceptable with no output schema.

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 100%, so score range and optional body are already documented. The description still adds value by explaining where productId must come from (get_product/search_products), which the schema does not say, plus the 4000-char body being free-text commentary.

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 states a specific action on a specific resource: assign a 1–5 star score plus optional text to a product. It is clearly a write-side counterpart to the sibling read tools (get_product_ratings, get_product_rating_summary), though it never names that distinction explicitly.

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?

It gives concrete preconditions: login required, cannot rate your own product, one rating per user per product with later edits replacing it, and directs the agent to get_product/search_products to obtain the id. It stops short of explicitly stating 'use get_product_ratings to read ratings instead'.

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