Skip to main content
Glama

MiaoToolbox (妙用盒)

组合贷与提前还款(妙用盒)

calculate_mortgage_plus
Read-onlyIdempotent

支持两大场景:1) scenario="combined" 商业贷款+公积金贷款组合试算(各自支持独立本金/期限/利率/等额本息或等额本金);2) scenario="prepayment" 一次性提前还本对比“缩短年限”与“减少月供”的省息与缩期效果。默认仅返回汇总,可选分页明细(单次最多 24 期)。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "scenario": "<scenario>"
    },
    "name": "calculate_mortgage_plus"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo【提前还款】原还款方式annuity
monthsNo【提前还款】原贷款期限(整月,2-600)
scenarioYes试算场景:combined(组合贷款)或 prepayment(提前还款)
principalNo【提前还款】原贷款本金(元)
annualRateNo【提前还款】原固定年利率(%,0-30)
prepayMonthNo【提前还款】已还满第几期后一次性还本
prepayAmountNo【提前还款】提前还款本金(元)
providentModeNo【组合贷】公积金还款方式annuity
providentRateNo【组合贷】公积金固定年利率(%,0-30)
scheduleLimitNo明细返回期数上限(1-24)
scheduleStartNo明细起始期数(从 1 开始)
commercialModeNo【组合贷】商贷还款方式annuity
commercialRateNo【组合贷】商贷固定年利率(%,0-30)
includeScheduleNo是否附带还款明细(默认 false)
providentMonthsNo【组合贷】公积金期限(整月,1-600)
commercialMonthsNo【组合贷】商贷期限(整月,1-600)
providentPrincipalNo【组合贷】公积金本金(元,0 < P <= 100000000)
commercialPrincipalNo【组合贷】商贷本金(元,0 < P <= 100000000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds genuine behavioral context: default is summary-only, detail rows are opt-in and capped at 24 periods per call, and the prepayment path compares two strategies. It does not disclose validation behavior, unit conventions beyond the schema, or what the summary contains.

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?

Two numbered scenario clauses, front-loaded, with the default/optional output behavior appended last. Dense but every clause carries information; only minor cost is that the scenario descriptions are packed into a single long sentence.

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

Completeness3/5

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

With 18 parameters and no output schema, the description must carry return-value meaning, and it does say summary is default and detail is paginated up to 24 periods, plus that prepayment reports 省息 and 缩期. However it never enumerates summary fields (monthly payment split, total interest, per-leg totals) for either scenario, leaving the agent guessing at response shape for a fairly complex calculator.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and each parameter is already tagged by scenario, so the schema does the heavy lifting and baseline 3 applies. The description adds cross-parameter semantics the schema cannot express — that principal/term/rate/repayment mode can be set independently per loan leg — but gives no per-parameter detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete verb+resource (组合贷/提前还款试算) and enumerates the two mutually exclusive scenarios keyed to the required `scenario` parameter. It implicitly separates itself from the simpler sibling `calculate_mortgage` via the two advanced scenarios, but never names that sibling, so differentiation is inferential rather than explicit.

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 tells the agent exactly which scenario value selects which computation path (combined = 商贷+公积金 with independent principal/term/rate/mode; prepayment = 一次性还本 comparison of 缩短年限 vs 减少月供), which is real when-to-use routing. It stops short of stating when not to use this tool or naming the simpler sibling for basic single-loan cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources