Skip to main content
Glama
WaHaiLong

Kingdee MCP Server

by WaHaiLong

kingdee_query_delivery_notice

Read-onlyIdempotent

Query Kingdee delivery notices (SAL_DELIVERYNOTICE) to retrieve pending or shipped notices with customer details, filtering by customer, date range, or document status.

Instructions

查询发货通知单。

对应金蝶 ApiDoc 销售管理域「发货通知」模块,FormId: SAL_DELIVERYNOTICE。 用于查询待发货/已发货通知单及其客户信息,支持按客户、日期、单据状态筛选。

⚠️ 字段 Key 警示(真机实测,范探源已验证): 本账套客户字段的元数据 Key 是 FCustomerID(大写 ID 后缀)。误用 FCustId 会报 「元数据中标识为FCustId的字段不存在」——本环境的 FCustId 在元数据中不存在,切勿改回 FCustId。 字段 Key 一律以 kingdee_get_fields 元数据为准。

⚠️ 动作范围说明:标准保存/提交/审核动作已由通用 kingdee_save_bill / kingdee_submit_bills / kingdee_audit_bills 等按 FormId 参数化覆盖,本工具仅做查询,不负责写操作。

常用 filter_string:

  • 已审核: "FDocumentStatus='C'"

  • 指定客户: "FCustomerID.FNumber='C001'"

  • 日期区间: "FDate>='2026-05-01' and FDate<='2026-05-31'"

推荐 field_keys(已按本环境元数据校验可用): FID,FBillNo,FDate,FDocumentStatus,FCustomerID.FName

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.4

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false. The description adds valuable environment-specific behavior: the FCustomerID vs FCustId field-key pitfall and the explicit no-write scope, though it does not discuss pagination or rate limits.

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?

Purpose and scope are front-loaded, with useful headings and bullets. The field-key warning is slightly verbose in repeating the failure mode and verification context, but each section remains actionable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema and safety annotations already present, the description supplies the key invocation details: FormId, query-only boundary, filter syntax, recommended field keys, and the critical environment-specific key caveat. Pagination and ordering defaults are adequately left to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents each parameter, giving a baseline of 3. The description goes beyond it with concrete filter_string examples for status, customer, and date ranges, plus a validated field_keys list; limit, start_row, and order_string remain schema-only.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb '查询' and resource '发货通知单', pins FormId SAL_DELIVERYNOTICE, and describes the customer/status/date filtering scope. The write-scope warning also distinguishes it from mutation siblings such as kingdee_save_bill and kingdee_submit_bills.

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

Usage Guidelines5/5

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

Explicitly says the tool is query-only and that save/submit/audit actions are handled by named generic alternatives. It also directs agents to verify field keys via kingdee_get_fields, giving clear when-not and alternative guidance.

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

Deploy Server

Other Tools