Skip to main content
Glama

get_stock_by_warehouse

Retrieve inventory distribution matrix of products across warehouses or stores. Filter by product ID or warehouse ID to get stock levels for specific items or locations.

Instructions

取得商品在各倉庫/門市的庫存分佈矩陣。可查詢單一商品或全部商品的各倉庫庫存。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idNo商品 ID(不填則查詢全部商品,但較慢)
warehouse_idNo倉庫 ID 篩選(僅看特定倉庫)
Behavior3/5

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

No annotations are provided, so the description bears the full burden. It notes that querying all products is slower, which is a useful behavioral hint. However, it omits details like data freshness, authentication requirements, or the structure of the 'matrix'.

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 two sentences, covering purpose and a key performance consideration. It is efficient and front-loaded with the core function.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema, so the description should explain return values. Calling it a 'distribution matrix' is vague. With only two optional parameters, the description is adequate but leaves room for confusion among many sibling tools.

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?

Both parameters are fully documented in the input schema with descriptions. The description adds a performance note about all-product queries but does not significantly enhance understanding beyond the schema.

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 clearly states it retrieves inventory distribution by product and warehouse, mentioning single or all products. However, it does not explicitly differentiate from sibling tools like get_inventory_overview, which also deal with inventory data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives such as get_inventory_overview or get_locked_inventory. Users must infer from the name alone.

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