Skip to main content
Glama

Store Manager for WooCommerce

AddSynapse: draft a new order

plan_order_create

AddSynapse: Prepare a DRAFT of ONE new WooCommerce order (a phone or manual order) (needs Store Assistant 1.3.18 or newer); it creates nothing by itself. lines (1-50): product_id (+ variation_id for a variable product — list_variations lists them), quantity 1-999, and unit_price ONLY when the shop owner gives a different price (shown on the draft); otherwise the shop price is used. Customer — one of: customer_id or customer_email (an EXISTING customer account; its saved addresses are used), OR billing for a guest order: first_name, last_name and an email or phone are required, plus the address the owner gave (country = 2-letter code, for example GR). A customer account is NEVER created or changed. shipping_address only when it differs from the billing address. Never invent customer details: ask the owner for what is missing. Optional: shipping {method_title, total} (a shipping line), coupons (existing codes only), customer_note (the customer's note, as given), status pending (default: awaiting payment, stock unchanged) | on-hold | processing | completed (these reduce stock and count the sale), payment_method_title (a label only — no payment is ever taken), send_emails (default false; true only when the owner asks to email the customer). The shop checks the products, stock, coupons and addresses now and WooCommerce computes the totals and taxes; the draft card shows them. Nothing is created until the owner approves it on the card; the total is checked again then. Undo cancels the order (stock given back) and moves it to the trash.

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": {
      "lines": "<lines>"
    },
    "name": "plan_order_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoWhich connected site: its address or site_id from addsynapse_list_sites. Omit when the account has only one site.
linesYes
statusNoDefault pending.
billingNoGuest billing details exactly as the owner gave them (never invented).
couponsNoExisting coupon codes.
shippingNoA shipping line: method_title and total.
customer_idNoAn existing customer account.
send_emailsNoDefault false.
customer_noteNo
customer_emailNoExact email of an existing customer account.
shipping_addressNoOnly when it differs from the billing address.
payment_method_titleNoLabel only (for example "Cash on delivery"); no payment is taken.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false, idempotent=false; the description goes far beyond that. It discloses the two-phase draft/approve lifecycle, that totals are rechecked at approval, that statuses of processing/completed reduce stock while pending leaves it unchanged, that undo cancels the order, returns stock and trashes it, that no payment is ever taken, and that a customer account is never created or modified.

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 core purpose and the 'creates nothing by itself' constraint are front-loaded, and nearly every clause carries a rule the agent needs. It is a single dense paragraph with heavy parenthetical and semicolon nesting, so a few clauses (e.g. the stock note attached to status) are easy to skim past.

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?

With 12 parameters, nested billing/shipping objects and no output schema, this tool needed a lot of prose, and the description covers the draft lifecycle, stock effects, customer resolution, guest vs account paths and undo. An agent can call it correctly and explain the outcome to the owner without further information.

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 already 83%, yet the description still adds real meaning: unit_price only when the owner quotes a different price, variation_id required for variable products, the one-of customer_id / customer_email / billing choice, billing required fields for guests, country as a 2-letter code, and shipping_address only when it differs. The one gap is `site`, which is left entirely to the schema text.

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 opens with a specific verb and resource ('Prepare a DRAFT of ONE new WooCommerce order (a phone or manual order)') and immediately bounds scope with 'ONE' and 'it creates nothing by itself'. That scope statement separates it from the plan_* siblings, which draft other content types, without the agent needing to inspect any schema.

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?

It gives concrete use conditions: this is for phone/manual orders, and the draft is only created after the owner approves on the card. It also supplies operational rules an agent would otherwise guess wrong — never invent customer details, ask the owner; send_emails only when the owner asks; list_variations for variable products. It stops short of naming an alternative path for editing an existing order (e.g. get_order), so it is clear context rather than a full when/when-not routing statement.

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