Skip to main content
Glama
Kingdee MCP Unified

Kingdee MCP Unified

by sclyxnet

kingdee_query_kds_report

Read-onlyIdempotent

Retrieves Kingdee KDS financial statement report data, such as balance sheets, income statements and cash flow statements, by report template code and accounting dimensions for a given organization, year and period.

Instructions

通过 KDS 财务报表专用 API 取报表数据(报表系统模板报表,如资产负债表/利润表/现金流量表)。

端点:Kingdee.BOS.KDS.ServiceFacade.ServicesStub.KDSReportAPIStub.GetReportData,Kingdee.BOS.KDS.ServiceFacade.ServicesStub (用户 2026-10-19 指正;此前注释"KDSReportAPI 不可用"系端点名不完整——漏了逗号后的组件后缀。)

三种报表取数接口的分工:

  • 账表(科目余额表 GL_RPT_AccountBalance 等)→ kingdee_query_report(GetSysReportData)

  • 供应链库存分页账表 → kingdee_query_stock_report(StockReportQueryService)

  • 财务报表系统模板报表(本工具)→ KDSReportAPIStub.GetReportData

参数格式(官方"报表API工具"可生成): {"parameters":["{"ReportType":1,"ReportNumber":"BBMB0001",...,"DataType":"Json","ResultType":"0"}"]} HTTP 层为 raw JSON body(同库存分页报表),非 form-urlencoded。

报错解读:{"status":"1","message":"未找到对应参数的报表模板"} = 参数结构正确但该账套 没有对应报表模板(核对 ReportNumber/账簿体系/会计政策/组织编码)。

Args: params: KDSReportQueryInput

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "params": "<params>"
    },
    "name": "kingdee_query_kds_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.11

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, idempotent, non-open-world), so the description's added value is the transport detail (HTTP layer is a raw JSON body, not form-urlencoded) and the error-decoding rule that '未找到对应参数的报表模板' means structurally valid parameters but no matching template in that account set. It does not mention permissions or pagination/volume limits, so not a 5.

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

Conciseness3/5

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

Purpose is front-loaded and the division-of-labor list is efficient, but the endpoint section carries meta-noise: a dated user correction and a parenthetical about a prior comment that 'KDSReportAPI 不可用' being wrong due to an incomplete endpoint name. That editorial history does not help the agent call the tool, and the trailing 'Args: params: KDSReportQueryInput' restates the schema.

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 single wrapped parameter object with an output schema present, the description covers everything the agent still needs: which sibling to prefer, the exact request envelope shape, the transport encoding, and how to interpret the most likely error response. Return-value documentation is correctly left to the output schema.

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 description supplies the concrete request envelope ({"parameters":["{...}"]}) and a sample payload showing how ReportType/ReportNumber/DataType are produced by the official report-API generator, which is meaning the agent cannot derive from the schema alone. It also reinforces that ReportNumber is a financial-report-system template code (e.g. BBMB0001), not a form_id — though that point is partly duplicated 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 opening sentence states a specific verb and resource (retrieve report data via the KDS financial-statement dedicated API) and enumerates the concrete report types (balance sheet / income statement / cash flow). It immediately separates this tool from the two sibling report tools by naming their distinct underlying services.

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?

The 'three report-interface division of labor' block explicitly routes: account/ledger reports → kingdee_query_report (GetSysReportData), supply-chain stock paginated reports → kingdee_query_stock_report, financial-report-system templates → this tool. That is an explicit when-to-use/when-not pair with named alternatives, which is exactly the top of this dimension.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools