Skip to main content
Glama

Submit an order request

place_order
Idempotent

Submit an order request on behalf of the buyer, only after they approved the items and the quote total, and gave their name and email. No payment is taken and nothing is charged: a 6-digit code is emailed to the buyer; after the buyer confirms (confirm_order or the email link) a manager checks it and contacts them. Call quote first and pass its total_minor as expected_total_minor; if the total changed you get price_changed with the new total. For lang en, ship_to is required. Returns order_number, order_secret (keep it for confirm_order and resend_code), status (awaiting_buyer_code), code_expires_at, total, replay (true if the same idempotency_key returned an existing request) and next steps. idempotency_key is required: reuse it on retries so a lost reply never creates a second request. Do not use it to only show a price (use quote) or when the buyer prefers the site (use cart_link). Use only the buyer's own email with their consent. Limits: 3 requests per hour per buyer email and per network address.

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": {
      "items": "<items>",
      "contact": "<contact>",
      "expected_total_minor": "<expected_total_minor>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "place_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoSite language and market (optional, default uk). uk = Ukrainian site and ru = Russian site: Ukraine market, prices in UAH, Nova Poshta delivery, no ship_to. en = English site (site root): EU market, prices in EUR excluding VAT, delivery to EU countries, ship_to is required for quote and place_order. Use the market of the buyer; the range, prices and product handles differ between markets, so keep the same lang across search_products, get_product, quote, cart_link and place_order.uk
itemsYesOrder lines, 1 to 50, e.g. [{"handle": "ct-6205-2rs", "qty": 10}]. Each handle at most once (merge duplicates into one line).
commentNoAny other wishes or notes for the manager, up to 2000 characters. Optional.
contactYesBuyer contact details: name and email are required, phone is optional. Collect them from the buyer; do not guess them.
ship_toNoDelivery destination, e.g. {"country": "DE", "postcode": "10115"}. Required when lang is en (EU market: shipping and VAT depend on the country); must be omitted for uk and ru (Ukraine: Nova Poshta, no destination country).
deliveryNoDelivery details as free text, up to 1000 characters. Ukraine (uk, ru): city and Nova Poshta branch, e.g. "Kyiv, branch 12". EU (en): street address and city, e.g. "Hauptstrasse 5, Berlin"; the country goes into ship_to. Optional; if omitted, the manager asks the buyer.
assistantNoName of the assistant placing the order, up to 60 characters (letters, digits, space and . _ ( ) / -), e.g. "Claude" or "ChatGPT". Optional; shown to the manager as the order source. Dots and slashes are replaced with spaces.
idempotency_keyYesRequired. A UUID version 4 that you generate, e.g. "3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b". Use a NEW key for each new order request; on a retry of the same request (timeout, lost reply) send the SAME key: you get the same order and its order_secret instead of a duplicate. The same key with different contents is rejected (token_reused).
expected_total_minorYesOrder total the buyer agreed to: total_minor from the quote reply, an integer in minor units of the market currency (kopiyky for UAH, euro cents for EUR; 150000 = 1500.00). Required. If the total changed since the quote, the order is rejected with price_changed and the new total.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • changedInput schema / properties / assistant / description
      Previous value: -"Your product name, e.g. \"Claude\""New value: +"Name of the assistant placing the order, up to 60 characters (letters, digits, space and . _ ( ) / -), e.g. \"Claude\" or \"ChatGPT\". Optional; shown to the manager as the order source. Dots and slashes are replaced with spaces."
    • addedInput schema / properties / comment / description
      Added value: +"Any other wishes or notes for the manager, up to 2000 characters. Optional."
    • addedInput schema / properties / contact / description
      Added value: +"Buyer contact details: name and email are required, phone is optional. Collect them from the buyer; do not guess them."
    • changedInput schema / properties / contact / properties / email / description
      Previous value: -"The buyer's own email: the confirmation code is sent there"New value: +"The buyer's own email, up to 254 characters, e.g. \"buyer@example.com\". The 6-digit confirmation code is sent there, so it must be an address the buyer can read; never use a made-up address."
    • addedInput schema / properties / contact / properties / name / description
      Added value: +"Buyer's full name or company contact person, 1 to 120 characters, e.g. \"Ivan Petrenko\"."
    • addedInput schema / properties / contact / properties / phone / description
      Added value: +"Buyer's phone in international format, e.g. \"+380501234567\" (digits, spaces, parentheses and hyphens, optional leading +, 7 to 40 characters). Optional; if omitted, the manager uses email only."
    • changedInput schema / properties / delivery / description
      Previous value: -"Ukraine: city and Nova Poshta branch. EU: street address and city. Or other delivery wishes"New value: +"Delivery details as free text, up to 1000 characters. Ukraine (uk, ru): city and Nova Poshta branch, e.g. \"Kyiv, branch 12\". EU (en): street address and city, e.g. \"Hauptstrasse 5, Berlin\"; the country goes into ship_to. Optional; if omitted, the manager asks the buyer."
    • changedInput schema / properties / expected_total_minor / description
      Previous value: -"total_minor from the quote the buyer agreed to"New value: +"Order total the buyer agreed to: total_minor from the quote reply, an integer in minor units of the market currency (kopiyky for UAH, euro cents for EUR; 150000 = 1500.00). Required. If the total changed since the quote, the order is rejected with price_changed and the new total."
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Required. A new UUID v4 per order request; on a retry (timeout, lost reply) send the SAME key: you get the same order and its order_secret instead of a duplicate"New value: +"Required. A UUID version 4 that you generate, e.g. \"3f2b8c1e-5d4a-4e7b-9a60-1c2d3e4f5a6b\". Use a NEW key for each new order request; on a retry of the same request (timeout, lost reply) send the SAME key: you get the same order and its order_secret instead of a duplicate. The same key with different contents is rejected (token_reused)."
    • addedInput schema / properties / items / description
      Added value: +"Order lines, 1 to 50, e.g. [{\"handle\": \"ct-6205-2rs\", \"qty\": 10}]. Each handle at most once (merge duplicates into one line)."
    • changedInput schema / properties / items / items / properties / handle / description
      Previous value: -"Product handle from search_products"New value: +"Product handle: the \"handle\" field of an item returned by search_products (lowercase latin letters, digits, . _ -; e.g. \"ct-6205-2rs\" for a bearing, \"diskator-deft-1-8-pruzhinnaya-stoyka\" for a machine). Required; do not invent handles, a handle that is not orderable on the chosen lang site is rejected."
    • addedInput schema / properties / items / items / properties / qty / description
      Added value: +"Quantity in pieces: integer from 1 to 9999. Must not be below the product minimum order quantity (moq from get_product)."
    • changedInput schema / properties / lang / description
      Previous value: -"Site language and market: uk (Ukrainian, default) and ru (Russian) = Ukraine, prices in UAH, Nova Poshta delivery; en (English, site root) = EU market, prices in EUR, delivery to EU countries (ship_to is required for quote and place_order)."New value: +"Site language and market (optional, default uk). uk = Ukrainian site and ru = Russian site: Ukraine market, prices in UAH, Nova Poshta delivery, no ship_to. en = English site (site root): EU market, prices in EUR excluding VAT, delivery to EU countries, ship_to is required for quote and place_order. Use the market of the buyer; the range, prices and product handles differ between markets, so keep the same lang across search_products, get_product, quote, cart_link and place_order."
    • changedInput schema / properties / ship_to / description
      Previous value: -"Delivery destination. Required when lang is en (EU market: shipping and VAT depend on the country); must be omitted for uk and ru (Ukraine: Nova Poshta)."New value: +"Delivery destination, e.g. {\"country\": \"DE\", \"postcode\": \"10115\"}. Required when lang is en (EU market: shipping and VAT depend on the country); must be omitted for uk and ru (Ukraine: Nova Poshta, no destination country)."
    • changedInput schema / properties / ship_to / properties / country / description
      Previous value: -"Delivery country, ISO 3166-1 alpha-2 (DE, PL, FR…)"New value: +"Delivery country, ISO 3166-1 alpha-2, two uppercase letters (DE, PL, FR…). Shipping cost and VAT are calculated for this country."
    • addedInput schema / properties / ship_to / properties / postcode / description
      Added value: +"Postal code of the delivery address, up to 16 characters, e.g. \"10115\". Optional; if omitted, the country alone is used."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Far beyond the annotations: it states no payment is taken, that a 6-digit code is emailed and a manager then checks and contacts the buyer, the price_changed rejection path, the replay behavior for reused idempotency keys, the returned fields including order_secret handling, and concrete rate limits (3 per hour per buyer email and per network address). This is exactly the mutation-side context the annotations (readOnlyHint=false, openWorldHint=true) cannot carry.

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 purpose, precondition and preconditions-to-satisfy-first, then behavior, then returns, then exclusions and limits — a sensible order. It is dense and repeats a schema fact ("For lang en, ship_to is required"), but nearly every sentence carries decision-relevant information.

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?

A 9-parameter nested mutation tool with no output schema, and the description covers the missing pieces: the return payload fields, the secret's reuse, idempotent retry semantics, market-dependent parameter rules, and rate limits. Nothing an agent needs to call it safely is absent.

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 coverage is 100%, so the baseline is 3, but the description adds real semantics on top: idempotency_key must be reused on retries so a lost reply never double-creates, and expected_total_minor must come from the quote's total_minor with the price_changed consequence spelled out. It is slightly duplicative of schema prose, which keeps it off a 5.

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?

Opens with a specific verb and resource ("Submit an order request on behalf of the buyer") and immediately bounds the scope with the approval precondition. It is clearly distinguished from siblings: quote is for pricing, cart_link for buyers who prefer the site.

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?

Gives explicit when-to-use (after the buyer approved items and total and supplied name/email), when-not-to-use ("Do not use it to only show a price (use quote) or when the buyer prefers the site (use cart_link)"), a prerequisite chain (call quote first, pass its total_minor), and a market condition (lang en requires ship_to).

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