Skip to main content
Glama
WaHaiLong

Kingdee MCP Server

by WaHaiLong

kingdee_view_bill

Read-onlyIdempotent

Retrieve complete document details by FID, with option to return only key fields for reduced size.

Instructions

根据单据内码 FID 获取单据完整详情(含所有分录字段)。

mode=summary(默认):关联字段只保留 Id / Number / Name,大幅缩减体积, 适合参照旧单建新单。完整数据动辄 10 万字符,summary 通常在 1 万以内。 mode=full:返回原始 JSON。

Returns: str: JSON 格式的单据数据

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 indicate read-only, non-destructive, and idempotent. The description adds valuable context beyond: the data size (up to 100k characters) and how summary mode truncates related fields to Id/Number/Name. This helps the agent understand the output size and behavior. No contradictions with annotations.

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 concise, front-loading the main purpose and then explaining modes. Every sentence adds value: the core action, mode details with size comparisons, return type. No unnecessary words.

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 tool's complexity (read-only view with two modes) and the presence of an output schema (though not shown), the description is complete. It explains when to use each mode, the return type, and size implications. No gaps remain for an agent to effectively invoke this tool.

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?

The input schema descriptions already explain form_id, bill_id, and mode. The description reinforces mode's purpose and adds practical context (size reduction, use case). Although schema coverage is high, the description adds value by explaining the summary mode's suitability for creating new bills, which is not in the 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 clearly states the tool's purpose: retrieving complete bill details by the internal code FID, including all entry fields. It specifies the resource (bill), action (view details), and key identifier. This distinguishes it from sibling tools like kingdee_query_bills (which lists bills) and kingdee_view_production_order.

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 explains when to use summary mode (referencing old bills) vs full mode (original JSON), including size implications. It does not explicitly state when not to use this tool or mention alternatives, but the context of siblings and required parameters (form_id, bill_id) implies it is for viewing a specific bill's details. Some explicit guidance on prerequisites would improve clarity.

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