Skip to main content
Glama
shopify-mcp-complete

shopify-mcp-complete

by hishamalhadi

create-draft-order

Create a draft order with line items, customer details, shipping address, and an optional discount, then convert it to a real Shopify order when ready.

Instructions

Create a draft order with line items, customer, shipping address, and optional discount. Draft orders can be converted to real orders.

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": {
      "lineItems": "<lineItems>"
    },
    "name": "create-draft-order"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
tagsNo
emailNo
lineItemsYes
taxExemptNo
customerIdNoCustomer ID
billingAddressNo
appliedDiscountNo
shippingAddressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does convey the important behavioral fact that this produces a draft that can be converted later, which implicitly signals a non-committal, non-destructive creation step. However it says nothing about permissions, whether inventory is reserved, whether pricing is recomputed, or what the call returns.

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?

Two tight sentences with the core verb and payload front-loaded and no filler. It is efficiently written, though the second sentence buys context at the cost of not addressing any parameter or workflow specifics.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter mutation tool with nested line-item and address objects, no annotations, and no output schema, two sentences are inadequate. An agent still cannot tell what a valid minimal call looks like, what errors to expect, or what the response contains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Nine parameters with nested objects and only 11% schema description coverage, yet the description adds no meaning beyond restating a few top-level names. It does not explain that each line item requires quantity and needs a variantId or title, what originalUnitPrice's string format is, how appliedDiscount's valueType enum behaves, or how billingAddress defaults.

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?

States a specific verb and resource ('Create a draft order') and enumerates the main payload areas it accepts: line items, customer, shipping address, discount. The closing note that drafts can later be converted to real orders usefully distinguishes it from a true order-creation intent, though no sibling is named explicitly.

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?

The conversion note implies the workflow position of this tool (draft first, then convert/complete), but it never says when to choose this over complete-draft-order or a direct order flow, nor does it state prerequisites such as requiring at least one line item.

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