Skip to main content
Glama

改订单 / 推节点

cockpit_update_order

Update selected order fields—such as production status, due date, or paid amount—while leaving other data unchanged. Use dry-run validation before saving changes.

Instructions

改一张订单的字段,最常用的是推进生产节点(status 0→8)。只传要改的字段,其余不动。

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": {
      "no": "<no>"
    },
    "name": "cockpit_update_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
noYes订单号(必填)
wsNo生产车间
cutNo已裁件数
dueNo新交期 YYYY-MM-DD(复期用)
paidNo已回款金额
dryRunNotrue 时只校验不落库
remarkNo备注
statusNo新节点:0未设置 1下单 2面辅料采购中 3裁剪中 4车间生产中 5尾部 6打包中 7已入仓 8已回款
urgentNo1=加急,0=取消加急
shippedNo已交货件数

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose the key trait that unspecified fields are left untouched rather than cleared. It says nothing about permissions, whether a status advance triggers downstream effects, reversibility, or what a call returns, which are material gaps for a 10-parameter mutation tool.

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?

Two short sentences, front-loaded with the primary use case, and no filler. It is arguably too terse for a tool with 10 parameters, but that shortfall belongs to completeness rather than verbosity.

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 10-parameter mutation with no annotations and no output schema, the description covers the partial-update contract but omits risk and result context (validation behavior via dryRun, side effects of status transitions, auth needs). The rich schema compensates for parameter documentation, so this is adequate but not 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 description coverage is 100%, so the schema already defines every field including the status enumeration and dryRun. The description adds only a light gloss — that status advancement is the typical edit and that only changed fields need to be sent — so the baseline 3 is appropriate.

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?

The description names a specific verb and resource (改一张订单的字段) and immediately identifies the dominant use case, advancing the production status from 0 to 8. It is clearly a mutation of an existing order, which distinguishes it in intent from cockpit_create_order, though it never names that sibling explicitly.

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

Usage Guidelines3/5

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

It states that the most common use is advancing the production node and clarifies partial-update semantics ('只传要改的字段,其余不动'), which tells the agent how to call it. However, it offers no explicit when-to-use versus alternatives (e.g., create vs. read vs. push_now), leaving the agent to infer routing from sibling names alone.

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