Skip to main content
Glama
WaHaiLong

Kingdee MCP Server

by WaHaiLong

kingdee_discover_metadata_candidates

Read-onlyIdempotent

Discover database table names corresponding to Kingdee form IDs. Enter a form_id or prefix to get candidate table mappings.

Instructions

发现金蝶数据库中与指定 form_id 或 form_id 前缀对应的表。

这是面向金蝶/K3 场景的辅助工具:根据 form_id 推测对应的数据库表名。

form_id → 表名对应规律:

  • PUR_PurchaseOrder → t_PUR_PurchaseOrder(采购订单)

  • SAL_SaleOrder → t_SAL_SaleOrder(销售订单)

  • STK_InStock → t_STK_InStock(入库单)

  • BD_Material → t_BD_Material(物料)

  • BD_Supplier → t_BD_Supplier(供应商)

  • BD_Customer → t_BD_Customer(客户)

适用场景:

  • 想知道某个 form_id 对应数据库里哪张表

  • 想探索某类单据的所有关联表(如采购全流程:订单→收料→入库)

  • 理解金蝶 form_id 和数据库表名的映射关系

Returns: str: form_id 与表名的候选映射列表

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 already declare readOnlyHint=true and idempotentHint=true. Description adds context about being a helper tool for Kingdee/K3, providing mapping examples and return type. No contradictions (description states discovery, not mutation). Could disclose case sensitivity or limitation, but overall good.

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?

Description is well-structured with purpose, examples, scenarios, and return type. Front-loaded with main action. Could be slightly shorter by merging redundant parts, but clarity benefits from examples.

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 complexity of form_id-to-table mapping, the description is thorough: explains mapping logic, provides common examples, and lists use cases. Output schema exists, so return values need no further explanation. No significant gaps.

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 descriptions already cover both parameters. Description adds value by providing valid form_id examples and clarifying default behavior (empty returns all). Reinforces schema info. For limit, no extra detail, but schema is sufficient.

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?

Description clearly states the tool's purpose: discovering database tables corresponding to a form_id or prefix. It provides specific examples and distinguishes from siblings by focusing on form_id-to-table mapping, unlike other discovery tools like kingdee_discover_tables or kingdee_discover_columns.

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?

Explicitly lists applicable scenarios (knowing which table corresponds to a form_id, exploring related tables, understanding mapping). Does not mention alternatives or when not to use, but given the context and sibling names, it's clear that this tool is for mapping discovery. A mention of siblings would improve it.

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