Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

get_stock_transfer_suggestions

Identify product stock imbalances across warehouses and suggest transferring inventory from overstocked to understocked locations when the difference reaches a minimum threshold.

Instructions

自動產生跨倉庫庫存調撥建議。

【用途】逐商品查詢各倉庫庫存,若同商品在不同倉庫之間的庫存差距過大 (差值 >= min_stock_diff),則建議從庫存多的倉庫調撥到庫存少的倉庫。 僅分析前 30 個商品以避免 API 速率限制。 【呼叫的 Shopline API】

  • GET /v1/products(商品列表)

  • GET /v1/products/{product_id}/stocks(各倉庫庫存)

  • GET /v1/warehouses(倉庫名稱對照) 【回傳結構】dict 含 products_analyzed、suggestions_count、suggestions 列表。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
min_stock_diffNo倉庫間庫存差距門檻,差距 >= 此值才建議調撥
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It lists the exact Shopline APIs called (all GETs, implying read-only), explains the underlying algorithm, discloses the 30-product limit to avoid rate limiting, and describes the return structure. It does not mention permissions or error scenarios, but for a read-only analytical tool this is reasonably transparent.

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?

The description is well-structured with labeled sections for purpose, API calls, and return structure. Each section provides useful information without excessive verbosity. The only slight redundancy is that the parameter logic appears in both the purpose and the schema, but this is acceptable.

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 tool of moderate complexity (multi-API calls, algorithm, rate-limit caveat), the description is quite complete. It explains input (optional threshold), output fields, and underlying data sources. With no output schema, the return structure is explicitly described. Missing details like error handling or explicit permission requirements are minor gaps.

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?

The schema already documents min_stock_diff with 100% coverage, including its default and meaning. The description adds value by embedding the parameter in the algorithmic logic ('差值 >= min_stock_diff') and clarifying its role in triggering suggestions, which reinforces the schema's description and provides behavioral context.

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 '自動產生' (auto-generate) and the resource '跨倉庫庫存調撥建議' (cross-warehouse stock transfer suggestions). It explains the specific logic (threshold-based transfer suggestions) and distinguishes itself from sibling tools like get_stock_by_warehouse or get_inventory_overview by focusing on actionable suggestions rather than raw stock views.

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 clearly outlines the use case: to generate transfer recommendations based on inter-warehouse stock differences. It does not explicitly name alternatives or exclusions, but the purpose is self-evident and the tool's unique value proposition is clear. The note about analyzing only the first 30 products also provides context for when this might be insufficient.

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/tzangms/shoplinemcp'

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