Skip to main content
Glama

execute_order_shipment

Updates an order's status to shipped and triggers the Shopline shipment flow. Use this after warehouse confirms dispatch.

Instructions

[WRITE] 執行訂單出貨。

【用途】 將指定訂單標記為已出貨,觸發 Shopline 出貨流程,適用於倉庫確認出貨後的狀態更新。

【呼叫的 Shopline API】

  • POST /v1/orders/{order_id}/shipment

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

【副作用】

  • 訂單出貨狀態更新為已出貨

  • 可能觸發客戶出貨通知(取決於商店設定)

  • 訂單需處於可出貨狀態,否則 API 會回傳錯誤

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_idYes訂單 ID
Behavior5/5

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

No annotations provided, but description fully covers behavioral traits: it's a write operation, triggers customer notifications (depending on settings), requires shippable order state, and describes return structure (dict with success, resource_id, message). Discloses error condition for unshipable orders.

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?

Well-structured with clear sections: purpose, usage, API call, return structure, side effects. Every sentence provides value. No redundancy, and the information is front-loaded with the essential write indication and purpose.

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 simple write tool with one parameter and no output schema, the description covers return structure, side effects, and error conditions. Could mention potential partial shipment behavior or further constraints, but overall sufficiently complete.

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 clear description '訂單 ID'. Description does not add extra meaning beyond the schema, but given the single simple parameter, no additional context is needed. Baseline score of 3 is appropriate.

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?

Description starts with [WRITE] and clearly states it marks an order as shipped and triggers the Shopline shipment process. It distinguishes itself from siblings like cancel_order, update_order_status, and bulk_execute_shipment by specifying single-order write operation.

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?

Explicitly states applicability: '適用於倉庫確認出貨後的狀態更新' (after warehouse confirms shipment). It notes the order must be in a shippable state, which is a key guideline. However, it does not explicitly mention when not to use or compare to alternative tools like bulk_execute_shipment.

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