TDE

io.github.danha2048由 GitHub 帳號 danha2048 發布v1.0.1更新於 Nov 4, 2026

Before you sign a trade deal: what it does to your cash month by month, and what to ask for instead.

已驗證Streamable HTTP可網頁執行金融資料與分析商業與電商

概覽

AI 產生的概覽

TDE 按月試算進口貿易訂單對現金的影響,並提出可向供應商爭取的替代方案。

可以做什麼
  • 按月檢驗本月能否下單、可下多大,對照現金、預算與庫存上限
  • 為最多 30 項產品建立聯合計畫,並列出計畫每月每一筆資金變動的帳目
  • 計算到岸成本、關稅與進口加值稅,並將供應商報價與實測海關價格區間比對
  • 比較不同路線與最多五份供應商報價,估算現金可支撐月數與潛在關稅
  • 查閱針對特定貨物與路線的實務經驗筆記,並列出服務端點與資料來源標籤
  • 讀取並修改已連結 TDE 帳戶中儲存的交易,每次修改保留為新版本
適用情境
適合在下進口訂單或簽署貿易協議之前使用,用來查看訂單逐月的現金影響、比較供應商報價或路線,或判斷報價與關稅數字是否合理。適用於英國與印度、馬來西亞、中國之間,以及中國與馬來西亞之間的路線。
執行需求
遠端 streamable HTTP 端點,不需安裝套件或本機執行環境。多數工具不需登入,但 test_saved_order 與 update_saved_deal 需要連結 TDE 帳戶。呼叫方需提供含業務與導航資料的 profile,例如月需求、支出、現金、關稅稅率與付款時點。每小時有呼叫次數限制。
安裝前請注意
有兩個工具會讀取並修改 TDE 帳戶中儲存的交易;update_saved_deal 會寫入新版本,但會回傳舊值以便還原。其他工具僅讀取與計算,服務聲明呼叫後不保留所送出的資料。結果為資訊而非建議,且部分工具已停用並將被移除。工作階段與位址均有每小時呼叫上限。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 TDE,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.danha2048%2Ftde/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "tde": {
      "type": "http",
      "url": "https://app.tdehq.com/mcp/"
    }
  }
}

工具

19

test_order

Test an order

Whether the next order can be placed this month, and how large, checked month by month against the caller's cash, budget and stock limits. `profile` is `{"business": {...}, "navigator": {...}}`. Needs `navigator.monthly_demand_units` (a monthly rate, not one order), `business.monthly_spend_gbp` (GBP/month), `business.cash_on_hand_gbp` and `business.monthly_revenue_gbp`; optional `navigator` keys include `navigator.unit_sell_price_gbp`, `supplier_deposit_pct`, `shipping_time_months` and `cash_floor_gbp`. `corridor_id` is the lane (default: live); `regime_state` overrides the lane's state. Returns `first_order`, `status` (`feasible`, `best_achievable` with `compromises`, or `below_zero_no_floor`) and `minimum_relaxation`. `deal_terms` (where enabled) judges payment terms. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

輸入參數profile必填deal_termscorridor_idregime_state

landed_cost

Landed cost

CIF value, duty and import VAT, in GBP. Send the goods value as `goods_gbp`, or as `goods` with `currency`; amounts in another currency are converted at the Bank of England rate TDE holds, stated under `fx_rate` with its date. Give `duty_rate_pct`, or a `commodity_code` and `origin` for goods entering the UK: the rate is then read from the UK tariff and stated under `duty_lookup`. When more than one code fits, `choose_code` lists them and no total is given. A rate that cannot be found is asked for, never set to 0. For goods entering another country, `duty_rate_pct` and `vat_rate_pct` are required. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

輸入參數goodsunitsoriginfreightcurrencygoods_gbpinsurancedestinationfreight_gbpvat_rate_pctduty_rate_pctinsurance_pct另有 2 個

lane_state

Lane state (retired)

Retired. This tool was retired on 20 Oct 2026, use test_order. TDE no longer reads a lane's chokepoint transits or calls a route calm or strained. It answers that line until 19 Nov 2026 and is then removed. `corridor_id` is accepted and ignored. Retired: it serves no figure, so there is no provenance stamp to read. Information, not advice.

輸入參數corridor_id

plan_ledger

Plan ledger, month by month

Every pound the `test_order` plan moves, month by month. Takes the same `profile`, `regime_state` and `corridor_id` as `test_order` and builds the same plan without re-solving it, so cash lines and cost lines agree with that plan. `months` is monthly, the grain the plan is solved at. `ledgered: false` with `missing` means no plan exists for this profile. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

輸入參數profile必填corridor_idregime_state

plan_products

Plan several products together

A joint plan for up to 30 products sharing one cash floor, monthly budget, credit facility and supplier capacity. `profile["navigator"]["products"]` is the list of product rows (each with `id`, `label`, `monthly_demand_units`, `monthly_spend_gbp` and optional `unit_sell_price_gbp`, `starting_inventory_units`). Products are planned together, not separately and summed. `which_product_lost` names which product gave up units to hold a shared limit, and why; `would_have_been_feasible_separately` names products that pass alone but not together. `regime_state` and `corridor_id` as in `test_order`. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

輸入參數profile必填corridor_idregime_state

risk_register

Risk register

What could go wrong on the caller's own figures, priced by stage: Source, Terms, Order, Pay, Ship, Clear, Cash. Takes the same inputs as `test_order` and prices against the same plan. Each row has an `exposure` (the cost if it happens), `covers` (what would cover it) and a `lever` (that cover's cost) where one is priced; otherwise an `absence` naming the one figure that would unlock it. `not_priced` lists exposures this register does not price (for example LC fees, demurrage and quality claims). Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

輸入參數profile必填corridor_idregime_state

cost_scenario

Cost scenario (retired)

Retired. This tool was retired on 20 Oct 2026, use test_order. TDE no longer projects your costs from past episodes or price indices. It answers that line until 19 Nov 2026 and is then removed. `profile` and `horizon_months` are accepted and ignored. Retired: it serves no figure, so there is no provenance stamp to read. Information, not advice.

輸入參數profilehorizon_months

cash_runway

Cash runway

How long the caller's cash lasts if costs move as the lane's price scenario says. Needs cash on hand, revenue, margin and fixed costs in `profile.business`; each one absent is named in `missing` (`projected: false`). Returns `runway_months_low`/`mid`/`high` and `worst_drawdown_gbp` over `horizon_months` (default 12); a runway longer than the horizon is `null`. When the profile also plans an order, the plan's cash answer is added (`source: "plan"`): `plan_first_break_month` and `plan_first_break_amount_gbp` (first month below the cash floor), `plan_first_below_zero_month`, `plan_lowest_cash_gbp`, `plan_horizon_months`. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

輸入參數profile必填horizon_months

duty_at_stake

Duty at stake

Duty on a year of the caller's goods at their stated rate, and what a preference claim under the UK-India trade agreement could be worth. COMPUTED from `profile` alone (spend, duty rate, preference status), with no network call. Whether goods qualify depends on their code and the rules of origin; the response names where to check. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

輸入參數profile必填

quote_check

Check a quote

Where a supplier's quote sits in the MEASURED customs-value band (HMRC unit values, last twelve months) for one six-digit code and origin. `hs6` and `origin` (country) are required. `quote` is GBP per unit; `unit_mass_kg` converts it to GBP per kilogram, the band's unit. Only GBP quotes are placed (`currency` unset or `"GBP"`). A customs unit value averages many shipments, so `placement` says where the quote sits in the band, not whether it is overpriced. `band.available: false` with `band.reason` when no band is measured for that code and origin. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

輸入參數hs6必填quoteorigin必填currencyunit_mass_kg

compare_lanes

Compare lanes

One of the caller's saved products bought from its own lane or from a second lane, side by side: the first lane is the caller's own plan, the second is that plan with only this product's quote, duty and lead time changed. The plans are alternatives, never added up. `second_origin` names the second lane's origin; `product_id` picks the product (default: the first in `navigator.products`). `second_quote_gbp_per_unit`, `second_lead_time_months` and `second_duty_rate_pct` (0 is a stated rate) describe the second lane. A lane whose duty is neither stated nor in the UK tariff is never planned at 0%: `available: false`, and `missing` names the duty rate. Each lane carries its own `status`, `compromises`, `orders_units`, `cash_gbp`, `total_cost_gbp` and `duty_source`. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

輸入參數profile必填product_idcorridor_idsecond_origin必填second_duty_rate_pctsecond_lead_time_monthssecond_quote_gbp_per_unit

compare_quotes

Compare quotes

One to five supplier quotes, each run as a whole-order plan against the caller's `profile` (same engine as `test_order`) and ranked: feasible first, then each plan's total over its months (end stock not credited), then lead time. Each quote: `label`, `unit_price`; `currency` GBP, USD, INR, CNY, EUR, THB, MYR (default GBP); optional `moq_units`, `lead_time_months`, `payment_terms_months`, `capacity_units_month`, `unit_mass_kg` and `lead_time_swing_months` (delivery swing, months) replace the profile's figure for that quote (`inputs_used` says which). Rows add `holding_cost_gbp` and `stock_left_at_end_gbp`. A currency with no Bank of England rate is named in `missing`. `verdict`: up to three sentences. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

輸入參數quotes必填profile必填corridor_idregime_state

forecaster_backtest

Forecaster backtest (retired)

Retired. This tool was retired on 20 Oct 2026, use test_order. TDE no longer forecasts, so there is no forecaster backtest to read. This tool answers that line until 19 Nov 2026 and is then removed. `event_id` is accepted and ignored. Retired: it serves no figure, so there is no provenance stamp to read. Information, not advice.

輸入參數event_id

learned_inputs

Learned inputs (retired)

Retired. This tool was retired on 20 Oct 2026, use test_order. No learned model touches a figure, so there are no learned inputs to list. This tool answers that line until 19 Nov 2026 and is then removed. `profile` is accepted and ignored. Retired: it serves no figure, so there is no provenance stamp to read. Information, not advice.

輸入參數profile

margin_cushion

Margin cushion (retired)

Retired. This tool was retired on 20 Oct 2026, use test_order. It answers that line until 19 Nov 2026 and is then removed. `profile`, `margin_pct` and `hs6` are accepted and ignored. Retired: it serves no figure, so there is no provenance stamp to read. Information, not advice.

輸入參數hs6profilemargin_pct

veteran_notes

Veteran notes

What usually goes wrong for these goods on this lane, and what to check before committing: sourced practitioner notes. `hs6_codes` (six-digit codes) and `corridor_id` are optional; without them only the notes that apply to any goods or any lane are returned. `lane_covered` and `chapter_specific` say whether anything more specific than the general notes matched. `proposed` and `rejected` count the lines a model proposed and the lines refused for promising a fixed timeframe. Each line carries its citation: `source_url`, `source_title`, `reviewed` (the date a person checked it against that source), `synthesis` (a reading of several sources rather than one source's words) and `pdf`. A line with no source is not served, so `every_line_sourced` is true. Information, not advice.

輸入參數hs6_codescorridor_id

capabilities

What TDE serves

What this server answers: its endpoints, the lanes and whether each is live, the provenance labels, and the payment presets and splits a profile can use. Takes no input. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

無需輸入參數。

test_saved_order

Your saved order

Whether the order saved in the caller's TDE account can be placed this month, and how large, checked month by month against their own cash, budget and stock limits. Needs the caller to connect their TDE account; takes no figures. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

無需輸入參數。

update_saved_deal

Change your saved order

Changes figures in the deal saved in the caller's TDE account, then answers whether the order can be placed. Each change is kept as a new version of the deal, the old values are returned under `changed` so they can be put back, and nothing is overwritten. Every figure is checked; one the plan needs and the deal lacks is refused by name, never filled in. Needs the caller to connect their TDE account and to allow changes. Figures carry a `provenance` (READ, MEASURED, DERIVED, COMPUTED, PROXY, ESTIMATED or GIVEN; defined in the server instructions) and a `basis`; `missing` names figures only the caller holds. Information, not advice.

輸入參數changes必填

版本歷史

2
  1. v1.0.1最新Nov 4, 2026
  2. v1.0.0Oct 20, 2026

評分

已滿足適用檢查項的 83%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。