Skip to main content
Glama

Create a draft order

create_draft_order

Saves a draft of the order (the logo from check_logo, the card message, the sign-off, the occasion and the kind of gift) and returns a private link. The customer opens the link to check the preview and every card, add their recipient list and pay on the website. Takes no recipient names or addresses and no payment details. Each call saves a new draft with its own link. The answer says when the link expires.

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": {
      "mode": "<mode>",
      "card_message": "<card_message>",
      "signed_by": "<signed_by>",
      "occasion": "<occasion>"
    },
    "name": "create_draft_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesbusiness for a company logo, personal for a personal gift.
boxesNoOptional estimate of how many boxes; the recipient list sets the real count.
logo_refNoFrom check_logo. Leave it out and the customer adds the logo on the website.
occasionYesThe occasion, as get_gift_box_details names them.
signed_byYesWho the cards are from, printed under the message.
card_messageYesThe message printed on every card. get_gift_box_details gives the rules.

Output Schema

NameRequiredDescriptionDefault
cardYesThe card as it will print.
kindYes
notesYesThe answer's other notes, each a line of its text word for word: that this is a new link, or why the box estimate was left out.
expiresYesThe last day the link works.
productYesOur own gift box: its name and its photo.
estimateYesThe box estimate and its total; the recipient list sets the real count.
occasionYes
draft_urlYesThe private link where the customer finishes the order.
logo_storedYesWhether the draft holds the logo; if not, the customer adds it on the website.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "card": {
      +      "additionalProperties": false,
      +      "description": "The card as it will print.",
      +      "properties": {
      +        "message": {
      +          "type": "string"
      +        },
      +        "note": {
      +          "description": "How the first-name field is filled, when the message uses it.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "sign_off": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "message",
      +        "sign_off",
      +        "note"
      +      ],
      +      "type": "object"
      +    },
      +    "draft_url": {
      +      "description": "The private link where the customer finishes the order.",
      +      "type": "string"
      +    },
      +    "estimate": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "boxes": {
      +              "maximum": 9007199254740991,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "total": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "boxes",
      +            "total"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The box estimate and its total; the recipient list sets the real count."
      +    },
      +    "expires": {
      +      "description": "The last day the link works.",
      +      "type": "string"
      +    },
      +    "kind": {
      +      "const": "draft",
      +      "type": "string"
      +    },
      +    "logo_stored": {
      +      "description": "Whether the draft holds the logo; if not, the customer adds it on the website.",
      +      "type": "boolean"
      +    },
      +    "notes": {
      +      "description": "The answer's other notes, each a line of its text word for word: that this is a new link, or why the box estimate was left out.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "occasion": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "seal": {
      +          "description": "The seal sticker on the gift box's lid.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "seal"
      +      ],
      +      "type": "object"
      +    },
      +    "product": {
      +      "additionalProperties": false,
      +      "description": "Our own gift box: its name and its photo.",
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "photo_alt": {
      +          "type": "string"
      +        },
      +        "photo_url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "photo_url",
      +        "photo_alt"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "product",
      +    "card",
      +    "occasion",
      +    "logo_stored",
      +    "estimate",
      +    "expires",
      +    "draft_url",
      +    "notes"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations it gives real behavioral consequences: every call creates a new draft with its own link (making the idempotentHint=false concrete), payment and recipient data are handled by the customer on the website rather than here, and the response carries the link expiry. That is substantive disclosure of side effects, data boundaries, and hand-off behavior that the annotations alone do not convey.

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?

Front-loaded with the action and return value, then the customer flow, then the data boundaries and per-call semantics. Every sentence carries information, though the field enumeration in the opening parenthesis overlaps with the schema and could be trimmed.

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 an output schema present, the description needn't explain the response shape, and it still flags the expiry field. It covers side effects, exclusions, and follow-on steps, leaving only failure modes (e.g. an invalid logo_ref or bad occasion value) unaddressed.

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 coverage is 100% and the schema already documents mode, boxes, logo_ref, occasion, signed_by and card_message, including sourcing notes from check_logo and get_gift_box_details. The description only restates which fields are captured and confirms what is intentionally absent, adding little meaning beyond the structured fields.

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 ('Saves a draft of the order') plus the concrete outcome ('returns a private link') and enumerates the content captured (logo, card message, sign-off, occasion, gift kind). That is clearly distinguishable from sibling operations like check_logo, quote_gift_boxes, or get_order_status.

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?

The description explains the intended workflow — the customer opens the link to preview, add recipients and pay — and explicitly states what this tool does not take ('no recipient names or addresses and no payment details'), which tells the agent this is not the order-placement step. It stops short of naming a sibling alternative for quoting or status checks, so there is no explicit when-not/use-instead routing.

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