Skip to main content
Glama
untitled-developers

Kockatoos Shopify MCP Server

create_code_discount_bxgy

Create a Buy X Get Y discount code that gives customers a percentage off or free items when they purchase specified products or collections.

Instructions

Create a Buy X Get Y (BXGY) code discount. Customers enter a code to get a discount when they buy specified items.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesInternal name shown in admin.
codeYesCode customers enter at checkout.
startsAtYesActivation date (ISO 8601).
endsAtNo
appliesOncePerCustomerNo
usesPerOrderLimitNoMax times this discount applies per order.
buyQuantityYesNumber of items customer must buy (e.g. '3').
buyAllNoBuy items from all products. Default: true if no buyProductIds/buyCollectionIds.
buyProductIdsNoGIDs of products customer must buy.
buyCollectionIdsNoGIDs of collections customer must buy from.
getQuantityYesNumber of items customer gets at a discount (e.g. '1').
getAllNoGet discount on any product. Default: true if no getProductIds/getCollectionIds.
getProductIdsNoGIDs of products customer gets.
getCollectionIdsNoGIDs of collections customer gets from.
getDiscountTypeYesType of discount applied to the 'get' items.
getDiscountPercentageNoPercentage off (0–100, e.g. 20 for 20%). Required when getDiscountType is 'percentage'.
combinesWithNoDiscount classes this discount can combine with.
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 states the tool creates a BXGY discount, but does not disclose behavioral details like whether it overwrites existing codes, requires specific permissions, or has rate limits. The schema provides field-level detail, but behavioral context is minimal.

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?

The description is a single sentence that front-loads the tool's primary purpose (create BXGY code discount). It is efficient with no redundant words, though it could benefit from a brief note on when to use it.

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

Completeness3/5

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

Given the tool's complexity (17 parameters, nested objects, enums) and many siblings, the description is too brief. It does not explain the buy/get logic, interaction with other discounts, or provide examples. The schema covers field specifics, but overall context for selecting this tool is lacking.

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 88%, so the schema already documents most parameters. The description does not add extra meaning beyond the general overview; it does not explain field relationships or provide examples. Baseline 3 is appropriate as the schema does the heavy lifting.

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?

The description clearly states the action (create), the specific type of discount (Buy X Get Y code discount), and the mechanism (customers enter a code). It distinguishes itself from sibling tools like create_code_discount_basic and create_code_discount_free_shipping by explicitly naming 'BXGY'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives (e.g., basic or free shipping discounts). It does not mention prerequisites, limitations, or scenarios where another discount type would be more appropriate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/untitled-developers/shopify-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server