Skip to main content
Glama
WaHaiLong

Kingdee MCP Server

by WaHaiLong

kingdee_save_bill

Create or update Kingdee Cloud documents like purchase orders and sales orders. Automatically corrects field name errors and controls entry deletion.

Instructions

新建或修改金蝶单据(采购订单、销售订单等)。

  • 新建:model 中不传 FID

  • 修改:model 中必须传 FID,并设置 is_delete_entry=false 防止分录被删

  • 自动纠错:如字段名拼写错误(如 FSalesOrgId→FSaleOrgId),会自动修正

新建采购订单 model 示例: { "FDate": "2024-01-15", "FSupplierId": {"FNumber": "S001"}, "FPurchaseDeptId": {"FNumber": "D001"}, "FPOOrderEntry": [ {"FMaterialId": {"FNumber": "MAT001"}, "FQty": 100, "FPrice": 10.5, "FUnitID": {"FNumber": "PCS"}} ] }

Returns: str: JSON,含新建单据的 FID 和单据编号 FBillNo

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 are minimal (readOnlyHint=false, etc.). Description adds significant behavioral context: auto-correction of typos, FID handling, and is_delete_entry behavior. This adds value beyond annotations.

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?

Very concise: two paragraphs (rules and example) with clear bullet points. Every sentence earns its place. Front-loaded with purpose and rules.

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 tool's complexity (create vs. update, auto-correction, 4 parameters) and presence of output schema, the description covers all key aspects and provides a complete usage example.

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?

Schema has descriptions for all parameters, but description adds a concrete purchase order model example and clarifies the relationship between FID and is_delete_entry. This supplements the schema well.

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 creates or modifies Kingdee documents (e.g., purchase orders, sales orders) with specific verb+resource. It distinguishes from sibling tools like kingdee_audit_bills or kingdee_query_bills.

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

Usage Guidelines4/5

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

Provides clear rules: new need no FID, modify must have FID and set is_delete_entry=false. Also mentions auto-correction of field names. Could explicitly mention when not to use (e.g., for asset or production order specific saves) but overall helpful.

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