Skip to main content
Glama
adamzhang1987

kingdee-k3cloud-mcp

query_bill

Retrieve data from Kingdee K3Cloud ERP by specifying form ID and fields, with flexible filtering, sorting, and pagination.

Instructions

查询金蝶云星空单据数据(返回二维数组)。

Args: form_id: 表单ID。常用值: BD_MATERIAL(物料)、BD_Customer(客户)、BD_Supplier(供应商)、 SAL_SaleOrder(销售订单)、PUR_PurchaseOrder(采购订单)、 STK_InStock(入库单)、STK_OutStock(出库单)、GL_VOUCHER(凭证) field_keys: 查询字段,逗号分隔。如 "FName,FNumber" filter_string: 过滤条件。如 "FNumber like 'MAT%'" order_string: 排序字段。如 "FNumber ASC" top_count: 本次最多返回行数,默认100。映射到金蝶 TopRowCount(绝对终止行号 = start_row + top_count), 同时作为金蝶 Limit(单次页大小)。设为 0 表示不限制行数(仅靠 limit 控制)。 start_row: 起始行号,默认0。翻页时传入上一次返回的 next_start_row。 limit: 仅在 top_count=0 时生效,作为金蝶 Limit 页大小上限,默认2000。 top_count>0 时此参数被忽略(页大小由 top_count 决定)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
form_idYes
start_rowNo
top_countNo
field_keysYes
order_stringNo
filter_stringNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Absent annotations, the description reveals essential behavior: top_count maps to TopRowCount and also acts as page size; limit is only honored when top_count=0; start_row supports pagination via next_start_row. It also states the return type. It does not mention authentication or side effects, but 'query' implies a read-only operation.

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?

Structured as an Args docstring, it front-loads function purpose and uses compact bullet-like entries for each parameter with examples. It is slightly long but every sentence contributes to clarification.

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?

Covers all 7 parameters with semantics and interaction rules, and specifies return format. Since an output schema exists, return values are handled there. The only significant absence is sibling-tool usage guidance, which is already penalized in usage_guidelines.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema provides only property names with zero descriptions. The description compensates by explaining form_id common values, field_keys comma-separated format, filter_string and order_string examples, top_count semantics including Kingdee TopRowCount/Limit interaction, start_row pagination, and limit condition.

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 states '查询金蝶云星空单据数据(返回二维数组)' clearly identifying the operation (query), resource (Kingdee Cloud Star documents), and return format (2D array). It differentiates from siblings like query_bill_json (JSON output) and count_bill (count).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Despite thorough parameter explanations, the description never mentions when to prefer query_bill over other sibling tools such as query_bill_json, view_bill, or query_bill_all. There is no alternative guidance or exclusion criteria.

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/adamzhang1987/kingdee-k3cloud-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server