Skip to main content
Glama

create_esim_order

建立一筆真實的一心eSIM訂單,並取得真實的付款連結(LinePay或ECPay綠界,二擇一)。 這是會實際寫入正式訂單、串真實金流的動作,不是模擬或試算。

呼叫前必須先完成:

  1. 已用search_esim_plans/recommend_esim_plan/get_esim_plan_detail取得正確的productId、 spec,不要自己編造或憑記憶帶入。

  2. 已把商品名稱、規格、數量、單價與總金額,跟使用者逐一覆誦確認過,並取得使用者明確 同意下單(不能因為使用者說「好」「幫我訂」等籠統回應就自行猜數量或規格)。

  3. 已取得使用者的email與稱呼/姓名(兩者都必填:email用於辨識訂單歸屬與寄送購買憑證/ eSIM QR碼;姓名是訂單聯絡資料的必要欄位,不能留空或代填)。手機可選填。

  4. 已詢問使用者想用LinePay還是ECPay綠界付款(留空預設LinePay,但有得選的情況下應該 主動問,不要自己幫使用者決定)。

回傳的paymentUrl要完整、原樣提供給使用者(不要摘要或改寫),並提醒使用者付款完成前 訂單不會出貨。若ok=false,訂單可能已建立但取得付款連結失敗,要把error/note內容如實 告知使用者,不要自行重試建立第二筆訂單。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
specYes方案規格,必須跟查詢工具回傳的spec完全一致
emailYes使用者的email,必填,訂單憑證與eSIM會寄到這裡
phoneNo使用者的手機號碼,選填
quantityYes購買數量,需與使用者確認過的數字一致
userNameYes使用者的稱呼/姓名,必填,訂單聯絡資料需要,不可留空
productIdYes方案的productId(GUID字串),必須從查詢工具的結果取得,不可編造
paymentMethodNo付款方式:LinePay,或綠界 (信用卡付款/ATM轉帳/超商條碼)。留空預設LinePayLinePay

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries full burden. It discloses real-world effects (writing a formal order, connecting to real payment flow), failure modes (ok=false may mean order created but payment link failed, do not retry), and required user communication (provide paymentUrl as-is, remind order won't ship until payment). This goes far beyond basic mutation disclosure.

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 a clear opening statement, numbered prerequisites, and explicit post-conditions. Though longer than average, every sentence provides necessary safety or correctness information for a high-stakes financial action, and the content is front-loaded with the core purpose.

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 the tool's complexity (7 parameters, real money, no annotations, no output schema), this description covers prerequisites, parameter validation, return handling (paymentUrl, ok/error), and user-facing instructions. It leaves no critical gaps for safe invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema already covers all 7 parameters (100% coverage), the description adds crucial constraints: productId and spec must come from query tools, quantity must match user confirmation, email/userName are mandatory, paymentMethod should be explicitly asked rather than defaulted. This enriches parameter semantics beyond 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 clearly states the tool creates a real eSIM order and returns a payment link (LinePay or ECPay). It explicitly distinguishes itself from the sibling read/search tools and emphasizes this is a real transaction, not a simulation.

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?

It provides explicit prerequisites referencing sibling tools (search_esim_plans/recommend_esim_plan/get_esim_plan_detail), mandates user confirmation and informed consent, and specifies when it should not be used (not for simulation/estimation). This gives clear when-to-use and 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a distinct task: listing countries, searching plans, fetching details, recommending based on needs, and creating orders. The two plan-finding tools are clearly distinguished by their usage intent (browsing vs. recommendation), eliminating ambiguity.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern (list, get, search, recommend, create) with the 'esim_plan' or 'esim_order' object. This uniformity makes the set highly predictable.

Tool Count5/5

With 5 tools, the server is tightly scoped to the eSIM sales journey: discovery, search, detail, recommendation, and order creation. Each tool earns its place without redundancy or bloat.

Completeness4/5

The server covers the full pre-purchase lifecycle comprehensively, from country listing to order creation with payment links. A minor gap is the lack of an order status or retrieval tool, but this does not hinder the primary workflow of purchasing an eSIM plan.

Resources