Skip to main content
Glama
chang0911

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

by chang0911

fast_calc_solve

Calculate the percentage adjustment to revenue, cost, or construction investment required to reach a target financial metric such as IRR or payback period, based on input data files.

Instructions

指标反算(秒级,二分法+引擎精算):给定5类输入txt与目标指标值(如全投资税后IRR=8%),反推收入/成本/建设投资的调整幅度。杠杆(knob):revenue_pct 收入整体±% / cost_pct 成本整体±% / invest_pct 建设投资±%(含税金额+进度款同步等比+闭合守卫)。目标(target):irr_all_post/irr_all_pre/irr_cap_post/irr_cap_pre/irr_inv_pre/payback/dpayback/npv_all_post/npv_all_pre/npv_cap_post/npv_cap_pre/npv_inv_pre/npvr/pi(14项,IRR%/NPV万元/回收期月同报表原生口径)。want:down(默认,降到目标)/up(升到目标)。建议先用 fast_calc_reports 查看基准值再反算。返回语义:ok=true+nochange=true=已达标无需调整(见 msg);ok=false+reason=range=探索范围内无解(message 含当前值→可达极限值,应如实告知用户并建议换杠杆或结构性调整);k 逼近±90%/+300% 边界时 note 附⚠️边界警告(返回边界最优解而非精确达标解)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goalYes目标值(IRR与回收期同报表原生口径:%/月)
knobYes反算杠杆:收入/成本/建设投资 整体±%
wantNo降至目标(默认)/升至目标
filesYes5类输入txt:文件名→全文
targetYes目标指标

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so thoroughly: it explains the binary-search plus engine method, return semantics for ok/nochange/range failure, and boundary warnings near ±90%/+300%. It also discloses that invest_pct includes tax amounts, progress payments, proportional adjustments, and a closure guard.

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 long and dense, but it is front-loaded with the core purpose and organized by knob, target, want, and return semantics. Most sentences add distinct information, though some enum repetition could be trimmed.

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 there is no output schema and no annotations, the description is complete enough for correct invocation: it explains required inputs, parameter meanings, success and failure return shapes, boundary warnings, and when to seek baseline values first. Nothing critical is missing for an agent to call or interpret the tool.

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 description coverage is 100%, so the enums for knob, target, and want are already documented. The description adds useful meaning beyond the schema, such as the exact financial meaning of invest_pct, the native units for IRR/NPV/payback, and the default behavior of want.

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: inverse calculation of financial indicators (IRR/NPV/payback) from five input text files and a target value. It names the sibling fast_calc_reports as a baseline prerequisite, so an agent can distinguish it from related calculation tools.

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?

It explicitly recommends using fast_calc_reports first to view baseline values before running this tool, and describes the default want=down versus want=up. It does not, however, explain when not to use this tool or compare it against all alternatives such as fast_calc_excel.

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