Skip to main content
Glama
adamzhang1987

kingdee-k3cloud-mcp

query_bill_all

Retrieve complete bill data by automatically paging through query results up to a configurable limit, avoiding truncated responses.

Instructions

自动翻页查询直到拉完或达到 max_rows 安全上限。

适合估算 ≤ 数千行的场景。大数据量(> 5000 行)请用 query_bill_to_file(落盘) 或 query_bill_range(日期分片),避免超过 MCP 1 MB 返回限制。

返回格式: {"rows": [...], "row_count": N, "exhausted": true/false, "next_start_row": N, # 仅 exhausted=false 时 "hint": "..."} # 仅 exhausted=false 时

Args: form_id: 表单ID。如 SAL_SaleOrder、PUR_PurchaseOrder、BD_MATERIAL 等 field_keys: 查询字段,逗号分隔。如 "FBillNo,FDate,FAmount" filter_string: 过滤条件。如 "FDate >= '2025-01-01'" order_string: 排序字段。如 "FDate ASC" max_rows: 安全上限,默认 20000;超过则提前终止并返回 exhausted=false page_size: 每页行数,默认 2000,建议不超过 2000

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
form_idYes
max_rowsNo
page_sizeNo
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?

No annotations are provided, so the description carries the full burden. It discloses auto-pagination until completion or max_rows cutoff, early termination behavior, the exhausted/next_start_row/hint return flags, and the safety limit. This goes beyond simple read/write hints, offering rich behavioral context.

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 and front-loaded: core behavior first, then usage guidance, return format, and parameter definitions. Every sentence earns its place, and the use of sections (返回格式, Args) keeps it scannable without unnecessary fluff.

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?

Although an output schema is indicated, the description provides an explicit return format inline, which is valuable. It covers all six parameters, provides usage constraints and alternatives, and explains the 1 MB limit. For a tool with no annotations and a low-coverage schema, this description is complete enough for an agent to invoke correctly.

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?

The input schema has 0% description coverage, so the description fully compensates by explaining every parameter: form_id (with examples like SAL_SaleOrder), field_keys (comma-separated format), filter_string (example filter), order_string, max_rows (safety default), and page_size (default and recommendation). This adds significant meaning beyond the bare 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 uses a specific verb '自动翻页查询' (auto-paginate query) with a clear resource 'bill' and scope 'all', distinguishing it from siblings like query_bill (single page) and query_bill_range (date sharding). It clearly explains the pagination behavior and the max_rows safety limit.

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

Usage Guidelines5/5

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

Explicitly states the tool is suitable for scenarios estimating ≤ several thousand rows, and for >5000 rows recommends query_bill_to_file or query_bill_range, citing the 1 MB MCP return limit. This gives clear when-to-use and when-not-to-use guidance with named alternatives.

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