Skip to main content
Glama
chang0911

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

by chang0911

get_chapter_data

Retrieve structured section data and writing points for feasibility or economic evaluation reports by chapter, so you can draft and export a Word report with accurate figures.

Instructions

报告章节取数:可研报告(feasibility,8章)或经济评价报告(econ,6章)按章节返回结构化数据+写作要点,供撰写后走 generate_word_report 出稿。chapter=list 先看目录;数据源 p_id(+stage) 或 reports 对象(无平台项目号时可先 fast_calc_reports 生成11张表再传入)。数字一律引用返回值。模板先看 get_skill_instructions(skill=feasibility_report|econ_report)。 各章返回的 data 键可作 generate_word_report 段落占位符 {{章节.键[.年份|.total]}}(比率可|pct)——数字由系统直灌,推荐用。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
p_idNoE投项目号(纯数字,与 reports 二选一)
filesNo5类输入txt:文件名→全文(与 p_id/reports 三选一——引擎直算标准报表后取章节值,外部会话推荐)
stageNo默认 scheme_stage
chapterNo章节id(list=目录)
reportsNo直接提交报表(与 p_id 二选一):{E投标准报表文件名: 原生txt全文},或 JSON {文件名:{行名:{年份:数值}}} / [[表头行],[数据行]...] 二维数组(financial_ratios 传 [{idx,name,m,a}] 列表),或 fast_calc_reports 返回的 tables 整包;可子集
report_typeYes报告类型

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and discloses that numbers must be referenced from return values, that data keys can be used as placeholders in generate_word_report with {{章节.键[.年份|.total]}} syntax, and that numbers are injected by the system. It doesn't mention rate limits, permissions, or error behavior, but it provides substantial operational context for a read-only data retrieval tool.

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?

The description is dense but front-loaded with the core purpose and then packed with essential usage rules. Some parenthetical details and the placeholder syntax could be slightly clearer, but every sentence adds actionable information.

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 six parameters with nested objects, no output schema, and no annotations, the description covers the data structure, the alternative input methods, the downstream integration, and the placeholder contract thoroughly. An agent has enough to invoke correctly and use the output.

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?

Schema coverage is already 100%, but the description adds non-obvious semantics: chapter=list means get directory, p_id requires a pure numeric E投 project ID, reports can be a fast_calc_reports tables package or a subset, and stage defaults to scheme_stage. It explains the three-way exclusivity (p_id, reports, files) beyond 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 states a specific verb and resource: return structured data plus writing points per chapter for feasibility (8 chapters) or econ (6 chapters) reports. It also distinguishes itself from siblings by naming get_skill_instructions for templates and generate_word_report downstream.

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 tells when to use chapter=list to see the directory, when to use p_id+stage vs reports, and that fast_calc_reports should be used first if no platform project number exists. It also directs to get_skill_instructions before template work, covering alternatives and conditions.

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