Skip to main content
Glama
gaokai258

Fee Optimizer MCP

by gaokai258

compare_countries

Read-only

Run one trader profile through annual all-in costs across multiple countries to find the cheapest residency, showing cost gaps, blocked venues, and per-country winners.

Instructions

当用户问"同样的交易习惯在哪个国家最便宜/我要搬家或换居住地(美国/日本/德国/新加坡…)手续费和可用交易所有什么不同/哪些所在我国被封锁/同一画像跨国对比"时使用。Use to run ONE trader persona/profile through the FULL annual all-in stack (trading fees + funding + spread + withdrawals + fiat rails) across SEVERAL countries in a single call and see how residency changes the result: per-country winner + realistic best_complete pick, annual cost and the extra vs the cheapest country (USD and %), the venues blocked by compliance and the venues that simply do not offer the profile's product (e.g. spot-only Coinbase for a futures trader), a venue×country availability matrix, cross-country venue win counts, the cheapest/costliest country and the annual cost gap, and bilingual narrative advice. Defaults to the active_spot_trader persona across 7 representative countries (US, GB, DE, JP, SG, BR, CN); pick any of the 7 personas via persona and pass an explicit countries list (up to 12). Every persona parameter can be overridden (volume, maker share, token, assets, holding hours, clip). Live funding/depth overrides are resolved once over the union of venues allowed in ANY selected country.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairNo特定交易对费率活动,如 BTC/USDT
sideNo吃单方向,默认 buy;live 模式下 buy 行走卖盘 asks,sell 行走买盘 bids
formatNo矩阵渲染格式:json=仅结构化 JSON(默认,行为不变);markdown=在结果中额外附 rendered.markdown 可直接粘贴的表格;csv=附 rendered.csv(CRLF、RFC4180 转义,可导入 Excel);both=两者都附
personaNo交易者画像,默认 active_spot_trader:casual_buyer/hodler_accumulator/active_spot_trader/swing_futures_trader/day_scalper/vip_institutional/dex_native
currencyNo显示币种,默认 USD
languageNo输出语言:en=英文(默认),zh=中文。仅影响 advice/warnings/tradeoffs/reasons 等叙述性文字,数值、字段名与错误码不受影响
useTokenNo覆盖画像默认的平台币折扣开关
countriesNoISO 3166-1 alpha-2 国家代码列表(最多 12 个,去重),默认 US/GB/DE/JP/SG/BR/CN 七国对比
makerShareNo覆盖画像默认的 Maker 占比 0-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
tableMetricNoformat 非 json 时表格内容:availability=交易所×国家可用性(✓/⛔/–,默认) / cost=交易所×国家年化总成本
holdingHoursNo每次合约持仓小时数(资金费成本)
tokenBalanceNo平台币持仓数量(BNB/GT/KCS 等)
tradeSizeUsdNo单笔下单规模 USD(执行成本)
accountAssetsUsdNo账户总资产 USD
monthlyVolumeUsdNo覆盖画像默认的月成交量(USD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.47.1

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint true, openWorldHint false), but the description adds rich behavioral context: what gets computed (fees, funding, spread, withdrawals, fiat rails), how live modes fall back to bundled baselines on failure, and that live overrides are resolved once over the union of venues across selected countries.

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 very long and dense, packing many clauses and parenthetical lists into a few sentences. It is front-loaded with usage triggers, but several details (e.g., enumerated output components, fallback behavior) could be trimmed or structured more cleanly 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 complex tool with 19 parameters, multiple modes, and no output schema, the description is unusually complete. It explains defaults, persona selection, country limits, live vs bundled modes, fallback behavior, and the kinds of results returned (per-country winner, cost gaps, availability matrix, narrative advice), leaving nothing critical for correct invocation.

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%, so the schema already documents all 19 parameters in detail. The description restates some defaults (persona, countries) and mentions overrides, but adds little semantic detail beyond what the schema provides, so the baseline 3 is appropriate.

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 verb and resource: 'run ONE trader persona/profile through the FULL annual all-in stack ... across SEVERAL countries in a single call'. It clearly distinguishes this multi-country comparison from sibling tools like compare_total_cost or compare_exchange_fees by emphasizing cross-country residency effects and per-country winners.

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 user intents ('同样的交易习惯在哪个国家最便宜/我要搬家或换居住地...'), defaults (active_spot_trader, 7 countries), and parameter overrides. However, it does not name alternative tools or state when not to use this tool, so it stops just short of a 5.

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