Skip to main content
Glama

批量导入下单表

cockpit_import_orders

Batch-imports orders from customer Excel, image, or WeChat order tables, returning per-item created, existing, or failed results so one failed order does not block the rest.

Instructions

客户发来一张下单表(Excel/图片/微信消息),你把它整理成订单数组,一次全录进去。返回逐条结果:新建 / 已存在 / 失败原因。任一单据失败不影响其它单。

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": {
      "orders": "<orders>"
    },
    "name": "cockpit_import_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNotrue 时只校验不落库(建议先跑一遍看看)
ordersYes订单数组,每项字段同 cockpit_create_order

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations exist, so the description carries the full load and does well: it discloses per-item outcomes (新建 / 已存在 / 失败原因) and non-atomic partial-failure semantics ("任一单据失败不影响其它单"). Gaps remain: it never says what key determines "已存在", whether a retry is safe, or any permission/size constraints.

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?

Three short sentences, front-loaded with the triggering situation, then the return shape, then the failure-isolation guarantee. Nothing is padded and every sentence carries distinct information.

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?

With no output schema, the description usefully explains the per-item return categories, which is exactly what an agent needs. It falls slightly short on batch-size limits and duplicate-detection semantics for a bulk mutation tool, but covers the essentials for a 2-parameter import.

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% and both parameters are documented in the schema (including the dryRun validate-only behavior and the pointer that item fields match cockpit_create_order). The description only restates the array-input idea in prose, adding no format, required-field, or batching detail beyond 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: turn a customer-submitted order table (Excel/image/WeChat message) into an order array and import all at once. The batch framing ("一次全录进去") distinguishes it from the single-record cockpit_create_order sibling without naming it, so the agent can tell them apart from context.

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?

The opening scenario ("客户发来一张下单表") gives a clear use context, and the schema's dryRun note nudges a validate-first workflow. But there is no explicit statement of when to use batch import versus repeated cockpit_create_order calls, and no exclusions or limits (e.g. max rows, when to split the batch).

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