Skip to main content
Glama

cross_check_balance

Cross-check financial statement data for internal consistency across three major statements. Get passed/failed/skipped status for each validation rule.

Instructions

跑财务勾稽校验,检测三大表数据是否互相自洽。返回每条校验的 passed/failed/skipped 状态与误差。

参数: stock_code: A 股代码,支持多种格式(同 get_three_statements)。 year: 年份,如 2024。仅支持年报。

返回: { "stock_code": "SZ000001", "company_name": "平安银行", "report_date": "2024-12-31", "checks": [ { "name": "balance_sheet_equation", "label": "资产负债平衡", "formula": "TOTAL_ASSETS = TOTAL_LIABILITIES + TOTAL_EQUITY", "lhs_value": 5769270000000.0, "rhs_value": 5769270000000.0, "diff": 0.0, "tolerance": 10000.0, "status": "passed" }, ... ], "summary": {"total": 3, "passed": 3, "failed": 0, "skipped": 0} }

当前 v1 包含 3 条行业通用勾稽:

  1. 资产负债平衡: TOTAL_ASSETS = TOTAL_LIABILITIES + TOTAL_EQUITY

  2. 现金流恒等式: 三大现金流 + 汇率影响 = 现金净增加额

  3. 期末/期初现金对账: END_CCE - BEGIN_CCE = CCE_ADD

容忍度 1 万元(财报舍入)。字段缺失时该条 status='skipped',不影响其它校验。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stock_codeYes
yearYes
Behavior5/5

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

No annotations given, but description fully covers behavior: checks three specific equations with tolerance, returns passed/failed/skipped status, handles missing fields gracefully, and notes annual-only support.

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?

Well-structured with intro, parameter details, return format example, and list of checks. Every sentence is informative and no 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?

Despite no output schema, description provides full return example and explains all statuses and tolerance. Parameter semantics are fully covered, and sibling references add context.

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?

Adds significant meaning beyond schema: explains stock_code format and links to sibling tool, clarifies year only supports annual reports, and includes example values.

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?

Clearly states the tool performs financial cross-check validation among three statements, distinguishing it from siblings like get_three_statements and compare_peers.

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?

Provides parameter specifics (stock_code supports multiple formats, year only annual reports) and lists the three checks. Does not explicitly exclude use cases, but context suffices.

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/yli769227-jpg/ashare-mcp'

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