Skip to main content
Glama
chang0911

丝路E投财务引擎 MCP 适配层

by chang0911

generate_dashboard

Creates an offline single-file HTML financial dashboard for project cash-flow staging and dual-caliber solvency analysis, returning a file URL or base64.

Instructions

财务看板(动态资金流演绎+双口径动态偿债能力分析)→ 单文件HTML(约1.1MB,侧边栏导航:总览/动态资金流演绎/敏感性热力/双口径动态偿债能力,ECharts内联可离线查看),返回 file_base64(约1.1MB大文件,默认返回72h下载短链(return_mode="base64" 可回退))。两种用法二选一:①推荐 input 传完整五类输入(project_basic_info/construction_data/revenue_data/cost_data/financing_data 的 .txt),由平台引擎计算标准11张报表(与平台后续分析同源同口径,勿自行拼装报表);②reports 传E投原生导出的11张标准报表txt+input附 project_basic_info.txt(自行拼装的精简表会被守门拦截)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYes用法①:完整五类输入txt(推荐,平台计算标准报表);用法②:至少含 project_basic_info.txt
reportsNoE投原生导出的11张报表txt:文件名→全文(用法②)
return_modeNo成品交付方式:base64(默认,兼容);url 推荐——返回72h下载短链(file.url),防大文件撑爆上下文,外部客户端建议默认 url

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does it well: it reveals the ~1.1MB output size, the default 72h download short-link delivery with base64 fallback, and the gatekeeper validation that rejects non-native/self-assembled reports. It does not cover permissions, processing duration, or failure/error behavior, so it stops short of 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.

Conciseness4/5

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

Dense but front-loaded: purpose and output format come first, then delivery semantics, then the ①② usage enumeration. Nearly every clause earns its place (size, offline capability, gatekeeper rule), though the single long paragraph is information-heavy and slightly hard to parse at a glance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex nested-object tool with no output schema, the description is well covered: it explains input combinations, the validation rule, the returned artifact and both delivery channels. Remaining gaps are secondary details such as runtime expectations or auth requirements, which are not strictly needed to call it correctly.

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?

Schema coverage is 100%, so the baseline is 3; the description adds real meaning by tying parameters to the two usage patterns (input = five categories or at minimum project_basic_info.txt; reports = the 11 native report files; return_mode = base64 default vs url recommended). It clarifies the valid input combinations rather than restating field types.

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?

States a specific verb+resource: it generates a financial dashboard (dynamic cash-flow演绎 + dual-caliber solvency analysis) delivered as a single self-contained HTML file with named sidebar sections and inlined ECharts. This is concrete enough that an agent can distinguish it from generate_ppt_html / generate_word_report without opening a schema.

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 lays out two mutually exclusive usage modes (① recommended: full five-category input files letting the platform compute the standard 11 reports; ② reports: E投 native 11 reports + project_basic_info.txt), and warns that hand-assembled simplified tables are rejected by the gatekeeper. It also advises the recommended return_mode for external clients, leaving essentially nothing to inference.

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