Skip to main content
Glama
gaokai258

Fee Optimizer MCP

by gaokai258

get_account_fee_tier

Read-only

Fetch your actual maker/taker fee or VIP tier from an exchange using a read-only key, then compare it to the public schedule at your monthly volume and show the gap in bps.

Instructions

当用户想知道"我账户里实际生效的手续费率/我的真实 VIP 档位费率/API 查我的 maker taker/为什么我实际手续费和公开表不一样"时使用。Use a READ-ONLY exchange API key (apiKey + secret, OKX/KuCoin-Futures also need passphrase as password; Hyperliquid needs only the PUBLIC 0x wallet address as apiKey) to fetch the account's ACTUAL maker/taker fee for spot or futures, then compares it against this server's bundled public VIP schedule at the given monthly volume and shows the gap in bps. Credentials are used per request only, never cached, never logged (audit logs redact them). Always generate a READ-ONLY key (no trading/withdrawal permissions). Supported: Binance, OKX, Gate, Bybit, MEXC, Bitget, KuCoin (spot + kucoinfutures), Kraken (spot + krakenfutures), Coinbase (spot), Hyperliquid (wallet address), BingX, Bitstamp (spot); NOT supported by the bundled ccxt connector: Phemex, BloFin, Bitstamp perps. Country compliance/product gates are enforced before any authenticated call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairNo用于解析费率的交易对,默认 BTC/USDT(按所解析为现货或永续市场)
apiKeyYes只读 API Key;Hyperliquid 传公开钱包地址(0x…)。必须是只读权限,绝不要给交易/提币权限的 key
secretNoAPI Secret(Hyperliquid 钱包模式不需要;其他交易所必填)
countryYesISO 3166-1 alpha-2 居住国代码,如 US/DE/JP(合规与产品闸门先于鉴权调用)
purposeYes交易类型: spot=现货, futures=合约/永续
exchangeYes交易所 id:binance/okx/gate/bybit/mexc/bitget/kucoin/kraken/coinbase/hyperliquid/bingx/bitstamp
passwordNoAPI passphrase:OKX 必填;KuCoin Futures 使用合约 API 的 passphrase
monthlyVolumeUsdNo月成交量(USD),仅用于选择内置公开费率表的对比档位,默认 0=入门档

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.47.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations: credentials used per request, never cached, never logged, audit logs redact them; a read-only key is mandated (no trading/withdrawal); Hyperliquid's wallet-address-as-apiKey mode is called out; and country compliance gates are enforced before any authenticated call. That is exactly the behavioral context an agent needs for a credential-bearing read tool.

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-loads the when-to-use trigger, then the mechanics, then the supported/unsupported exchange inventory. The exchange list is long but functional rather than filler; some phrasing (repeating the read-only key requirement) 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?

For an 8-parameter, credential-based tool with no output schema, the description covers intent, credential formats, exchange support boundaries, and compliance gating. The one thing it could add is return-value shape, but it does describe the meaningful output (the bps gap), leaving no material gap for correct invocation.

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 already 100%, so the baseline is 3, but the prose adds real meaning: Hyperliquid needs only the public 0x wallet address as apiKey, OKX/KuCoin-Futures need passphrase as password, and monthlyVolumeUsd is only used to pick the comparison tier from the bundled table. Those cross-parameter interactions are not obvious from the individual property descriptions alone.

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: fetch the account's ACTUAL maker/taker fee for spot or futures, compare it against the bundled public VIP schedule at a given volume, and show the gap in bps. This is clearly distinguishable from siblings like compare_exchange_fees or get_execution_cost, which do not reconcile a personal account rate against a schedule.

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?

Opens with an explicit user-intent trigger in Chinese ("why is my real fee different from the public table"), which is genuinely strong when-to-use guidance. It also documents which exchanges are supported and which are not, but never names a sibling tool as the alternative for the cases it doesn't cover.

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