Skip to main content
Glama
Kingdee MCP Unified

Kingdee MCP Unified

by sclyxnet

kingdee_find_code

Read-onlyIdempotent

Resolves a Chinese master-data name into its Kingdee code for reference fields by fuzzy lookup, supporting customers, suppliers, materials, departments, organizations, and employees.

Instructions

中文值 → 编码:按中文名在基础资料里模糊查编码(自然语言建单的翻译第二步)。

用户说"客户是凤集"、"物料用原料蛋",本工具返回 {"FNumber": "090002", "FName": "..."}, 直接填进 model 的参照字段。适用于任意参照对象(客户/供应商/物料/部门/组织/员工…)。

官方字段惯例(金蝶云社区 webapi 实践):编码一般 FNumber(员工 FStaffNumber)、 名称一般 FName(辅助属性 FDataValue)、内码一般 FId(组织 FOrgId、用户 FUserId)。

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

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.11

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotent/non-destructive, so safety is covered; the description adds the genuinely useful behavioral fact that matching is fuzzy rather than exact, plus a concrete sample return value. It also documents the domain field-naming conventions and their exceptions (employees FStaffNumber, aux attributes FDataValue, orgs FOrgId), which go beyond the annotations.

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 bolded purpose line, followed by a worked example and then field conventions — a sensible ordering with little waste. The trailing convention paragraph is dense but each clause adds a concrete exception an agent would otherwise get wrong.

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 and the description illustrates its shape, so return values need not be explained further. For a single-object fuzzy lookup tool the description covers purpose, input origin, and output usage; only explicit handling of no-match / multiple-match cases is absent.

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?

Reported schema description coverage is 0% at the top level (the arguments object is a bare $ref), so the description carries real weight: it explains that name is fuzzy-matched, that lookup_form comes from kingdee_search_fields, and which field-name conventions the defaults assume (FNumber/FName with named exceptions). It does not mention limit or the 1–50 bound, but the defaults are documented in the nested schema.

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 opens with a precise verb+resource pairing (中文值 → 编码, fuzzy lookup of a code by Chinese name in base data) and frames it as the second translation step for natural-language bill creation. It also clarifies the scope (any reference object: customer/supplier/material/dept/org/employee), so an agent can distinguish it from metadata-discovery siblings like kingdee_search_fields.

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?

Usage context is explicit: it is the code-translation step after a lookup_form has been obtained, and the returned {"FNumber", "FName"} should be written directly into the model's reference field. What is missing is an explicit exclusion or named alternative (e.g., when to use kingdee_search_fields or kingdee_get_fields instead of this converter).

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