Skip to main content
Glama

StandingBids

Place a buy order (draft)

place_buy_order

Create a buy order for one product with a maximum price and a deadline, on behalf of the person. The order starts as a draft and is NOT in the order book yet: give the person the returned confirm_url so they can confirm it with their email address. Nothing is purchased or charged; when the price is met the person is emailed and decides whether to buy at the store. Only call this after the person has stated the product, the maximum price and how long they are willing to wait. For someone in a hurry a deadline of one or two days is fine; if a store already sells at or below the maximum, the offer is emailed right after confirmation.

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": {
      "product_id": "<product_id>",
      "max_price_usd": "<max_price_usd>",
      "deadline": "<deadline>"
    },
    "name": "place_buy_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
deadlineYesLast day the order stays open: a date (YYYY-MM-DD, kept until the end of that day UTC) or an ISO 8601 date-time. Up to 180 days ahead.
product_idYesThe product_id returned by find_product.
membershipsNoWarehouse clubs the person is a member of. Their posted prices are member prices: for members they count as posted; for others Costco adds 5% and Sam's Club 10% online, and BJ's sells online to members only. Ask before setting it.
max_price_usdYesThe most the person will pay, in US dollars, for the item plus shipping, before sales tax. Example: 1299.
authorized_onlyNoOnly accept manufacturer-authorized resellers. Default true.
excluded_merchantsNoStore domains the person refuses, for example ["store.com"].
ship_to_postal_codeNoUS ZIP code for delivery, if the person gave one.

Output Schema

NameRequiredDescriptionDefault
statusYes
productYes
deadlineYes
order_idYes
next_stepYes
confirm_byYes
manage_urlYesPrivate page where the person can see and cancel the order.
access_codeYesSecret needed by get_buy_order and cancel_buy_order for this order. Keep it for the rest of the conversation; do not show it unless asked.
confirm_urlYesPresent while status is "draft": the page where the person confirms the order.
membershipsYesWarehouse clubs the person belongs to: their prices count at the member price.
close_reasonYes
max_price_usdYes
missed_offersYes
pending_offerYes
authorized_onlyYes
would_match_nowYesTrue when a store this order accepts already sells at or below the maximum: the person will be emailed an offer right after confirming.
awaiting_email_clickYesTrue when the person entered an email address but has not yet clicked the verification link.
best_public_price_usdYesLowest public price currently known for this product that anyone can pay (warehouse clubs at their non-member price), if any.
best_accepted_store_price_usdYesLowest current price among the stores this order accepts (authorized for the brand unless authorized_only is false). Null when none is known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, openWorldHint=false and idempotentHint=false; the description goes well beyond them by explaining the draft state, the mandatory email confirmation via confirm_url, that nothing is purchased or charged, and the post-confirmation offer email. That is exactly the 'what actually happens' context a mutation tool needs.

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?

The description is front-loaded with the core behavior, then the draft/confirmation mechanics, then the call precondition. Every sentence carries information, though the confirmation and offer-email mechanics could be tightened into one sentence.

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 seven-parameter mutation with an output schema, an output schema, and full schema descriptions, the definition covers the lifecycle (draft to confirm to offer) that an agent must communicate back to the user. The one gap is repeat-call behavior, which the idempotentHint=false annotation implies but the description never spells out.

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 schema already carries most parameter meaning and the baseline is 3. The description adds genuine value on top by framing max_price as a willingness-to-wait tradeoff and telling the agent that a one-to-two-day deadline is acceptable, which shapes how the deadline parameter should be chosen.

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 ('Create a buy order for one product'), plus the two defining attributes (maximum price, deadline). The line 'starts as a draft and is NOT in the order book yet' cleanly separates it from get_buy_order and get_order_book without needing to name them.

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?

Gives an explicit precondition: 'Only call this after the person has stated the product, the maximum price and how long they are willing to wait.' It also gives a practical heuristic for choosing a deadline. It stops short of naming the prerequisite tools (find_product for the product_id, get_best_prices for grounding a max price), which would have made routing unambiguous.

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