Skip to main content
Glama
gaokai258

Fee Optimizer MCP

by gaokai258

analyze_token_discount

Read-only

Calculate whether holding an exchange's native token for fee discounts is worthwhile by comparing annual trading costs, payback period, opportunity cost, and token price drop tolerance.

Instructions

当用户问持有某个交易所的平台币(BNB/GT/KCS/BGB/MX/HYPE)来抵扣手续费是否划算、多久能回本、能承受币价跌多少时使用。Use when the user asks whether holding an exchange's native token for fee discounts is worth it, how long until the discount pays back the locked capital, or how far the token price can drop before the saving is wiped out. Computes the annual trading fee WITHOUT the native token (zero-balance tier, no fee-deduction toggle) vs. WITH the token (GT/KCS/BNB holdings can lift the VIP tier; BNB/MX/BGB/KCS give a flat fee-deduction; Gate GT and MEXC MX and Hyperliquid HYPE have holding-tier discount ladders; Gate futures maker drops to zero). Returns annual USD saving, the USD opportunity cost of locking the required token balance (2026-09 snapshot price or explicit tokenPriceUsd override), payback in months, and the maximum one-year token price drop the saving can absorb. When tokenBalance is omitted it returns every achievable discount tier as a table with a recommended best-payback tier. Requires exchange, purpose, country, and monthlyVolumeUsd.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countryYesISO 3166-1 alpha-2 居住国代码,用于合规过滤
purposeYes交易类型: spot=现货, futures=期货
currencyNo显示币种,默认 USD
exchangeYes交易所名称,如 binance, gate, kucoin, mexc, bitget, hyperliquid
languageNo输出语言:en=英文(默认),zh=中文。仅影响 advice/warnings/tradeoffs/reasons 等叙述性文字,数值、字段名与错误码不受影响
makerShareNomaker 挂单占比 0-1,默认 0(纯吃单)
tokenBalanceNo已持有的平台币数量;省略则返回所有可达档位的回本对比表;对 Hyperliquid 填已质押(staked)的 HYPE
tokenPriceUsdNo平台币当前 USD 单价;省略使用内置 2026-09 快照价
accountAssetsUsdNo账户总资产(USD),用于 OKX/Bybit/Bitget/Kraken 的资产档位升级路径
monthlyVolumeUsdYes月交易量(USD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.47.1

TDQS

A4.5/5.0
Behavior5/5

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

With readOnlyHint=true and openWorldHint=false already covering safety, the description adds rich behavior: it contrasts fee calculations with and without the token, explains exchange-specific discount ladders, discloses return values (annual USD saving, opportunity cost, payback months, max absorbable drop), and states the default snapshot behavior and override. No annotation contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with usage triggers and then systematically covers computation, outputs, defaults, and required inputs. However, the Chinese and English trigger sentences are largely duplicated, and the remainder is long, so it is information-dense but not optimally concise.

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?

There is no output schema, so the description must carry return-value disclosure, and it does: annual USD saving, opportunity cost, payback months, maximum price drop, and the all-tiers table when tokenBalance is omitted. It also covers required inputs and default behavior, making it complete for an agent to invoke this complex analytical 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 coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by mapping supported exchanges to token behaviors, clarifying that tokenBalance omission returns all reachable tiers with a recommended best-payback tier, and explaining tokenPriceUsd as an explicit override of the 2026-09 snapshot.

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 analytical purpose: computing whether holding an exchange's native token for fee discounts pays back, including annual savings, opportunity cost, payback months, and max price drop. It names the supported tokens (BNB/GT/KCS/BGB/MX/HYPE) and discount mechanics, making it easy to distinguish from generic fee-savings siblings like calculate_savings or calculate_annual_cost.

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 gives explicit trigger conditions: when the user asks whether holding an exchange token is worth it, how long until payback, or how far price can drop. It does not name alternative sibling tools or state when not to use this tool, so it falls short of full when/when-not/alternatives guidance.

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