Skip to main content
Glama

get_purchase_order_detail

Retrieve complete details of a POS purchase order, including line items, quantities, and costs.

Instructions

【用途】 取得單一 POS 採購單的完整明細,含採購品項、數量、金額等資訊。

【呼叫的 Shopline API】

  • GET /v1/pos/purchase_orders/{purchase_order_id}

【回傳結構】

  • id、status、created_at、total

  • items: 每筆含 product_title、sku、quantity、unit_cost

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
purchase_order_idYes採購單 ID
Behavior2/5

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

No annotations are provided, so the description bears full responsibility. It mentions the GET API endpoint (safe operation) and return fields, but it does not disclose authentication requirements, rate limits, error behavior, or any edge cases. Basic read behavior is implied but not thoroughly documented.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with three clear sections: purpose, API endpoint, return structure. It is front-loaded and contains no redundant text. While compact, it could slightly improve by using more explicit structure (e.g., bullet points), but overall it is efficient and easy to parse.

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 no output schema, the description adequately details the return structure (id, status, created_at, total, items with fields). It lacks guidance on error conditions or differentiation from similar tools like get_order_detail, but for a simple read operation on a specific resource, it covers the essentials.

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 input schema has 100% coverage with a description for purchase_order_id ('採購單 ID'). The description adds that it's for a single purchase order, but does not provide additional context like format or constraints beyond the schema. Baseline 3 as schema already covers the parameter.

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 it retrieves complete details of a single POS purchase order, specifying the data included (items, quantities, amounts). It distinguishes itself from sibling tools like list_purchase_orders (list) and delete_purchase_orders (delete) by indicating it's for a single order detail.

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

Usage Guidelines3/5

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

The description implies usage when needing details of one purchase order, but it does not explicitly state when to use this tool over alternatives, such as get_order_detail (for non-POS orders) or list_purchase_orders (for listing). No exclusions or prerequisites are mentioned.

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