Skip to main content
Glama
Kingdee MCP Unified

Kingdee MCP Unified

by sclyxnet

kingdee_search_fields

Read-onlyIdempotent

Search Kingdee form metadata by Chinese field name to return field keys, labels, entities, required status, lookup targets, and tables for building WebAPI payloads or bill creation.

Instructions

中文 → 字段 key:按中文名在表单元数据里搜字段(自然语言建单的翻译第一步)。

用户说"添加销售订单,客户、数量、日期",本工具把中文翻译成 WebAPI 字段: 返回每个命中的 {字段key, 中文名, 所在单据体, 是否必填, 参照对象, 表名}。 参照字段(lookup_form 非空)需要填编码 {"FNumber": "..."},编码可用 kingdee_find_code 按中文名查得;非参照字段直接填值。

数据来源:QueryBusinessInfo 元数据(Fields[].Name 多语言 2052),非人工字典。

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_search_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.11

TDQS

A4/5.0
Behavior4/5

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

The annotations already establish that the tool is read-only, idempotent, non-destructive, and closed-world, so the description does not need to comment on safety; instead, it adds useful context beyond the annotations. It discloses the data source, QueryBusinessInfo metadata Fields[].Name in language 2052 rather than a hand-maintained dictionary, and it describes the shape of each hit along with the lookup-encoding requirement. It does not state matching semantics such as whether matching is exact or fuzzy and whether it is case-sensitive.

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 content is front-loaded with a bold label that states the purpose, followed by an worked example, return shape, lookup handling, and data provenance, with little wasted text. The example sentence repeats what the purpose sentence already implies, which is mildly redundant but pedagogically useful.

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?

An output schema exists, so the description does not need to document return values, yet it usefully summarizes the hit structure. Given the read-only annotations and the simple input, the definition covers purpose, pipeline position, data source, and lookup handling; only the boolean filters and matching precision are left unaddressed.

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 description explains keyword behavior, including multiple space-separated Chinese keywords and OR-style matching, and it explains that results are scoped to one form's metadata. It says nothing about the only_lookup and only_required filter flags, which are documented only in the nested schema, so the description partially but not fully compensates for the low schema description coverage signal.

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 uses a specific verb and resource: it searches a form's metadata for fields by Chinese name and maps those names to WebAPI field keys, with a concrete example in which 客户, 数量, and 日期 are translated. It clearly distinguishes this from a lookup-code tool by naming kingdee_find_code as the follow-up for resolving lookup values, but it never contrasts itself with kingdee_get_fields, which presumably returns fields by other criteria.

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 states the context clearly: this is the first step in translating natural-language order creation, taking Chinese user phrases and resolving them into field keys. It also gives actionable downstream guidance: if a field has a non-empty lookup_form, fill it with an encoded value such as {FNumber}, which can be looked up via kingdee_find_code; otherwise fill it directly. It gives no explicit when-not-to-use guidance or rule for choosing between this tool and kingdee_get_fields or kingdee_describe_table.

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