Skip to main content
Glama

bulk_create_product_reviews

Batch create multiple product reviews to import historical reviews or backfill after promotions.

Instructions

[WRITE] 批次建立多筆商品評論。

【用途】 一次性批次建立多筆商品評論,適用於大量匯入歷史評論或促銷活動後的評論補登。

【呼叫的 Shopline API】

  • POST /v1/product_review_comments/bulk

【回傳結構】 dict 含 success: bool, resource_id: str, message: str, result: dict。

【副作用】

  • 批次在商品評論列表中新增多筆評論

  • 依商店設定,評論可能立即公開或待審核

  • 影響相關商品的平均評分顯示

  • 部分評論若格式錯誤,整批可能失敗或僅失敗該筆(視 API 實作而定)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reviewsYes評論資料列表,每筆格式同 create_product_review,例如 [{"product_id": "P001", "rating": 5, "content": "讚!"}]
Behavior4/5

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

With no annotations, the description carries full burden. It lists side effects: adds multiple comments, potential immediate/reviewed publication, affects average rating, and partial failure behavior. Missing authentication or rate limit details, but still strong.

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?

The description is well-structured with sections for write operation, purpose, API call, return structure, and side effects. Every sentence is valuable and front-loaded with the main action.

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 1-parameter bulk create tool with no output schema, the description provides comprehensive details: use case, API endpoint, return format, and side effects. It adequately covers all necessary context.

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% with a clear description of the 'reviews' parameter. The description repeats the schema's explanation but does not add additional semantics beyond the example format.

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 clearly states the verb '批次建立' (batch create) and resource '商品評論' (product reviews), with explicit use cases for bulk importing historical reviews or post-promotion entries. It distinguishes itself from single create and other bulk 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 explicit context for when to use (bulk imports, post-promotion) but does not include when-not-to-use or direct comparisons to alternative tools like 'create_product_review' or 'bulk_update_product_reviews'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/asgard-ai-platform/mcp-shopline'

If you have feedback or need assistance with the MCP directory API, please join our Discord server