Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

get_order_labels

Retrieve shipping labels for a specific order, including tracking number, carrier, and label URL. Use order_id to get label details for printing.

Instructions

【用途】取得指定訂單的「物流面單/寄送單」資訊(寄件單號、物流商)。

注意:此處的 label 指出貨面單,與 get_order_tags 的「標籤」不同 —— 要查訂單分類用的標記請用 get_order_tags。

【呼叫的 Shopline API】

  • GET /v1/orders/{order_id}/labels

【回傳結構】 API 原始回應,通常包含: { "labels": [ { "tracking_number": str, # 物流追蹤號碼 "carrier": str, # 物流商名稱 "label_url": str, # 標籤列印 URL ... } ] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_idYes訂單內部 ID(由 query_orders 回傳的 id 欄位,非 order_number)
Behavior4/5

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

No annotations are present, so the description carries the burden. It discloses the underlying Shopline API endpoint (GET /v1/orders/{order_id}/labels) and the raw response structure with labels array containing tracking_number, carrier, and label_url. It does not cover error handling or side effects, but for a read-only GET tool this is reasonable transparency.

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 sections for purpose, note, API call, and return structure. Each section provides distinct value: disambiguation, endpoint, and output shape. No wasted sentences.

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?

Given the tool's simplicity (one parameter) and lack of annotations/output schema, the description provides a complete picture: what it returns, how to access it, and how it differs from a similarly named tool. It could mention when not to use it beyond the tags distinction, but overall it's adequately 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?

The schema already describes the only parameter order_id with clear documentation that it is the internal ID from query_orders, so description coverage is 100%. The tool description adds no extra parameter semantics beyond the schema, meriting the baseline score of 3.

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 retrieves shipping label information (物流面單/寄送單) for a specified order, including tracking number and carrier. It explicitly distinguishes from get_order_tags, showing precise scope and verb usage.

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

Usage Guidelines5/5

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

The description provides an explicit alternative: '要查訂單分類用的標記請用 get_order_tags' (use get_order_tags for order classification tags), and clarifies that label here is not the same as tags. This is a clear when-not/alternative statement.

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