Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

FairyReport MCP Server 提供 15 类专业工程咨询与智库报告的标准大纲蓝图、本地工程底稿向量建库、三源深度 RAG 检索(底稿【源】+ 国标【标】+ 权威联网【网】)、跨章节工程经济指标自洽性核验以及出版级三线表 Word (.docx) 导出能力。推荐按以下五步工作流调用工具:1. list_report_templates / get_report_blueprint 获取标准大纲与写作规范 -> 2. ingest_project_materials 导入本地底稿(如有) -> 3. retrieve_report_evidence 检索章节证据并遵循蓝图规范撰写各章 Markdown -> 4. verify_report_consistency 核验跨章节投资/用地/收益率指标自洽性 -> 5. export_consulting_docx 编译导出带封面、目录、三线表与参考文献的出版级 Word 初稿。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_report_templatesB

列出 FairyReport 支持的全部 15 类专业工程咨询、投资立项与智库报告模板清单、字数上限及推荐写作顺序。

get_report_blueprintA

获取指定报告类型的权威标准章节大纲(outline_md)、各章节字数预算、推荐写作顺序及出版级写作规范提示词。

参数:
    report_type: 报告类型名称(如 "可行性研究报告"、"项目建议书"、"资金申请报告"、"智库专报" 等,可通过 list_report_templates 查看)。
ingest_project_materialsA

将本地工程底稿或参考资料(支持 .pdf, .docx, .xlsx, .txt, .md)解析、分块并向量化入库到指定项目知识库。

支持直接传入整个文件夹路径:当列表元素为文件夹时,会自动递归扫描并导入该目录下所有受支持的文档(自动跳过隐藏文件与 Office `~$` 临时锁文件),用户无需逐一列出文件名。

参数:
    project: 项目名称(如 "长三角算力中心可研项目")。
    file_paths: 本地文件或文件夹绝对路径列表(可混传单个文件路径与文件夹路径)。
retrieve_report_evidenceA

执行三源深度 RAG 检索(1. 项目底稿向量库【源:文件名】 + 2. 行业标准规程库【标:标准名称】 + 3. 百度免 Key 权威联网检索【网:标题】)。

宿主大模型在撰写报告章节时,必须仅使用本工具返回的【源:...】、【标:...】、【网:...】标签作为行内引用,严禁虚构出处。

参数:
    query: 检索关键词或当前小节核心主题。
    project: 项目名称(若已通过 ingest_project_materials 导入底稿,传入对应项目名以检索本地底稿库)。
    chapter_title: 当前撰写的章节标题(用于智能提炼高命中率行业与政策检索词)。
    report_type: 报告类型(默认 "可行性研究报告")。
    include_generic: 是否检索内置行业规程与通用标准库(默认 True)。
    include_web: 是否执行免 Key 权威联网检索(默认 True;离线环境或纯底稿测试可设为 False)。
    n_results: 每个来源返回的最大片段数(1~15,默认 5)。
verify_report_consistencyB

跨章节工程经济指标与上下文自洽性核验引擎。

自动抽取各章中的核心工程经济量纲指标(总投资、建设用地、总建筑面积、建设工期、财务内部收益率 FIRR、资本金内部收益率、达产年营业收入),
自动换算统一单位(如亿元<->万元、公顷<->亩、年<->个月),识别基准方案与敏感性情景,并核验引用标签与跨章逻辑呼应。

参数:
    chapters: 章节序号到章节 Markdown 正文的映射字典,例如 {"1": "# 第一章 概述...", "7": "# 第七章 投资估算..."}。
    project: 项目名称(可选,用于核对项目底稿引用真实性)。
    report_type: 报告类型名称。
export_consulting_docxA

将多章节 Markdown 编译导出为符合中国工程咨询与政企出版规范的 Word (.docx) 报告文件。

内置特性:
- 标准封面、自动目录(TOC)与页眉页脚
- 多级工程标题与正文粘连智能清洗拆分,100% 映射为 Word 原生 Heading 样式
- Markdown 表格自动渲染为出版级标准学术/工程三线表
- 全文【源:...】【标:...】【网:...】引用按首次出现顺序自动重编号为 [1], [2], [3]... 并在文末生成标准《参考文献》章(联网文献保留完整 URL)

参数:
    chapters: 章节序号到章节 Markdown 正文的字典,例如 {"1": "# 第一章...", "2": "# 第二章..."}。
    title: 报告主标题(封面与正文大标题,如 "长三角绿色智能算力枢纽项目可行性研究报告")。
    project: 项目标识名(用于生成默认文件名与匹配项目底稿库)。
    report_type: 报告类型(如 "可行性研究报告"、"智库专报")。
    subtitle: 封面副标题标识(默认 "( 初 稿 )")。
    author_org: 编制单位名称(可选,显示在封面底部)。
    qualification: 工程咨询资信或资质编号(可选)。
    date_str: 编制日期字符串(可选,如 "二〇二六年十一月")。
    include_cover: 是否生成专业封面(默认 True)。
    include_toc: 是否生成目录页(默认 True)。
    include_refs: 是否自动汇总生成文末《参考文献》章(默认 True)。
    output_path: 自定义输出 .docx 绝对路径(可选;留空则自动输出至 ENGINE_DATA_DIR/exports/ 目录)。
draft_chapter_with_engineA

(可选自带 Key 工具)使用本地引擎配置的 OpenAI 兼容大模型(如环境变量 DEEPSEEK_API_KEY)直接自动检索并撰写指定章节。

适用场景:当宿主 Agent 希望将超长单章(如 5000~8000 字工程技术章节)卸载给后台高性价比模型(如 DeepSeek)生成时调用。
若未配置 DEEPSEEK_API_KEY / OPENAI_API_KEY,请优先使用 retrieve_report_evidence + 宿主自身大模型直接撰写。

Prompts

Interactive templates invoked by user choice

NameDescription
consulting_report_workflowFairyReport 五步标准工程咨询与智库报告编制 SOP 提示词模板。

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 7 tools

Disambiguation5/5

Each tool occupies a distinct stage of the report workflow: template listing, blueprint retrieval, material ingestion, evidence retrieval, consistency verification, chapter drafting, and DOCX export. The only near-pair, list_report_templates vs get_report_blueprint, is clearly separated by 'list' (enumerate types) versus 'get' (fetch a specific type's outline), with cross-references in the descriptions.

Naming Consistency5/5

All seven tools use a strict verb_noun snake_case pattern (list_, get_, ingest_, retrieve_, verify_, export_, draft_). The domain nouns are descriptive and stable (report, project, evidence, consistency, chapter), so an agent can predict a tool's role from its name alone.

Tool Count5/5

Seven tools map cleanly onto one end-to-end pipeline from template discovery to published DOCX, with no redundant or filler entries. This is squarely in the well-scoped 3-15 range for a domain-specific production server.

Completeness4/5

The core lifecycle (discover templates → blueprint → ingest sources → RAG retrieve → draft → verify → export) is fully covered with no dead ends. Minor gaps remain around knowledge-base housekeeping (listing/removing projects or re-indexing documents) and post-export editing, but agents can work around these by re-ingesting or editing Markdown before export.

Maintenance

ActivityActive
ResponsivenessNo recent community issues