Skip to main content
Glama

Cancel Pickup Order

cancel_pickup_order
Destructive

Cancel an open pickup order from the pickup monitor. It leaves the board and its stock reservation is released. Unless sparkOnly=true, it is also canceled in Shopify (refund and restock, when order updates push to Shopify) and the customer gets the sales-order canceled notification if that notification is on. sparkOnly=true only clears it from Spark. Completed and canceled orders cannot be canceled. Automation rules on order cancels apply. Requires Write + pickup.execute; operator credentials only. Preview first, then repeat identical arguments with previewReceipt and idempotencyKey. In-app assistants get a confirm card.

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

Input Schema

NameRequiredDescriptionDefault
orderYesPickup order id, order number or pickup code.
previewNo
sparkOnlyNotrue cancels only in Spark: Shopify is left as is and the customer is not told.
idempotencyKeyNo
previewReceiptNo

Output Schema

NameRequiredDescriptionDefault
statusNo
previewNo
nextStepNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
approvalRequiredNo
approvalRuleNameNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructive/openWorld and no idempotency, yet the description adds substantial non-obvious behavior: stock reservation release, Shopify refund and restock, customer notification, automation rules firing on cancel, and the confirm-card flow for in-app assistants. The idempotencyKey retry pattern also explains how safe re-invocation works despite idempotentHint=false.

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?

Dense but front-loaded: the core action and side effects lead, eligibility and permissions follow, and the call sequence closes. Every sentence carries information, though the packing of side-effect clauses makes it heavier than ideal for fast scanning.

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

Completeness5/5

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

For a destructive, cross-system mutation this covers side effects, eligibility, permissions, retry mechanics, and notification behavior; since an output schema exists, return-value detail is correctly omitted.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 40%, but the description compensates for the two undocumented parameters (previewReceipt, idempotencyKey) by describing the preview-then-repeat-identical-arguments workflow, and it reinforces sparkOnly semantics. Only idempotencyKey's exact format is left undefined.

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 ('Cancel an open pickup order from the pickup monitor') plus scope ('open' only), which cleanly separates it from siblings like cancel_purchase_order and cancel_manufacturing_order without needing to name them.

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

Usage Guidelines5/5

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

Explicit when-to-use constraints ('Completed and canceled orders cannot be canceled'), a named alternative mode (sparkOnly=true vs. default Shopify cancellation), a required preview-then-execute sequence, and the prerequisite permission set. Little is left to inference.

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