Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COCKPIT_KEYYesYour API Key copied from 版房 → 对接设置 in the cockpit
COCKPIT_ACCTYesYour account, the string starting with `u_` shown in the browser address bar after logging in
COCKPIT_BASEYesThe cockpit server base URL, e.g. https://ylzz.work
COCKPIT_READONLYNoSet in the env to make the server read-only (e.g. COCKPIT_READONLY=1)

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

这家厂的生产数据都在「服装老板驾驶舱」。回答老板问题前先调 cockpit_summary 或 cockpit_alerts 拿真实数据,不要凭空猜数字。客户发来下单表时,整理成订单数组用 cockpit_import_orders 一次录入,先 dryRun 演练一遍再真导。发现问题用 cockpit_add_todo 落成待办,让老板在自己的列表里能看到。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
cockpit_summaryA

一次拿到这家厂的关键数字:订单总数、在产单数、逾期单数、加急单数、待办条数。不知道下一步查什么时,先调这个。

cockpit_alertsA

按紧急程度返回需要老板处理的事:逾期未交、3 天内到期、7 天内到期、加急单卡住、已入仓未回款、今天到期的待办。做「每日提醒」或「早会清单」就用这个。

cockpit_ordersA

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

cockpit_orderA

拿一张订单的全部信息,含颜色尺码矩阵。要看「这一单每个颜色每个码各多少件」时用。

cockpit_create_orderA

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

cockpit_update_orderB

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

cockpit_import_ordersA

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

cockpit_todosA

列出还没做完的待办(到期日、优先级)。

cockpit_add_todoA

往驾驶舱里落一条待办,让老板在自己的待办列表里看到。核对订单时发现问题,就把问题写成待办,别只在对话里说。

cockpit_helpA

返回开放接口的完整说明书:所有端点、字段含义、状态枚举、调用示例。想确认某个字段叫什么、状态码几代表哪个节点时调它。

cockpit_morning_reportA

生成今天这份「早报」的全文(逾期、今天到期、3 天内到期、缺料、未回款、今日待办),先给老板看,不发送。老板说「推给我」时再用 cockpit_push_now。

cockpit_push_nowA

把今天的早报立刻发到老板的微信 / 飞书(走驾驶舱里配好的推送渠道)。每天 7:30 会自动发一次,这个工具用于「现在就想看」。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 12 tools

Disambiguation4/5

Most tools are clearly distinct (list vs. single order vs. create vs. update vs. import all have different purposes). The main risk is the trio cockpit_summary / cockpit_alerts / cockpit_morning_report, which all surface 'what needs attention' and could be confused at a glance, but descriptions explicitly disambiguate each ('不知道下一步查什么' vs '每日提醒' vs '早报全文'). cockpit_orders vs. cockpit_order differs only by singular/plural, which is readable but slightly subtle.

Naming Consistency4/5

Every tool carries the same cockpit_ prefix and consistent snake_case, which is highly predictable. However, conventions mix noun-only names (cockpit_summary, cockpit_todos, cockpit_orders, cockpit_order, cockpit_help) with verb_noun names (cockpit_create_order, cockpit_update_order, cockpit_add_todo, cockpit_push_now), and the singular/plural pair orders/order encodes a semantic distinction that isn't visually obvious.

Tool Count5/5

12 tools is squarely in the well-scoped range, and each earns its place: dashboard summaries, alerts, order CRUD/import, todos, reporting, and help are all distinct concerns of a factory cockpit. No tool appears redundant or filler.

Completeness4/5

Order lifecycle is well covered (create, bulk import, list, get, update/status advance) and the report lifecycle (generate then push) is complete. The notable gap is the todo surface: todos can be listed and added but never marked complete, closed, or edited, which will force workarounds; order deletion/cancellation is also absent (though possibly reachable via status update).

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues