Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

update_order_delivery

Update order delivery details such as tracking number, carrier, and status. Use to sync third-party logistics data back to Shopline and trigger shipment notifications.

Instructions

[WRITE] 更新訂單配送資訊。

【用途】 修改指定訂單配送記錄的物流資訊,例如更新追蹤號碼、物流公司、配送狀態等。 適合整合第三方物流系統後回寫配送狀態。

【呼叫的 Shopline API】

  • PUT /v1/order_deliveries/{delivery_id}

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

【副作用】

  • 修改訂單配送記錄,變更立即生效

  • 狀態變更可能觸發 Shopline 的自動通知(如寄送出貨通知 Email 給顧客)

  • 不可復原,但可再次呼叫此工具覆蓋

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
delivery_idYes訂單配送記錄 ID
delivery_dataYes要更新的配送欄位,例如:{"tracking_number": "123456", "carrier": "黑貓宅急便", "status": "shipped"}
Behavior5/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 clearly states that changes take effect immediately, status changes may trigger automatic notifications (e.g., shipping confirmation emails), and the operation is irreversible but can be overwritten by calling the tool again. This is comprehensive and goes well beyond the minimum.

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 clear labeled sections: purpose, usage, API call, return structure, and side effects. It is concise but information-dense, with every section providing relevant detail. The [WRITE] prefix immediately signals the operation type.

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?

The description compensates for the lack of an output schema by explicitly describing the return structure (dict with success, resource_id, message). It covers usage context, the underlying API endpoint, side effects, and potential notifications. This is complete for a mutation tool with no annotations or output schema.

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?

The schema covers both parameters with descriptions that already explain delivery_id and delivery_data (including an example). The tool description adds only a brief mention of fields like tracking_number, carrier, and status, which the schema already covers. With 100% schema coverage, the description adds little extra parameter meaning.

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 that the tool updates delivery information for a specific order delivery record (修改指定訂單配送記錄的物流資訊). It names concrete fields (tracking number, carrier, delivery status) and is easily distinguished from sibling tools like get_order_delivery (read), execute_order_shipment (shipment execution), and update_order (general order update).

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 a clear use case: suitable for writing back delivery status after integrating a third-party logistics system (適合整合第三方物流系統後回寫配送狀態). This gives context for when to use the tool, though it doesn't explicitly mention alternatives or when not to use it.

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