Skip to main content
Glama

delete_purchase_orders

Batch delete one or multiple purchase orders to remove test data or cancel erroneous records. This operation permanently deletes the specified purchase orders and is irreversible.

Instructions

[WRITE] 批次刪除採購單。

【用途】 一次刪除一或多筆 POS 採購單記錄,適合清除測試資料或作廢錯誤採購單。

【呼叫的 Shopline API】

  • DELETE /v1/pos/purchase_orders

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

【副作用】

  • 永久刪除指定的採購單記錄,不可復原

  • 若採購單已執行入庫操作,刪除可能受限(取決於 Shopline 實作)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
purchase_order_idsYes要刪除的採購單 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: permanent deletion (irreversible), write operation, and potential restriction if inbound executed. Includes side-effect section.

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 (type, purpose, API, return, side effects). Each sentence is informative and concise. No wasted words.

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?

For a single-parameter tool with no output schema, the description provides return structure, side effects, and usage guidance. Parameter is fully described in schema. Complete for the complexity level.

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?

Only one parameter (purchase_order_ids) with schema description already covering its meaning. Description adds no extra semantics; baseline 3 due to 100% schema coverage.

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?

Clearly states the tool deletes purchase orders in batch, with specific uses like cleaning test data or voiding erroneous orders. Differentiates from sibling tools such as create_purchase_order or list_purchase_orders.

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?

Provides context on when to use (cleaning test data, voiding errors) and notes a limitation (potential restriction if inbound executed). Does not explicitly compare to alternatives but the context is sufficient.

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