Skip to main content
Glama
gaokai258

Fee Optimizer MCP

by gaokai258

recommend_exchange

Read-only

Scores and ranks crypto exchanges by trading volume, style, token holdings, and fiat on/off-ramp habits, then returns a personalized recommendation with reasons, tradeoffs, and alternatives.

Instructions

当用户不确定选哪个交易所、希望根据自身情况获得个性化推荐时使用。Use when the user wants a personalized exchange recommendation based on their trading volume, style, and holding habits. Scores available exchanges on weighted fees (maker/taker blend), token discounts, referral discounts, funding cost for futures, and (v0.27) the user's direct fiat deposit/cash-out habit — small monthly card/SEPA on-rampers get ranked on fiat rails too (the fiat weight grows 0.2→0.5 as venue-to-venue fiat-fee differences dominate trading-fee differences, and venues with no direct rail score zero on that leg rather than winning on an unpriced cost). Returns the best option with score, concrete reasons, tradeoffs, and actionable advice, plus ranked alternatives. Requires purpose, country, and volume.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairNo交易对,如 BTC/USDT、BTC/FDUSD、BTCUSDT 均可。命中币对级费率/0费促销时按促销价计费,未命中则按整所 VIP 档计费
sideNo吃单方向,默认 buy;live 模式下 buy 行走卖盘 asks,sell 行走买盘 bids
volumeYes月交易量,USDT
countryYesISO 3166-1 alpha-2 国家代码
purposeYes交易类型
currencyNo显示币种,默认 USD;汇率仅用于展示
languageNo输出语言:en=英文(默认),zh=中文。仅影响 advice/warnings/tradeoffs/reasons 等叙述性文字,数值、字段名与错误码不受影响
useTokenNo是否持有并使用平台币(BNB/OKB/GT/MX/BGB/KCS)折扣
fiatMethodNo只按指定法币渠道评分(默认取最便宜):card/ach/sepa/fps/wire/swift/pix
makerShareNo挂单(maker)成交占比 0-1,默认 0=纯吃单。限价交易者设 0.7-1
spreadModeNo执行成本来源:bundled=内置典型点差基准(默认,半价差、零滑点,离线秒回);live=实时拉取订单簿前100档逐档行走,算出真实半价差+市场冲击滑点(逐所独立请求,单所失败自动回退内置基准并记入 failures,深度不足保留实测值并给 warning)。需配合 tradeSizeUsd 才会计入
spreadPairNo执行成本测算交易对,默认沿用 pair,再默认 BTC/USDT。live 模式现货自动解析现货市场(如 KuCoin 用 kucoin 而非 kucoinfutures),如 ETH/USDT、SOL-USDT
fundingModeNo资金费率来源:bundled=内置长期均值(默认,离线稳定);live=实时拉取该合约当前资金费率(逐所独立请求,单所失败自动回退内置值;结果含 funding_source/funding_rate_ts/funding_pair 溯源字段)
fundingPairNo资金费率合约对,默认 BTC/USDT 永续;仅 fundingMode=live 时生效,如 ETH/USDT、SOL-USDT
fiatCurrencyNo法币入金/出金币种,默认 USD(v0.27:传入入金/出金习惯后,推荐评分会纳入法币通道成本,小额刷卡/定投用户尤其重要)
holdingHoursNo期货平均持仓时长(小时),用于资金费率评分
tokenBalanceNo持有的平台币数量(BNB / GT / KCS)。币安现货 AND 门槛(不足降档);Gate OR GT、KuCoin OR KCS 均可升档(不降档);用于实际 VIP 档位与平台币持仓折扣,不传会提示持仓影响
tradeSizeUsdNo单笔吃单市价单规模(USD),默认不计执行成本。传入后总成本/年化/推荐会加上单边点差穿越成本(半价差);spreadMode=live 时再加上该规模下的订单簿滑点,如 10000=$1万、100000=$10万
accountAssetsUsdNo账户总资产(USD):OKX/Bybit/Bitget 按交易量 OR 账户资产取高定 VIP 档(如 $100,000 即 VIP1,$5 亿达 VIP9 负 maker);Kraken 按 AOP 定档($20,000 升 Tier3)。不传会提示资产升档路径
fiatCashoutsPerYearNo每年法币出金次数;无直连通道的所该腿得 0 分,不会因成本未计而虚高
fiatDepositsPerYearNo每年法币入金次数,如月薪/定投 12;法币费在各所差异越大,评分权重越高(0.2-0.5)
fiatCashoutAmountUsdNo单次法币出金(提现回银行卡)金额(USD);与 fiatCashoutsPerYear 同时传入时纳入评分
fiatDepositAmountUsdNo单次法币入金金额(USD);与 fiatDepositsPerYear 同时传入时,推荐评分纳入年化入金通道费

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.47.1

TDQS

A4.4/5.0
Behavior5/5

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

Far exceeds the annotations (readOnlyHint/openWorldHint), which only cover the safety profile. It discloses the scoring model (weighted maker/taker fees, token and referral discounts, futures funding cost, fiat rails), the dynamic fiat weight growth 0.2→0.5, the zero-score penalty for venues lacking a direct rail, and the required inputs — exactly the behavioral context an agent needs to trust and interpret the result.

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?

Front-loaded with the usage trigger, then the methodology and return shape, so the important content comes first. However, the bilingual duplication of the trigger sentence and the embedded version annotation ('v0.27') add length that is not strictly necessary.

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?

With no output schema, the description compensates by describing the return payload (score, reasons, tradeoffs, advice, ranked alternatives). Combined with full schema coverage for 23 parameters, an agent has everything needed to invoke and interpret this tool.

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% across 23 well-documented parameters, so the schema already carries parameter meaning. The description only restates the required set (purpose, country, volume) and sketches the factors (volume, style, holding habits) without adding syntax or format detail beyond the schema — the baseline for high coverage.

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 precise verb+resource (recommend an exchange) and explicitly scopes the output: best option with score, concrete reasons, tradeoffs, actionable advice, plus ranked alternatives. This clearly separates it from sibling calculators like compare_total_cost and compare_exchange_fees, which produce comparisons rather than a personalized pick.

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?

The opening sentence gives an explicit trigger: use when the user is unsure which exchange to pick and wants a personalized recommendation based on their volume, style, and holding habits. It stops short of naming specific alternative siblings (e.g. use compare_total_cost for raw side-by-side numbers), so there is no explicit exclusion guidance.

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