Skip to main content
Glama

Update Manufacturing Order

update_manufacturing_order
Destructive

Edit one manufacturing order, named by id (GUID) or number. Every omitted field keeps its value; an empty description or internal note clears it. A draft takes every field: priority (1 highest to 10 lowest), assignee, customer, internal production warehouse, planned start and completion days (YYYY-MM-DD), description, internal note, and lines, which replace every existing line (1–50, each an item, that item's own bill of materials and a positive quantity). Once issued, only priority, planned days, description and internal note can change; completed and canceled orders cannot be edited. Assignee, customer, warehouse and planned days can be changed but not cleared. Custom fields are left alone. Preview first; it lists each field that changes. 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>",
      "input": "<input>"
    },
    "name": "update_manufacturing_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesThe fields to set.
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.6/5.0
Behavior5/5

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

Annotations only say destructive, non-idempotent, non-readonly; the description goes far beyond them by disclosing patch semantics (omitted fields retained, empty string clears), that lines wholesale replace existing lines, that assignee/customer/warehouse/planned days can be changed but not cleared, that custom fields are untouched, and the Write + manufacturing.execute permission plus confirm-card flow.

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 identification, then field-level rules, then state restrictions, then permissions — a sensible order with no filler sentences. It is dense as a single unbroken block, which makes the state-conditional rules slightly harder to scan than a short bulleted structure would.

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, nested-object mutation with a two-step preview/commit protocol, the description covers everything an agent needs: identity input, per-state field availability, clearing behavior, line replacement, side effects on custom fields, authorization, and an output-schema-backed preview step.

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 100%, so the baseline is 3, but the description adds genuine meaning the schema lacks: the priority scale (1 highest to 10 lowest), date format YYYY-MM-DD, the 1–50 line limit, each line's item/BOM/positive-quantity structure, and the replace-not-merge behavior of lines. It does not restate the preview/idempotencyKey/previewReceipt mechanics already documented in the schema.

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 ('Edit one manufacturing order') plus both identification modes (GUID or number, e.g. MO-001), which is enough to separate it from get/cancel/delete_manufacturing_order siblings without inspecting their schemas.

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 unusually strong when/when-not guidance: a draft accepts every field, issued orders accept only priority/planned days/description/internal note, and completed or canceled orders cannot be edited at all, plus 'Preview first' as the required path. The only gap is that it never names a sibling alternative for cases this tool rejects (e.g. cancellation for a canceled-forever order).

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