Skip to main content
Glama

create_search_checkout

Buy named products from a specific store by searching the merchant's catalog, resolving variants, building the cart, and completing checkout asynchronously.

Instructions

PRIMARY TOOL FOR BUYING NAMED PRODUCTS FROM A SPECIFIC STORE. Use this whenever the user wants to purchase / order one or more products by name from a named merchant — e.g. 'buy X, Y and Z from Kylie Cosmetics' or a shopping list for one store. Call it directly: do NOT call search_products or get_product_details first — this tool does the product search on the merchant's site itself. If the user gives only a store name, infer its website URL for merchant yourself (e.g. 'kylie cosmetics' → 'https://kyliecosmetics.com/'). If customer contact, address, or payment details are missing, ask the user for them (or use create_payment_session for payment) rather than searching for products. Creates an async checkout task from product NAMES instead of product URLs — the agent searches the merchant's catalog, resolves each item (and any selected variant), assembles the cart, and completes shipping, payment and order confirmation in one call. Returns a groupId plus taskId and liveUrl per task; track with get_checkout or get_status_history. Payment works the same as create_checkout (sessionId from create_payment_session, or provider 'test' with card details).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "customer": "<customer>",
      "merchant": "<merchant>",
      "itemList": "<itemList>"
    },
    "name": "create_search_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
addonsNoOptional extras applied during checkout
optionsNoCheckout behaviour flags (all default to false)
customerYesAll customer information for the checkout
itemListYesItems to find on the merchant's site and purchase
merchantYesMerchant website URL to search and check out from e.g. 'https://kyliecosmetics.com/'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses async task creation, catalog search, item resolution, cart assembly, shipping/payment/order confirmation, return values (groupId, taskId, liveUrl), and tracking via get_checkout or get_status_history. It stops short of covering failure modes, cancellation, or idempotency, but core behavior is clear.

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?

Front-loaded with the primary purpose and key usage rule, and structured logically. It is dense but appropriate for a high-stakes tool; some repetition around direct calling and async checkout adds length without much extra 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?

For a complex checkout tool with no annotations or output schema, the description covers selection, prerequisites, behavior, return values, and tracking. It leaves no major gaps an agent would need to fill before invoking it correctly.

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 description coverage is 100%, so the baseline is 3. The description adds some context about inferring the merchant URL and using product names rather than URLs, but most parameter meaning (payment, options flags, addresses) is already documented 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?

States a specific verb and resource: creates an async checkout task from product names for a named merchant. Explicitly distinguishes itself from search_products, get_product_details, and create_checkout, so an agent can select it correctly.

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?

Explicitly says when to use this tool (buying named products from a store) and when not to call search_products or get_product_details first. Names alternatives for payment, instructs to infer a merchant URL, ask for missing contact/address/payment details, and use create_payment_session for payment.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.