Skip to main content
Glama
gaokai258

Fee Optimizer MCP

by gaokai258

volume_what_if

Read-only

Scan monthly trading volume across all exchanges to rank fees, plot tier-crossing curves, and find how much extra volume reduces your annual costs.

Instructions

当用户问"月交易量达到 X 手续费多少/如果成交量增长到不同水平呢/再刷多少量能升 VIP 档省钱/各交易所档位跳变点",或要看一条跨成交量的费率-成本曲线时使用。Use for volume what-if / sensitivity analysis: scans monthly trading volume from zero up through the VIP ladder for spot OR futures across EVERY venue allowed in the country, returning (1) per-volume-point cross-venue ranking with the cheapest venue and its annual trading fee, (2) per-venue sweep curves with tier/maker/taker/weighted fee at each point, (3) the exact tier-crossing list (at which volume each venue moves to which rung), and when baseVolume is given, (4) each venue's next volume rung, how much MORE monthly volume it needs, and the USD/year it would save at the caller's current volume (holding-gated rungs like Binance spot's BNB requirement are explicitly flagged as unreachable by volume alone). Sweep points default to the union of every venue's tier thresholds (sampled if >16); pass explicit volumes for custom points. Applies referral discounts and the optional platform-token toggle exactly like compare_exchange_fees. Trading fees only — funding, spread, withdrawals and fiat are not included (use compare_total_cost for the full stack).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairNo特定交易对(如 BTC/USDT、FDUSD、USDC)以适用交易对专属费率活动;默认账户档位费率
formatNo矩阵渲染格式:json=仅结构化 JSON(默认,行为不变);markdown=在结果中额外附 rendered.markdown 可直接粘贴的表格;csv=附 rendered.csv(CRLF、RFC4180 转义,可导入 Excel);both=两者都附
countryYesISO 3166-1 alpha-2 居住国代码,如 US/CN/JP/GB/DE/BR
purposeYes交易类型:spot 现货 / futures 合约
volumesNo自定义扫描点(月成交量 USD 数组,最多 24 个,自动去重排序)。不传则默认取所有交易所档位阈值的并集(超过 16 个时全区间抽样并给出警告)
currencyNo显示币种,默认 USD
languageNo输出语言:en=英文(默认),zh=中文。仅影响 advice/warnings/tradeoffs/reasons 等叙述性文字,数值、字段名与错误码不受影响
useTokenNo是否开启平台币抵扣/折扣(BNB/MX/BGB/GT/KCS/HYPE/PT 等),默认 false
baseVolumeNo你当前的 30 天成交量(USD)。提供后会返回精确的"下一 VIP 档还需多少量、当前量下一年省多少"建议,并保证该点出现在扫描中
makerShareNoMaker 成交占比 0-1,默认 0.4;用于 maker/taker 加权费率
tableMetricNoformat 非 json 时表格的指标列:weighted_fee_pct=加权费率%(默认) / annual_fee_usd=年化交易费 / tier=生效档位名
tokenBalanceNo平台币持仓数量(BNB/GT/KCS 枚数,或 MX/HYPE 等的枚数);影响 AND/OR 档位与持仓折扣
accountAssetsUsdNo账户总资产 USD(OKX/Bybit/Bitget/Kraken 等的资产升档通道)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.47.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare readOnlyHint=true and openWorldHint=false, but the description goes well beyond them: it enumerates the four return blocks, discloses that holding-gated rungs (e.g. Binance spot BNB requirement) are flagged as unreachable by volume alone, and notes referral discounts and the platform-token toggle are applied. It also discloses sampling behavior and a warning at >16 points.

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 when-to-use, then the numbered output enumeration keeps the returns easy to scan. However, the bilingual Chinese/English pair largely restates the same content, which adds length without adding information for an agent.

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?

For a 13-parameter tool with no output schema, the description fully compensates by describing the return shape in four numbered blocks and the default sweep construction. An agent has enough to call it correctly and interpret the results without an output schema.

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 coverage is 100%, so the schema already carries per-parameter meaning; baseline would be 3. The description adds semantic ties the schema omits, notably that referral/token discounts are applied 'exactly like compare_exchange_fees' and that baseVolume guarantees the point appears in the sweep, giving cross-tool consistency context.

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 specific operation (scan monthly volume from zero through the VIP ladder) and a specific output (fee-cost sensitivity curve) for spot OR futures across every allowed venue. It distinguishes itself from siblings by explicitly naming compare_total_cost for the full cost stack and compare_exchange_fees as the discount-model analog.

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?

Opens with concrete user question triggers (fee at volume X, growth scenarios, VIP upgrade, tier jump points, cross-volume curves) in both Chinese and English, then specifies when to pass explicit volumes vs rely on the default union-of-thresholds sampling. It also states the scope boundary and the alternative tool to use outside it.

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