Skip to main content
Glama
adamzhang1987

kingdee-k3cloud-mcp

query_bill_json

Query Kingdee K3Cloud bill data as JSON objects with field-name keys. Supports filtering, sorting, and pagination for efficient data retrieval.

Instructions

查询金蝶云星空单据数据(返回JSON格式,字段名作为key)。

与 query_bill 的区别:返回结果是JSON对象数组,每条记录的字段名作为key,更易读。

Args: form_id: 表单ID。常用值: BD_MATERIAL(物料)、BD_Customer(客户)、BD_Supplier(供应商)、 SAL_SaleOrder(销售订单)、PUR_PurchaseOrder(采购订单)、 STK_InStock(入库单)、STK_OutStock(出库单)、GL_VOUCHER(凭证) field_keys: 查询字段,逗号分隔。如 "FName,FNumber,FCreateOrgId,FUseOrgId" 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
Behavior5/5

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

With no annotations, the description carries full responsibility. It thoroughly explains pagination via start_row and next_start_row, the dual role of top_count (TopRowCount and page size), and the conditional behavior of limit. This exceeds typical transparency for a query tool.

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

Conciseness5/5

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

The description is well-structured: a one-sentence purpose, a one-sentence distinction, then a clear Args list. Each sentence earns its place, and the parameter details are dense but readable. No filler or redundancy.

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?

For a 7-parameter tool with no annotations and no schema descriptions, this description is unusually complete. It covers return format, pagination, parameter semantics, and sibling differentiation. The presence of an output schema means the return structure doesn't need further explanation, so the description is sufficient.

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 coverage is 0%, but the description compensates fully. Every parameter is explained with concrete examples: form_id lists common values, field_keys shows a sample, top_count explains its Kingdee mapping and edge cases, and limit's conditional behavior is clarified. This goes far beyond what the bare schema properties provide.

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 clearly states the tool queries Kingdee Cloud document data and returns JSON format with field names as keys. It explicitly differentiates from the sibling query_bill by highlighting the output format difference, making the purpose specific and distinct.

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?

The description explicitly contrasts with query_bill, explaining when the JSON format is preferable. However, it does not list all alternative tools or provide explicit exclusions for when not to use this tool, so it stops short of full usage guidance.

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