Skip to main content
Glama

Cancel Manufacturing Order

cancel_manufacturing_order
Destructive

Cancel a manufacturing order, named by id (GUID) or number, as the manufacturing order screen does. Every work order of it that is not completed or canceled is canceled too, started ones included, and their reserved materials are released; the preview lists them. Their pick lists stay open. Completed and already canceled orders are refused. Requires Write + manufacturing.execute on an unpinned operator credential. In-app assistants get a confirm card the user applies.

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": {
      "manufacturingOrder": "<manufacturingOrder>"
    },
    "name": "cancel_manufacturing_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.
manufacturingOrderYesThe manufacturing order: its id (GUID) or its number, e.g. MO-001.

Output Schema

NameRequiredDescriptionDefault
okNo
deletedNo
previewNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo
manufacturingOrderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the cascade (non-completed work orders canceled, started ones included), the side effect on reserved materials, the deliberate exception that pick lists stay open, the refusal conditions, and the confirm-card behavior for in-app assistants. This is exactly the context destructiveHint alone cannot convey.

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?

Front-loaded with the action and identifier, then cascade effects, then refusals, then auth. Dense but each clause carries information; the only mild bloat is 'as the manufacturing order screen does,' which is evocative but not operational.

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 destructive mutation with an output schema and fully documented parameters, the description covers side effects, refusal cases, and auth requirements. The two-step preview/commit protocol is only hinted at ('the preview lists them') rather than stated, but the schema carries it at full coverage.

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%, so the schema already documents preview, idempotencyKey, previewReceipt, and manufacturingOrder. The description only adds that the preview 'lists them' (the affected work orders), which is a small increment; the two-step commit mechanics live entirely in the schema.

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 a manufacturing order') plus the identifier forms accepted (GUID or number) and the cascade scope. It does not explicitly distinguish itself from delete_manufacturing_order or update_manufacturing_order, so an agent must infer that cancel is a state transition rather than a removal, but the purpose itself is unambiguous.

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

Usage Guidelines4/5

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

Gives clear when-not conditions ('Completed and already canceled orders are refused') and states the credential prerequisites ('Write + manufacturing.execute on an unpinned operator credential'). It does not name a sibling alternative for permanent removal or for orders that cannot be canceled, leaving that inference to the agent.

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