Skip to main content
Glama

update_order

Modify order fields like notes or shipping address — only send the fields you want to change, leaving others untouched.

Instructions

[WRITE] 更新訂單欄位。

【用途】 修改訂單的可編輯欄位(如備註、配送地址等)。僅傳入要修改的欄位,未傳入欄位不受影響。

【呼叫的 Shopline API】

  • PATCH /v1/orders/{order_id}

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

【副作用】

  • 訂單資料立即變更,不可復原(可再次呼叫此工具覆蓋)

  • 部分欄位(如金額)可能受限於訂單狀態而無法修改

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_idYes訂單 ID
fieldsYes要更新的欄位與值,以字典形式傳入
Behavior5/5

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

No annotations provided, so the description fully covers behavioral traits: declares [WRITE] operation, immediate irreversible changes (overwritable), potential field restrictions based on order status, and provides API call and return structure. This exceeds expectations.

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 structured with clear sections ([WRITE], purpose, API, return, side effects), uses bullet points for readability, and is concise without redundancy. Every sentence adds 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 no output schema, the description explains return structure (success, resource_id, message). It covers side effects, partial update behavior, and field restrictions. For a simple update tool, this is fully 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%, so baseline is 3. The description adds partial usage guidance (only modified fields) but repeats schema descriptions. It does not elaborate on order_id or the nested object format beyond what's in 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 explicitly states it updates order editable fields (notes, shipping address) and emphasizes partial update behavior. It distinguishes from sibling tools like update_order_status and update_order_delivery by focusing on general field modification.

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 clear usage context: modify editable order fields. While it does not explicitly list exclusions or alternatives, the sibling tool list implies that status/delivery updates have separate tools. A slightly higher score would require explicit when-not-to-use guidance.

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