Skip to main content
Glama
WaHaiLong

Kingdee MCP Server

by WaHaiLong

kingdee_validate_bill

Read-onlyIdempotent

Validates bill data structure before saving to catch missing required fields and structural issues, returning fix suggestions to ensure a successful save.

Instructions

保存前校验单据模型(不真正保存),秒级反馈结构是否正确,避免反复试错。

返回:

  • ok: 是否通过(无缺失必填、无结构问题)

  • is_new: 是否新建(model 无 FID)

  • auto_fixes: 将被自动更名的字段 [{"from","to","location"}](如 FCustId→FCUSTID)

  • missing_required: 缺失的顶层必填字段

  • entry_issues: 分录中缺失的必填子字段 / 结构异常

  • suggestions: 修正建议清单

典型用法:先用本工具校验 -> 按 suggestions 修正 -> 再调用 kingdee_save_bill,一次成功。

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.4

TDQS

A4.4/5.0
Behavior4/5

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

Consistent with readOnlyHint/idempotentHint/destructiveHint=false via '不真正保存', and adds genuine behavioral color: sub-second feedback ('秒级反馈') and the failure taxonomy (auto_fixes, missing_required, entry_issues). Slightly redundant in that it enumerates return fields that the output schema already declares.

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?

Front-loaded with the core purpose and the key 'does not save' qualifier, then a scannable bullet list, then the recommended workflow. The return-field list is somewhat duplicative of the output schema, which costs a bit of tightness.

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?

An agent has everything needed: what it does, that it is safe and non-persisting, what kinds of errors it surfaces, and the exact sequence to follow before saving. Return values are also covered by an output schema, so no meaningful gap remains.

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?

The description adds one useful semantic point — 'is_new: model 无 FID' — which clarifies how the model parameter encodes create vs update, and '缺失的顶层必填字段' hints at the expected structure. But it says nothing about form_id, is_delete_entry, or need_update_fields, which are present in the schema and whose relevance to a non-saving validation is unclear; a low reported schema-coverage figure means the description should compensate more.

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 + resource: pre-save validation of a bill model, explicitly '不真正保存' (does not actually save). This clearly separates it from the write path kingdee_save_bill and from other mutation siblings such as audit/submit.

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?

Gives an explicit workflow: validate first, fix per suggestions, then call kingdee_save_bill so it succeeds the first time. The alternative (kingdee_save_bill) and the condition selecting this tool are both named, no inference required.

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