Skip to main content
Glama
shopify-mcp-complete

shopify-mcp-complete

by hishamalhadi

cancel-order

Cancel a Shopify order and optionally specify a reason, notify the customer, issue a refund, or restock items.

Instructions

Cancel an order with optional reason, customer notification, refund, and restock options.

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": {
      "orderId": "<orderId>"
    },
    "name": "cancel-order"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoCancellation reason
refundNo
orderIdYesOrder ID to cancel
restockNo
notifyCustomerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It hints at consequential side effects (refund, restock, customer notification) but never says whether cancellation is irreversible, which order states permit it, whether the refund is full or partial (the parameter is only a boolean), or whether permissions are required.

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?

One efficient sentence with the action front-loaded and no filler. It could have spent a few more words on the state/permission caveats instead of listing parameters already visible in the schema.

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

Completeness2/5

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

This is an irreversible mutation with five parameters, no annotations, and no output schema, yet the description says nothing about prerequisites, irreversibility, or what the caller gets back. For a destructive commerce operation, that is a substantial omission.

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 40%, so the description must compensate, and it only restates the optional capabilities already named by the parameters without adding meaning. It does not clarify that 'refund: true' means a full refund, or what 'restock' does when inventory tracking is off.

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 ('Cancel an order') plus the optional capabilities it bundles. An agent can tell it apart from fulfill-order or update-order by the verb alone, though the description never names those siblings to draw the boundary explicitly.

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 or when-not-to-use guidance and no mention of alternatives such as update-order for a status change. The agent must infer that this is the right tool for reversals rather than a status edit.

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