Skip to main content
Glama

Draft Orders Create

tiendanube_draft_orders_create

Create a draft order with products, discounts, shipping, and buyer details, then receive a checkout URL to share so the buyer can complete payment.

Instructions

Create a draft order. The response includes a checkout_url to share with the buyer. HTTP: POST /draft_orders Required scope: write_draft_orders API version: 2025-03

Input Schema

NameRequiredDescriptionDefault
discountNoDiscount object
productsNoLine items: [{variant_id, quantity}]
shippingNoShipping: {cost, shipping_address, shipping_option}
contact_nameNoBuyer first name
contact_emailNoBuyer email
payment_statusNoPayment status
contact_lastnameNoBuyer last name
additional_fieldsNoExtra raw API body fields not covered above; merged into the request body

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already say this is a non-read-only, non-idempotent, open-world write, so the safety profile is covered. The description adds meaningful context beyond that: the returned checkout_url that can be shared with a buyer, plus the HTTP route, scope, and API version. It stops short of saying whether draft creation reserves stock or affects inventory, which matters for a mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four compact lines with the purpose and the key return value front-loaded, followed by compact metadata. No sentence is filler and the structure makes scanning easy.

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?

With no output schema, the description usefully names the one return field that matters (checkout_url). Combined with full schema coverage for eight nested parameters, an agent has enough to call it, though behavior on partial bodies (no required fields) and error handling go unmentioned.

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

Parameters3/5

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

Schema description coverage is 100% and all eight parameters (products, shipping, discount, contact fields, additional_fields) are documented inline, so the baseline of 3 applies. The description adds nothing about parameter meaning, required combinations, or the nested body shapes beyond what the schema already says.

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 adds the notable outcome that the response carries a checkout_url. It does not explicitly distinguish itself from tiendanube_draft_orders_confirm or tiendanube_orders_create, but the verb+resource pair is unambiguous on its own.

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 description gives a real prerequisite ("Required scope: write_draft_orders"), which is genuinely useful for an agent checking permissions. It offers no guidance, however, on when to create a draft order rather than a direct order via tiendanube_orders_create, nor on the relationship to the confirm sibling, leaving the choice to inference.

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

Deploy Server

Other Tools