Skip to main content
Glama
WaHaiLong

Kingdee MCP Server

by WaHaiLong

kingdee_query_purchase_orders

Read-onlyIdempotent

Query purchase orders from Kingdee ERP with filters for status, supplier, date, and more. Retrieve key fields like bill number, date, supplier, and amounts.

Instructions

查询采购订单(PUR_PurchaseOrder)列表。

常用 filter_string:

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

  • 指定供应商: "FSupplierId.FNumber='S001'"

  • 指定日期: "FDate>='2024-01-01' and FDate<='2024-12-31'"

  • 未关闭: "FCloseStatus='A'"

  • 业务正常: "FBusinessClose='A'"

推荐 field_keys(默认已包含关键执行字段): FID,FBillNo,FDate,FDocumentStatus,FSupplierId.FName,FPurchaseDeptId.FName, FTaxAmount,FAllAmount,FReceiveQty,FStockInQty

注:FTotalAmount/FLinkQty/FBusinessClose 等字段在 demo 环境可能不存在, 如需关联数量,请用 FReceiveQty + FStockInQty 代替,或用 kingdee_get_fields 确认可用字段

关联数量业务规则:

  • 关联数量 = 累计收料数量 + 累计入库数量

  • 关联数量 >= 订单数量时,采购订单无法下推收料单/入库单

  • 勾选控制交货数量时,关联数量 >= 交货下限时无法下推

Returns: str: JSON 格式的采购订单列表

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already indicate read-only, idempotent, non-destructive. The description adds context about demo environment limitations, business rules for linked quantity, and return format, beyond what annotations provide.

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?

The description is front-loaded with the main purpose and efficiently organized with bullet points for filters and field keys. It is concise but includes necessary examples.

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?

Given the presence of an output schema, the description covers essential aspects: common filters, recommended fields, demo caveats, and business rules. It is complete for the tool's purpose.

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?

Although schema descriptions exist, the description adds practical examples for filter_string and field_keys, and explains the business rule, which adds meaning beyond the schema definitions.

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?

The description clearly states it queries purchase order list (PUR_PurchaseOrder) and provides detailed filter examples and field keys, making the specific resource and action unambiguous.

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 description does not explicitly differentiate from siblings like kingdee_query_bills or kingdee_query_purchase_order_progress. It implies usage by providing typical filters, but lacks when-to-use or alternative guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/WaHaiLong/KingdeeMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server