Skip to main content
Glama

チェックアウト見積もり(x402 1回目)

quote_checkout

カートの内容で x402 チェックアウトの 1 回目を実行する。在庫を 5 分間仮押さえし、小計・割引・送料・合計(JPYC)と reservation_id、および署名対象の x402 PAYMENT-REQUIRED チャレンジ(base64url)を返す。エージェントはこのチャレンジを自分のウォレットで EIP-3009 TransferWithAuthorization 署名し、submit_payment に渡す。全 item は同一ショップである必要がある。配送が必要な商品があれば shipping を、贈答なら gift_recipient を必ず渡すこと。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes購入する商品
is_giftNo贈答かどうか
shop_idYesショップ ID(全 item 共通)
shippingNo配送先(配送が必要な商品がある場合は必須)
customer_noteNo注文メモ
customer_emailYes注文確認メールの送信先(必須)
gift_recipientNo贈り先(is_gift が true なら必須)
preferred_chain_idNo希望チェーン(任意。商品の対応チェーンから選ばれる)

TDQS

A4.5/5.0
Behavior4/5

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

No annotations provided, but the description details key behaviors: stock reservation for 5 minutes, return of non-final data, requirement for same shop, and the need for a subsequent signed challenge. It lacks info on idempotency or error handling, but covers the main behavioral traits beyond basic read/write hints.

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 four sentences, each contributing essential information: action, returns, next step, and constraints. It is front-loaded with the main purpose and avoids unnecessary words, making it efficient for an AI agent to parse.

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 (8 params, nested objects, no output schema), the description adequately covers purpose, workflow, return values, constraints, and the required follow-up action. It provides a complete mental model for an agent to use the tool correctly.

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

Parameters4/5

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

Schema description coverage is 100%, but the tool description adds meaningful context for the 'shipping' and 'gift_recipient' parameters (conditional necessity based on cart contents) and reinforces the 'shop_id' constraint (all items same shop). This aids correct parameter usage beyond the schema's minimal descriptions.

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 specifies a clear verb ('実行する') and resource ('x402 チェックアウトの 1 回目'), and distinguishes it from the sibling 'submit_payment' by outlining the two-step process. It also details the returned data and constraints, making the tool's role unambiguous.

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 explicitly states when to use this tool (first step of checkout) and how it relates to 'submit_payment' (sign challenge and pass to it). It also provides conditional requirements for 'shipping' and 'gift_recipient' parameters, but does not exhaustively list when not to use it (e.g., if a reservation already exists).

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.3/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: order status, product details, shop details, listing products, listing shops, checkout quoting, searching, and payment submission. No overlap or ambiguity.

Naming Consistency5/5

All tool names follow a consistent 'verb_noun' pattern in English, using lowercase with underscores (e.g., get_product, list_shops, submit_payment). The naming is predictable and uniform.

Tool Count5/5

With 8 tools, the server is well-scoped for an e-commerce storefront. Each tool is necessary and focuses on core customer-facing operations (browse, search, checkout, payment, order status).

Completeness5/5

The tools cover the full customer journey: browsing shops and products, searching, initiating checkout with quote_checkout, submitting payment, and retrieving order status. No obvious gaps for the intended domain.

Resources