Skip to main content
Glama

查订单

cockpit_orders

Queries garment factory orders by keyword, customer, status, urgency, or overdue flag and returns order details, due dates, production stage, and progress so teams can track delivery.

Instructions

按条件查订单。不带条件就是全部(最多 200 条)。每行带:单号、客户、款式、数量、已交、单价、下单日、交期、当前节点、进度%、距交期天数。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cockpit_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo关键词,匹配单号/款号/客户/备注
limitNo最多返回几条,默认 30
statusNo0未设置 1下单 2面辅料采购中 3裁剪中 4车间生产中 5尾部 6打包中 7已入仓 8已回款
urgentNo只看加急单
overdueNo只看逾期未交
customerNo客户或品牌名(模糊匹配)

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?

With no annotations supplied, the description carries the full burden and does disclose a real behavioral trait: the hard 200-row cap on unfiltered queries. It also implies a read-only query via '查', though it never explicitly says the tool does not mutate data. One ambiguity remains: 'no conditions returns all (max 200)' sits uneasily with the schema's stated default of 30, leaving the actual default page size unclear.

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?

Two sentences, front-loaded with purpose and scope, then the returned columns. No filler; the column list earns its place because no output schema exists.

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?

Six optional parameters with no output schema make the returned-field enumeration especially valuable, and it is provided. Gaps are minor but real: the default-limit ambiguity and the absence of any sort order or pagination behavior.

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% and every parameter (q, limit, status enum, urgent, overdue, customer) is documented in the schema, so the baseline is 3. The description adds no parameter-level meaning of its own, such as how q interacts with customer or whether overdue/urgent can be combined.

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?

Names a specific verb and resource (查订单/query orders) and states the default scope (no filters = everything, capped at 200). It does not distinguish itself from the singular sibling cockpit_order or from cockpit_import_orders, so an agent must infer the split between listing and detail/import views.

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 '不带条件就是全部' clause gives implicit guidance that calling with no filters is valid, and the filter fields hint at narrowing use. However, there is no explicit when-to-use / when-not-to-use guidance, and no mention of when an agent should prefer cockpit_order (detail) or cockpit_update_order instead.

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