Skip to main content
Glama

建订单

cockpit_create_order

Create a new garment order in the cockpit with required customer and quantity; duplicate order numbers are deduplicated, and dryRun:true validates without saving.

Instructions

把一张新订单录进驾驶舱。客户名称和数量必填。同一单号重复提交不会建重复单(返回 existed:true),所以可以放心重试。想先演练不落库,传 dryRun:true。

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": {
      "customer": "<customer>",
      "qty": "<qty>"
    },
    "name": "cockpit_create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
mxNo颜色尺码矩阵,可空
noNo订单号,不填自动生成 DD-年月-序号
odNo下单日期 YYYY-MM-DD,不填默认今天
wsNo生产车间,如 一车间
dueNo交期 YYYY-MM-DD
qtyYes下单件数(必填)
costNo单件成本(元)
kindNo业务类型:内销品牌 / 外贸代工 / 来料加工
priceNo加工单价(元/件)
styleNo款式名,如 连帽卫衣
dryRunNotrue 时只校验不落库
remarkNo备注(来源、特殊要求)
urgentNo1=加急
styleIdNo款号,如 ST-2401
customerYes客户/品牌(必填)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses idempotency keyed on 单号 with an existed:true signal, declares retries safe, and explains that dryRun validates without writing. It still omits permissions/auth needs, side effects (whether downstream todos or alerts fire), and what a full success response contains beyond the existed flag.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, with purpose front-loaded and the required-field constraint immediately after. The retry-safety and dry-run notes each add distinct operational value, so nothing is filler.

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 15-parameter mutation tool with no annotations and no output schema, the description covers purpose, required inputs, idempotency, and dry-run — the three things an agent most needs. Return values are only partially described (existed:true, no mention of the created order id or validation-error shape), which is the main remaining gap.

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%, including descriptions for no, dryRun, mx, and all 15 properties, so the schema already explains parameter meaning. The description only restates the two required fields and the dryRun behavior, adding no syntax or format guidance beyond the schema; baseline 3 applies.

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 opens with a specific verb and resource: entering a new order into the cockpit, with 新建 framing that separates it from modification. It never names cockpit_update_order as the alternative for edits, so the sibling boundary has to be inferred from the "新订单" wording alone.

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?

It gives concrete usage context: enter a new order, retry freely on duplicate submission, and pass dryRun:true to validate without persisting. There is no explicit statement of when NOT to use it (e.g., correcting an existing order, bulk import), so it falls short of the when/when-not/alternatives bar.

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