Skip to main content
Glama
shopify-mcp-complete

shopify-mcp-complete

by hishamalhadi

delete-discount

Deletes a Shopify discount code by ID and permanently removes it from the store. Use it to clear obsolete or incorrect discounts when the deletion is final and cannot be undone.

Instructions

Delete a discount code. This cannot be undone.

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": {
      "discountId": "<discountId>"
    },
    "name": "delete-discount"
  }
}

Input Schema

NameRequiredDescriptionDefault
discountIdYesDiscount ID to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden, and it does disclose the most important trait: the action is irreversible ('This cannot be undone'). However, it omits permission requirements, what happens to orders that used the code, and error behavior for unknown IDs.

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?

Two short sentences, zero filler, with the irreversibility warning placed immediately after the action statement where it will be read. Nothing is redundant.

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?

For a single-parameter destructive tool with no annotations and no output schema, the description covers the action and its permanence but leaves gaps around permissions, side effects on existing orders, and failure modes. Adequate but not fully complete.

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 single discountId parameter is already documented as 'Discount ID to delete'. The description adds no format, sourcing, or validation 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?

States a specific verb and resource ('Delete a discount code'), which unambiguously identifies the operation against siblings like get-discounts or update-discount. It does not explicitly name or contrast with an alternative such as deactivating a code, so it falls short of a 5.

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?

There is no when-to-use guidance: nothing says when deletion is appropriate versus updating/deactivating a discount, nor any prerequisite or confirmation requirement. The only usage signal is the implied destructive nature of the verb.

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