Skip to main content
Glama
Shopify MCP Server

Shopify MCP Server

by morsimohsen

create_draft_order

Create a draft order with line items, customer, and shipping details that can be sent to a customer or completed directly in Shopify.

Instructions

Create a draft order that can be sent to customer or completed directly

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
noteNoOrder note
tagsNo
emailNoCustomer email
lineItemsYesLine items for the order
customerIdNoCustomer ID
shippingAddressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, and it discloses almost nothing: no mention of side effects, required scopes/permissions, whether the returned order is in draft state with an ID, or that nothing is charged or fulfilled. The only behavioral signal is the implied lifecycle fact that the object starts as a draft rather than a finalized order.

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?

A single front-loaded sentence with no filler or repetition. It is tight, but the brevity is partly under-specification rather than disciplined economy.

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 mutation tool with a nested lineItems array, a nested address object, no annotations, and no output schema, one sentence is inadequate. An agent gets no help on the required lineItems shape, the variantId-vs-custom-title path, 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?

Six parameters with 67% schema description coverage, and the description adds zero meaning beyond the schema — it never mentions the required lineItems, the email/customerId customer-resolution choice, or that shippingAddress is optional structured input. The schema must do all the work, and a third of it is undocumented.

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") plus the intended outcome — it can be sent to a customer or completed directly. This distinguishes it reasonably well from read/update siblings, though it does not name the alternative tools such as complete_draft_order or update_order 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?

Usage is only implied: the phrase "can be sent to customer or completed directly" hints that this is the entry point of the draft-order lifecycle, gesturing at complete_draft_order. There is no explicit when-to-use/when-not guidance, no prerequisites (e.g. valid customerId or variantId requirement), and no stated alternatives.

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