Skip to main content
Glama

Hadacart KR/US product search and purchase links

prepare_purchase

Read-onlyIdempotent

Prepare an exact buyer-selected purchase handoff from dated records. Requires items and actual destinationCountry; US requires destinationRegion. Preserve variant, quantity, budget and benefits. Returns original issued URL and browser-agent steps. Never treats a yes to preparation as payment authority; verify merchant final quote then obtain specific buyer approval. No merchant request, cart, order or payment.

Input Schema

NameRequiredDescriptionDefault
itemsYes1–20 explicit buyer-selected catalog items to prepare merchant purchase handoffs for.
budgetNoBuyer spending ceiling in one explicit currency; preserved locally, never payment authorization or a delivered-total quote.
destinationRegionNoActual buyer state or region code (required when destinationCountry is US, e.g. CA or NY).
requireCommissionNoReject unless every checkout has a verified approved affiliate tracking link.
destinationCountryYesActual buyer 2-letter ISO shipping destination country code (e.g. KR or US).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / allOf
      Previous value: -[
      -  {
      -    "if": {
      -      "properties": {
      -        "destinationCountry": {
      -          "const": "US"
      -        }
      -      },
      -      "required": [
      -        "destinationCountry"
      -      ]
      -    },
      -    "then": {
      -      "required": [
      -        "destinationRegion"
      -      ]
      -    }
      -  }
      -]New value: +[
      +  {
      +    "if": {
      +      "properties": {
      +        "destinationCountry": {
      +          "const": "US",
      +          "description": "US destination country condition requiring destinationRegion."
      +        }
      +      },
      +      "required": [
      +        "destinationCountry"
      +      ]
      +    },
      +    "then": {
      +      "required": [
      +        "destinationRegion"
      +      ]
      +    }
      +  }
      +]
    • addedInput schema / properties / budget / properties / amount / description
      Added value: +"Positive buyer total spending ceiling in currency."
    • addedInput schema / properties / budget / properties / currency / description
      Added value: +"3-letter uppercase ISO currency code for budget."
    • addedInput schema / properties / destinationCountry / description
      Added value: +"Actual buyer 2-letter ISO shipping destination country code (e.g. KR or US)."
    • addedInput schema / properties / destinationRegion / description
      Added value: +"Actual buyer state or region code (required when destinationCountry is US, e.g. CA or NY)."
    • addedInput schema / properties / items / description
      Added value: +"1–20 explicit buyer-selected catalog items to prepare merchant purchase handoffs for."
    • addedInput schema / properties / items / items / properties / productId / description
      Added value: +"Exact case-sensitive Hadacart catalog product ID."
    • addedInput schema / properties / items / items / properties / purchasePreferences / properties / channel / description
      Added value: +"Buyer shopping environment/channel (PC, Mobile Web, APP(AOS), APP(IOS))."
    • addedInput schema / properties / items / items / properties / quantity / description
      Added value: +"Requested merchant listing configuration count (1–99), not individual package contents."
    • addedInput schema / properties / items / items / properties / unitPriceCeiling / properties / amount / description
      Added value: +"Nonnegative ceiling per one selected merchant listing."
    • addedInput schema / properties / items / items / properties / unitPriceCeiling / properties / currency / description
      Added value: +"3-letter uppercase ISO currency code matching native price."
    • addedInput schema / properties / items / items / properties / variantId / description
      Added value: +"Explicit numeric recorded variant ID when the product publishes variants."
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, non-destructive, idempotent, and closed-world behavior. The description adds meaningful context beyond this: it returns 'original issued URL and browser-agent steps', explicitly does not treat preparation consent as payment authority, and clarifies that no merchant request, cart, order, or payment occurs. That is useful behavioral detail for an agent.

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 front-loaded with purpose, then requirements, preservation rules, return values, and safety constraints. Six short sentences, each carrying distinct information with no filler or repetition.

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?

For a read-only preparation tool with rich schema coverage and annotations, this is nearly complete: it covers required inputs, conditional requirements, output ('original issued URL and browser-agent steps'), and critical safety boundaries around payment. The only minor gap is that 'dated records' or how the handoff is generated is not elaborated, but that is not necessary for correct invocation.

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 schema already fully documents the parameters. The description restates high-level requirements ('Requires items and actual destinationCountry; US requires destinationRegion') and a reminder to 'Preserve variant, quantity, budget and benefits', but adds little syntax or semantic detail beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource: 'Prepare an exact buyer-selected purchase handoff from dated records.' It distinguishes from search/listing siblings by framing this as a preparation step that produces URL and browser-agent steps. It does not explicitly name an alternative tool, so it falls short of 5.

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?

Usage context is implied through requirements ('Requires items and actual destinationCountry; US requires destinationRegion') and the safety caveat around payment authority, but there is no explicit when-to-use versus alternatives guidance. It tells the agent how to use it safely but not when to choose it over a sibling search or product tool.

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.

Resources