Skip to main content
Glama

get_stock_transfer_suggestions

Analyzes product stock levels across warehouses and suggests transfers when stock differences exceed a set threshold to balance inventory.

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, the description fully discloses the algorithm, the condition threshold, and the rate limit constraint (analyzing only first 30 products). It also describes the return structure.

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 concise yet comprehensive, with clear sections for purpose, usage, API calls, and return structure. Every sentence provides value.

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?

Given the tool's complexity (multi-API calls), the description adequately explains the logic, limits, and output format, making it complete for an agent to understand and use correctly.

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 only parameter `min_stock_diff` is described in the schema, and the description adds context by explaining how it is used (difference >= threshold). This enhances understanding beyond the schema.

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 tool generates cross-warehouse stock transfer suggestions with a specific condition (stock difference >= min_stock_diff) and a limit of 30 products. It distinguishes itself from related inventory 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 explains when to use the tool (to get transfer suggestions) and mentions its limitation of analyzing only 30 products. However, it lacks explicit guidance on when not to use it or alternatives.

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