Skip to main content
Glama

Create product in draft

create_draft_product

Create a new hidden product in a Fudge draft, with options, variants, prices and media. It is deleted if the draft is discarded and becomes active when the merchant publishes. Use only when the merchant asks.

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": {
      "draft": "<draft>",
      "product": "<product>"
    },
    "name": "create_draft_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftYesThe draft’s fudge://project/… ref.
storeNoThe connected store to use. Omit when only one is connected.
productYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / product / properties / variants / items / properties / barcodes
      Added value: +{
      +  "description": "Complete barcode list in its existing order. Preserve other entries when editing; [] clears all. Never invent identifiers.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "description": "Use the merchant or supplier’s declared type; never infer it.",
      +        "enum": [
      +          "ASIN",
      +          "EAN",
      +          "GTIN",
      +          "ISBN",
      +          "NS_PID",
      +          "UPC"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "maxLength": 255,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this as a non-read-only, non-destructive, non-idempotent, closed-world write. The description adds genuinely new behavioral context: the product is hidden until publish, is discarded along with the draft, and becomes live on merchant publish — a lifecycle the annotations cannot express. It stops short of covering permissions, return payload, or failure modes.

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?

Three short sentences, front-loaded with the action and scope, then lifecycle, then the usage gate. No filler or restatement of the title, and each sentence carries distinct information.

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?

For a create mutation with a deeply nested payload and no output schema, the description covers purpose, lifecycle, and a usage gate well. The remaining gap is that it never indicates what the call returns (e.g., the created product reference) that an agent would need to chain a follow-up edit or publish.

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 67% and the nested product object is well documented in-schema (options max 3, barcode types, price as decimal string, files as Shopify GIDs). The description only restates the field families it accepts ("options, variants, prices and media") without adding format or constraint detail beyond the schema, so the baseline of 3 applies.

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?

The description opens with a specific verb and resource ("Create a new hidden product in a Fudge draft") and enumerates the sub-resources it accepts (options, variants, prices, media). The "hidden product in a draft" framing clearly separates it from the article/collection/page draft creators, 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?

"Use only when the merchant asks" gives a consent-based gating condition, which is useful. However, it offers no routing guidance against adjacent tools such as edit_draft_content or create_draft_collection, and does not state what to do if the merchant wants to change an existing product instead.

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.