Skip to main content
Glama
Kingdee MCP Unified

Kingdee MCP Unified

by sclyxnet

kingdee_list_forms

Read-onlyIdempotent

Search Kingdee Cloud ERP form types by keyword to discover valid form_id values before querying or writing records. Returns each form's ID, name, description, recommended fields, and database table.

Instructions

搜索金蝶系统中可用的表单类型(form_id)。

不知道 form_id 时,先调用此工具搜索。例如:

  • 输入"员工"返回 BD_Empinfo

  • 输入"采购"返回采购相关的表单列表

  • 留空返回所有常用表单

Returns: str: JSON 格式的表单列表,含 form_id、名称、描述、推荐字段、数据库表名

⚠️ 0.3.6 修复「只支持写死目录」的 bug:本地 FORM_CATALOG 原本只有 48 个表单 (账套实际有 1348 个单据 + 1240 个基础资料,覆盖率不足 5%)。现默认 scope=all, 直接从 BOS_ObjectType(T_META_OBJECTTYPE)搜账套全部业务对象(只含可读 form_id, 自动排除 GUID——GUID 形态 WebAPI 不认);FORM_CATALOG 降级为语义补充 (desc/别名/推荐字段/业务规则),仅 scope=catalog 时单独使用。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "params": "<params>"
    },
    "name": "kingdee_list_forms"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.11

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, and the description does not contradict them. It adds real behavior beyond annotations: the default scope=all now searches BOS_ObjectType (T_META_OBJECTTYPE) across the whole account set, GUID-form identifiers are auto-excluded because WebAPI rejects them, and FORM_CATALOG is downgraded to a semantic supplement used only with scope=catalog. The 0.3.6 changelog framing is version-specific noise, but the underlying disclosure of coverage and filtering is genuinely useful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and usage are front-loaded and easy to scan, with a useful worked-example list. But the trailing ⚠️ paragraph is a release-note changelog ('0.3.6 修复…bug', '原本只有 48 个表单', coverage percentages) whose historical detail does not help an agent decide or invoke, and the 'Returns:' block duplicates what the output schema already provides.

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

Completeness4/5

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

For a read-only search tool with an output schema and strong annotations, the description covers the essentials: what is searched, what is excluded, how scope changes the data source, and the workflow trigger. Remaining gaps are minor — the verify/verify_limit verification path is not mentioned in prose and return values are already covered by the output schema.

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 reported schema description coverage is 0% at the top level, but the nested FormSearchInput definitions do document limit/scope/verify/keyword/model_type/verify_limit. The description reinforces only two of these: scope=all vs scope=catalog semantics and keyword examples. It says nothing about verify, verify_limit, or model_type, so it adds partial rather than compensating meaning.

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

Purpose4/5

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

The description opens with a specific verb+resource: search available form types (form_id) in the Kingdee system, with concrete examples ('员工' → BD_Empinfo, '采购' → list of purchase forms). It is clear what the tool returns. However, it never distinguishes itself from similarly named siblings such as kingdee_list_object_types or kingdee_discover_metadata_candidates, leaving the agent to infer the boundary.

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?

It gives explicit triggering guidance: 'when you don't know form_id, call this tool first to search', plus a blank-keyword behavior ('留空返回所有常用表单'). That is a clear when-to-use condition. It stops short of naming when to use an alternative sibling or when not to use this tool.

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